22.04.2010, 18:22
Is it possible(i think it is but i don't know how) to make the checkpoint viewable to only 1 team?
EX:
TEAM_GROVE
TEAM_BALLAS
TEAM_AZTECS
TEAM_VAGOS
EX:
TEAM_GROVE
TEAM_BALLAS
TEAM_AZTECS
TEAM_VAGOS
/* using the sa:mp native GetPlayerTeam function. */
if(GetPlayerTeam(playerid) == TEAM_ID) SetPlayerCheckpoint(playerid, x_pos, y_pos, z_pos, size);
/* using the player array. */
if(gTeam[playerid] == TEAM_ID) SetPlayerCheckpoint(playerid, x_pos, y_pos, z_pos, size);
/* 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);
Originally Posted by Don Correlli
pawn Код:
pawn Код:
pawn Код:
|