07.11.2018, 02:57
How do I make one of these team die, send them with a spawninfo to what I leave here below and get the skin 230, 233, 299
I explain how I can make when the player of some of these team (code below) dies send them to the coordinates of the spawninfo and apart from a skin random of the ones mentioned
Code
1: skin random 230, 233, 299 when dying
2: and also that when dying spawnee with a SetSpawnInfo I leave it in the code
I explain how I can make when the player of some of these team (code below) dies send them to the coordinates of the spawninfo and apart from a skin random of the ones mentioned
Code
1: skin random 230, 233, 299 when dying
2: and also that when dying spawnee with a SetSpawnInfo I leave it in the code
PHP код:
if(dialogid == 9999)
{
if(response)
{
if(listitem == 0) //Dragons
{
SetSpawnInfo(playerid, 0, 179, 324.6891,1126.8384,1083.8828,142.3408, 24,99999, 24,99999, 24,99999);
SetPlayerColor(playerid, COLOR_DRAGONS);
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);
SetPlayerColor(playerid, COLOR_TEMPLARIOS);
SetPlayerInterior(playerid, 6);
SetPlayerHealth(playerid, 100);
SpawnPlayer(playerid);
}
}
}