All pastes #547409 Raw Edit

SetPlayerClass

public text v1 · immutable
·published 2007-06-07 11:35 UTC
rendered paste body
 SetPlayerClass(playerid, classid) {  //Changes the format of from a team id to a team class name.
if(classid == 0) {  // If the team id is 0...
gTeam[playerid] = TEAM_POLICE;  //...set the team of the player to "TEAM_POLICE"
  }
}