Checkpoint Question
#1

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
Reply
#2

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);
Reply
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)