16.10.2013, 05:08
then you should first check for their teams, if its grove for example.. then use a function called, new TeamSpawn[MAX_PLAYERS]; then on player death, if(TeamSpawn[playerid] == 1) then make him spawn at your coordinates or if they type /leave then set TeamSpawn[playerid] = 0;, it would make him not to spawn where he wants to, you gotta figure out everything bro.
here is an example
here is an example
pawn Код:
new TeamSpawn[MAX_PLAYERS];
//Under onplayerspawn
GetPlayerTeam//self understandable
TeamSpawn[playerid] = 1;
//then under on player death
if(TeamSpawn[playerid] == 1)
{
SetPlayerPos //and your coordinates
return 1;
}
else
//your other coordinates
//cmds of zcmd
CMD:leave(playerid,params[])
{
teamspawn[playerid] = 0;
return 1;
}