02.04.2013, 16:35
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == DIALOG_CLASS) { if(response) { switch(listitem) { case 0: Soldier { GivePlayerWeapon(playerid,24,300); GivePlayerWeapon(playerid,27,300); GivePlayerWeapon(playerid,31,300); } case 1: Sniper { GivePlayerWeapon(playerid,25,300); GivePlayerWeapon(playerid,34,100); GivePlayerWeapon(playerid,39,10); } case 2: Engineer { GivePlayerWeapon(playerid,29,300); GivePlayerWeapon(playerid,36,5); GivePlayerWeapon(playerid,16,5); } case 3: Scout { GivePlayerWeapon(playerid,22,300); GivePlayerWeapon(playerid,32,300); GivePlayerWeapon(playerid,16,5); } case 4: Pilot { GivePlayerWeapon(playerid,30,300); GivePlayerWeapon(playerid,24,300); GivePlayerWeapon(playerid,33,300); } case 5: Suicider { GivePlayerWeapon(playerid,16,8); GivePlayerWeapon(playerid,30,300); GivePlayerWeapon(playerid,37,200); } case 6: Rebel { GivePlayerWeapon(playerid,24,300); GivePlayerWeapon(playerid,34,300); GivePlayerWeapon(playerid,4,1); } case 7: Assassin { GivePlayerWeapon(playerid,18,5); GivePlayerWeapon(playerid,27,300); GivePlayerWeapon(playerid,22,300); } case 8: Burglar { GivePlayerWeapon(playerid,8,1); GivePlayerWeapon(playerid,23,300); GivePlayerWeapon(playerid,25,300); } case 9: Trooper { GivePlayerWeapon(playerid,18,5); GivePlayerWeapon(playerid,22,300); GivePlayerWeapon(playerid,9,1); } case 10: Marine { GivePlayerWeapon(playerid,42,80); GivePlayerWeapon(playerid,34,300); GivePlayerWeapon(playerid,31,300); } } } } return 0; }
Код:
DIALOG_CLASS1
Код:
case 5: Suicider { GivePlayerWeapon(playerid,16,8); GivePlayerWeapon(playerid,30,300); GivePlayerWeapon(playerid,37,200); } case 6: Rebel { GivePlayerWeapon(playerid,24,300); GivePlayerWeapon(playerid,34,300); GivePlayerWeapon(playerid,4,1); } case 7: Assassin { GivePlayerWeapon(playerid,18,5); GivePlayerWeapon(playerid,27,300); GivePlayerWeapon(playerid,22,300); }
Код:
DIALOG_CLASS2
Код:
case 8: Burglar { GivePlayerWeapon(playerid,8,1); GivePlayerWeapon(playerid,23,300); GivePlayerWeapon(playerid,25,300); } case 9: Trooper { GivePlayerWeapon(playerid,18,5); GivePlayerWeapon(playerid,22,300); GivePlayerWeapon(playerid,9,1); } case 10: Marine { GivePlayerWeapon(playerid,42,80); GivePlayerWeapon(playerid,34,300); GivePlayerWeapon(playerid,31,300); }