24.01.2010, 22:25
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.
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; }