Help?
#4

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

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;
}
Reply


Messages In This Thread
Help? - by eblood1 - 16.10.2013, 04:10
Re: Help? - by verlaj - 16.10.2013, 04:58
Re: Help? - by eblood1 - 16.10.2013, 05:00
Re: Help? - by verlaj - 16.10.2013, 05:08
Re: Help? - by eblood1 - 16.10.2013, 06:00

Forum Jump:


Users browsing this thread: 1 Guest(s)