How do i do this? (checkpoint for a team)
#1

I'm making a job service on my server for the police and theres a command im making where players type /police to call an officer to their position. After being able to create a checkpoint for the player who "Called" the police, and managing to remove it once the police arrive, i tried to set it up so anyone who's a cop, sees the checkpoint and then heads to that location. But im not sure how to do that.

Can someone please tell me what i need to do to show the checkpoint FOR the players who are cops?
Reply
#2

This loops through all players and checks if they're cops

pawn Код:
for(new id = 0; id < MAX_PLAYERS; id++)
{
  if(gTeam[id] == TEAM_COP) //or whatever you use
  {
    SetPlayerCheckpoint(id, x, y, z, radius);
  }
}
Reply
#3

thanks, much appreciated
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)