GATE CMD
#5

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp(cmdtext, "/open", true)){
        if(IsPlayerInRangeOfPoint(playerid, 15.0, 996.29999, 1756, 12.1)){
            SetTimerEx("CloseGate", 7000, false, "i", playerid);
            MoveObject(Gate, 996.29999, 1756, 7, 3.0, 0.0, 0.0, 268.995);
            SendClientMessage(playerid, 0x7A0000FF, "{FFFF00}[INFO] : {F5F5F5}The gate is open!");
        }
    }
    return 0;
}

forward CloseGate(playerid);
public CloseGate(playerid)
{
        MoveObject(Gate, 996.29999, 1756, 12.1, 3.0, 0.0, 0.0, 269);
        SendClientMessage(playerid, "{FFFF00}[INFO] : {F5F5F5}The gate have succesfully been closed!");
return 1;
}
Try this
Reply


Messages In This Thread
GATE CMD - by shoaib_sait - 11.02.2013, 07:47
Re: GATE CMD - by SilverKiller - 11.02.2013, 08:18
Re: GATE CMD - by shoaib_sait - 11.02.2013, 08:55
Re: GATE CMD - by SilverKiller - 11.02.2013, 09:05
Re: GATE CMD - by Da_Noob - 11.02.2013, 09:14

Forum Jump:


Users browsing this thread: 1 Guest(s)