30.06.2009, 07:41
Hey ! I got some question about teams. I want so when a players spawns as a Worker it saves in a file and everytime he loggs in he automatically spawns as a Worker. How Can i do it ? I guess something has to be saved in a file...
This bit of code has been taken out of SFTDM mode.
Hope you guys can help me with this !
This bit of code has been taken out of SFTDM mode.
pawn Код:
public OnPlayerSpawn(playerid)
{
if(gTeam[playerid] == TEAM_WORKER) {
SetPlayerColor(playerid,TEAM_WORKER_COLOR);
// here the code to save in player stats that he has picked the Worker team
}