#include <a_samp> new KillersGate;
public OnGameModeInit()
{
KillersGate = CreateObject(980,1024.999,-366.532,75.706,0.0,0.0,180.000);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)
{
if (strcmp(cmdtext, "/openk", true) == 0)
{
MoveObject(KillersGate,1024.999,-366.532,80.706, 1.592236);
SetTimer("KillersGateClose", 10000, 0);
killersgatetimer = SetTimer("KillersGateClose", 10000, 0);
return 1;
}
public KillersGateClose()
{
MoveObject(KillersGate, 1024.999,-366.532,75.706, 1.59);
KillTimer(killersgatetimer);
return 1;
}
З.Ы поставлю плюсик