09.11.2018, 00:32
if I have 2 team in the selection of the dialogue as I do so that when a player of each team dies they go to the rightful place of their team
here the code
here the code
PHP код:
if(listitem == 0) //Dragons
{
SetSpawnInfo(playerid, 0, 179, 318.8639,1121.6978,1083.8828,180.1659, 24,99999, 24,99999, 24,99999);
if(gTeam[playerid] == DRAGONS) { SetPlayerTeam(playerid, 179); }
SetPlayerColor(playerid, COLOR_DRAGONS);
SetPlayerSkin(playerid, Dragons[random(3)]);
SetPlayerInterior(playerid, 5);
SetPlayerHealth(playerid, 100);
SpawnPlayer(playerid);
}
if(listitem == 1) //Templarios
{
SetSpawnInfo(playerid, 1, 206, 760.3945,1441.3341,1102.7031,120.5558, 24,99999, 24,99999, 24,99999);
if(gTeam[playerid] == TEMPLARIO) { SetPlayerTeam(playerid, 206); }
SetPlayerColor(playerid, COLOR_TEMPLARIOS);
SetPlayerSkin(playerid, Templarios[random(3)]);
SetPlayerInterior(playerid, 6);
SetPlayerHealth(playerid, 100);
SpawnPlayer(playerid);
}