31.10.2012, 12:45
I got this is this good no the weapons and more it will give an soldier an minigun and also
Quote:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == 100) { if(response) // If they clicked 'Select' or double-clicked a weapon { // Give them the weapon if(listitem == 0) // They selected the first item - Desert Eagle { if (GetPlayerScore(playerid) >= 10) GivePlayerWeapon(playerid, 23, 500); // Give them a silenced pistol GivePlayerWeapon(playerid, 34, 375); // Give them a Sniper GivePlayerWeapon(playerid, 16, 3); // Give them a Garanade } else { SendClientMessage(playerid, -1,"euhh... u need 10 score for this rank??!@#"); } if(listitem == 1) // They selected the second item - AK-47 { if (GetPlayerScore(playerid) >= 0) GivePlayerWeapon(playerid, 31, 600); // Give them an AK-47 GivePlayerWeapon(playerid, 16, 1); // Give Them an Garanade GivePlayerWeapon(playerid, 24, 200); // Give them an Desert } else { SendClientMessage(playerid, -1,"Here U choosed the Soldier class, here u get u Weapons."); } if(listitem == 2) // They selected the third item - Desert Eagle { if (GetPlayerScore(playerid) >= 350) GivePlayerWeapon(playerid, 29, 550); // Give them a SMG GivePlayerWeapon(playerid, 37, 350); // Give them a Flame GivePlayerWeapon(playerid, 24, 400); // Give them a Combat Shotgun } else { SendClientMessage(playerid, -1,"You need 350 score for this class!@#!"); } if(listitem == 3) // They selected the third item - Desert Eagle { if (GetPlayerScore(playerid) >= 250) GivePlayerWeapon(playerid, 23, 450); // Give them a SMG GivePlayerWeapon(playerid, 4, 1); // Give them a Flame GivePlayerWeapon(playerid, 39, 3); // Give them a Combat Shotgun } else { SendClientMessage(playerid, -1,"You need 250 score for this class!@#!"); } if(listitem == 4) // They selected the third item - Desert Eagle { if (GetPlayerScore(playerid) >= 5000) GivePlayerWeapon(playerid, 38, 1000); // Give them a SMG GivePlayerWeapon(playerid, 16, 2); // Give them a Flame GivePlayerWeapon(playerid, 31, 500); // Give them a Combat Shotgun } else { SendClientMessage(playerid, -1,"You need 5000 score for this class!@#!"); } if(listitem == 5) // They selected the third item - Desert Eagle { if (GetPlayerScore(playerid) >= 0) GivePlayerWeapon(playerid, 31, 450); // Give them a SMG GivePlayerWeapon(playerid, 46, 1); // Give them a Flame GivePlayerWeapon(playerid, 33, 700); // Give them a Combat Shotgun } else { SendClientMessage(playerid, -1,"Here U choosed the Soldier class, here u get u Weapons."); } if(listitem == 6) // They selected the third item - Desert Eagle { if (GetPlayerScore(playerid) >= 50) GivePlayerWeapon(playerid, 31, 450); // Give them a SMG GivePlayerWeapon(playerid, 9, 1); // Give them a Flame GivePlayerWeapon(playerid, 23, 540); // Give them a Combat Shotgun } else { SendClientMessage(playerid, -1,"You need 50 score for this class!@#!"); } } return 1; // We handled a dialog, so return 1. Just like OnPlayerCommandText. } return 0; // You MUST return 0 here! Just like OnPlayerCommandText. } |