New team command problem -.-
#4

Quote:
Originally Posted by Rabbayazza
Посмотреть сообщение
Now it doesn't let any of them open it.
Code
Код:
 	if (strcmp("/opdgate", cmdtext, true) == 0)
    {
        if(GetPlayerTeam(playerid) == 0) return SendClientMessage(playerid, -1, "You can't use this as you are not a part of LAE");
        if(IsPlayerInRangeOfPoint(playerid, 20, 1544.94104004,-1622.77990723,12.38281250))
    {
            MoveObject(gate, 1544.63146973,-1631.57128906,12.38281250, 4.00);
            SendClientMessage(playerid, 0xFF000000, "You have successfully opened the gate!");
    }
        return 1;
    }
What's wrong?
Edit the TEAM_POLICE to TeamID 1 then Replace

PHP код:
 if(GetPlayerTeam(playerid) == 0
0 with 1.
Reply


Messages In This Thread
New team command problem -.- - by Rabbayazza - 18.08.2011, 22:39
Re: New team command problem -.- - by ElieJabbour - 18.08.2011, 23:23
Re: New team command problem -.- - by Rabbayazza - 18.08.2011, 23:34
Re: New team command problem -.- - by ElieJabbour - 18.08.2011, 23:38
Re: New team command problem -.- - by Rabbayazza - 18.08.2011, 23:41
Re: New team command problem -.- - by ElieJabbour - 18.08.2011, 23:47

Forum Jump:


Users browsing this thread: 1 Guest(s)