Checkpoint Question
#3

Quote:
Originally Posted by Don Correlli
pawn Код:
/* using the sa:mp native GetPlayerTeam function. */
if(GetPlayerTeam(playerid) == TEAM_ID) SetPlayerCheckpoint(playerid, x_pos, y_pos, z_pos, size);
pawn Код:
/* using the player array. */
if(gTeam[playerid] == TEAM_ID) SetPlayerCheckpoint(playerid, x_pos, y_pos, z_pos, size);
pawn Код:
/* using the sa:mp PVar function (remember that this will ONLY work if you used the SetPVarInt before). */
if(GetPVarInt(playerid, "pTeam") == TEAM_ID) SetPlayerCheckpoint(playerid, x_pos, y_pos, z_pos, size);

/* setting the team. */
SetPVarInt(playerid, "pTeam", TEAM_ID);
Thanks your server need a beta tester , I can't wait it looks like so much fun!
Reply


Messages In This Thread
Checkpoint Question - by Steven82 - 22.04.2010, 18:22
Re: Checkpoint Question - by Correlli - 22.04.2010, 18:27
Re: Checkpoint Question - by Steven82 - 22.04.2010, 18:29

Forum Jump:


Users browsing this thread: 1 Guest(s)