SA-MP Forums Archive
[SOLVED] SetPlayerCheckpoint - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [SOLVED] SetPlayerCheckpoint (/showthread.php?tid=97827)



[SOLVED] SetPlayerCheckpoint - kevin974 - 17.09.2009

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


Re: SetPlayerCheckpoint - Ov3rl0rd - 17.09.2009

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


Re: SetPlayerCheckpoint - Calgon - 17.09.2009

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.


Re: SetPlayerCheckpoint - kevin974 - 17.09.2009

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