28.10.2011, 13:02
Код:
else if (dialogid == 7) { if(response) { switch(listitem) { case 0: // Armйe { SetPlayerPos(playerid,-1322.2943,465.9304,7.1875); PlayerInfo[playerid][pTDM] = 1; PlayerInfo[playerid][pTeam] = 1; jtdm1++; SetPlayerVirtualWorld(playerid, 40); SetPlayerColor(playerid, COLOR_GREEN); new name[MAX_PLAYER_NAME], string[459]; GetPlayerName(playerid, name, sizeof(name)); format(string, sizeof(string), "%s est aller dans un TeamDeathmatch /tdm pour le rejoindre.",name); SendClientMessageToAll(0xFF8080FF, string); SendClientMessage(playerid,COLOR_YELLOW,"Vous pouvez quitter le TeamDeathmatch grace а la commande /exittdm."); GivePlayerWeapon(playerid,24, 9999999); GivePlayerWeapon(playerid,35, 9999999); GivePlayerWeapon(playerid,31, 9999999); GivePlayerWeapon(playerid,29, 9999999); } case 1: // Terroriste { SetPlayerPos(playerid,314.0982,1856.1180,17.6406); PlayerInfo[playerid][pTDM] = 1; PlayerInfo[playerid][pTeam] = 2; jtdm1++; SetPlayerVirtualWorld(playerid, 40); SetPlayerColor(playerid, COLOR_RED); new name[MAX_PLAYER_NAME], string[459]; GetPlayerName(playerid, name, sizeof(name)); format(string, sizeof(string), "%s est aller dans un TeamDeathmatch /tdm pour le rejoindre.",name); SendClientMessageToAll(0xFF8080FF, string); SendClientMessage(playerid,COLOR_YELLOW,"Vous pouvez quitter le TeamDeathmatch grace а la commande /exittdm."); GivePlayerWeapon(playerid,24, 9999999); GivePlayerWeapon(playerid,35, 9999999); GivePlayerWeapon(playerid,30, 9999999); GivePlayerWeapon(playerid,29, 9999999); } } } }