An admin gate
#3

Quote:
Originally Posted by Private200
Посмотреть сообщение
pawn Код:
public OnRconCommand(cmd[])
{
    if(!strcmp(cmd,"adminelevator",true))
    {
    if(CheckEGate == 0)
    {
    SendClientMessage(playerid,-1,"Gate is opened now!");
    MoveObject(EGate, 1788.30004883,-1297.50000000,9.60000038, 2.0);
    CheckEGate = 1;
    }
    else
    {
    SendClientMessage(playerid,-1,"Gate is closed now!");
    MoveObject(EGate, 1788.29980469,-1297.50000000,14.30000019, 2.0);
    CheckEGate = 0;
    }
    return 1;
    }
IDK about the PlaySoundForPlayerInRange but i can only help you with this one

Hope it works
2x :
Код:
error 017: undefined symbol "playerid"
Reply


Messages In This Thread
An admin gate - by x96664 - 05.11.2012, 19:09
Re: An admin gate - by Private200 - 05.11.2012, 19:20
Re: An admin gate - by x96664 - 05.11.2012, 19:34
Re: An admin gate - by x96664 - 05.11.2012, 19:41

Forum Jump:


Users browsing this thread: 1 Guest(s)