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);
}
}
}
// Question 1
if(issuerid == INVALID_PLAYER_ID)return 1;
{
if(gTeam[playerid] == gTeam[issuerid] )
{
return 0;
}
2)/*So far i haven't seen any errors. If you get some i'd suggest you posting them here or better yet there are some threads posted around with error/warning fixes you can read those to learn*/
3)//Not sure what you mean by rejoin his/her position.
4)
CMD:changeteam(playerid)
{
ForceClassSelection(playerid);
}
// Question 1
if(issuerid == INVALID_PLAYER_ID)return 1;
{
if(gTeam[playerid] == TEAM_1 && gTeam[issuerid] == TEAM_1)
{
return 0;
}
3)//Not sure what you mean by rejoin his/her position. |
Where do I put this
putting that and those of the same team can not hurt themselves? |
// Question 1
if(issuerid == INVALID_PLAYER_ID)return 1;
{
if(gTeam[playerid] == gTeam[issuerid])
{
return 0;
}
When a player of a team eliminates another one falls to the emptiness in Fort Carson prison and dies he does not go again to his place of spawn
|
SpawnPlayer(the person who you want to respawn);
SpawnPlayer(the person who you want to respawn);