[SOLVED] SetPlayerCheckpoint
#1

Is it possable to make it so only one faction can see the checkpoint and not everyone on the server?
Reply
#2

Yep just define the team and if the player is apart of that team than setplayercheckpoint

so for example

Код:
gTeam == 1; //PD

if(gTeam == 1)
{
SetplayerCheckpoint(blah);
return 1;
}
of course it would be a lot more advanced and such but thats the general idea
Reply
#3

pawn Код:
for(new i = 0;i < MAX_PLAYERS; i++)
{
  if(IsPlayerConnected(i) && Faction[playerid] == X)
  {
    SetPlayerCheckpoint(i, x, y, z, size);
    return 1;
  }
}
You'll have to change those variables and parameters.
Reply
#4

yeah i had it, i was just using the wrong variable so it was messing up. But i got it now.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)