10.11.2018, 21:21
(
Последний раз редактировалось Spawe; 10.11.2018 в 22:10.
)
someone helps me with this
1)How to place the anti team kill
2)How to optimize the code so that no error
3)When a player of one team eliminates another one, they rejoin their position
4)How can I make a command to change the team?
I will give more +reputation
Code: OnDialogResponse
1)How to place the anti team kill
2)How to optimize the code so that no error
3)When a player of one team eliminates another one, they rejoin their position
4)How can I make a command to change the team?
I will give more +reputation
Code: OnDialogResponse
PHP код:
if(dialogid == DIALOG_TEAMS)
{
if(response)
{
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, 2264.5317,-1209.7946,1049.0234,253.0367, 24,99999, 24,99999, 24,99999);
if(gTeam[playerid] == TEMPLARIO) { SetPlayerTeam(playerid, 206); }
SetPlayerColor(playerid, COLOR_TEMPLARIOS);
SetPlayerSkin(playerid, Templarios[random(3)]);
SetPlayerInterior(playerid, 10);
SetPlayerHealth(playerid, 100);
SpawnPlayer(playerid);
}
}
}