17.08.2015, 14:30
You can make cases, if he used case 0 : SetPlayerPos(playerid, x,y,z); & SetPlayerTeam( .. );
case 2 : SetPlayerPos(playerid,x,y,z); & SetPlayerTeam( .. );
if you want to know where he is spawned , you can make /location, or make a sendclientmessage to the team owner.
forward + puplice like this .
forward SendSwatMessage(color, string[]);
public SendSwatMessage(color, string[])
{
foreach(Player, d)
{
if(PlayerInfo[playerid][swat] [pleader])
{
SendClientMessage(d, color, string);
}
}
}
case 2 : SetPlayerPos(playerid,x,y,z); & SetPlayerTeam( .. );
if you want to know where he is spawned , you can make /location, or make a sendclientmessage to the team owner.
forward + puplice like this .
forward SendSwatMessage(color, string[]);
public SendSwatMessage(color, string[])
{
foreach(Player, d)
{
if(PlayerInfo[playerid][swat] [pleader])
{
SendClientMessage(d, color, string);
}
}
}