Checkpoint problem??
#1

I made a checkpoint for my objective mode, but i want to make it where it restarts the server when the correct team touch's it.

heres my code : i want it to stop team 1 from activating it. and only team 2 to activate it.

Код:
public OnPlayerEnterCheckpoint(playerid)
{
GetPlayerTeam(playerid);
if(gTeam[playerid] == 1)
{
SendClientMessage(playerid,COLOR_GREEN, "You are the rong team!");
}
else
{
GameTextForPlayer(playerid, "|PRISONERS WIN|", 2500, 5);
return 1;
}
Reply


Messages In This Thread
Checkpoint problem?? - by -Rebel Son- - 24.01.2010, 22:25
Re: Checkpoint problem?? - by LuxurioN™ - 24.01.2010, 22:57
Re: Checkpoint problem?? - by -Rebel Son- - 24.01.2010, 23:16
Re: Checkpoint problem?? - by LuxurioN™ - 24.01.2010, 23:19
Re: Checkpoint problem?? - by -Rebel Son- - 24.01.2010, 23:58

Forum Jump:


Users browsing this thread: 3 Guest(s)