17.04.2010, 12:49
Hi All....
please
I really need help on you not has enough money.
i mean when i buy some weapon, i not has enough money it will say ." sorry you not has enough money" something like that
so can help me ??
please
I really need help on you not has enough money.
i mean when i buy some weapon, i not has enough money it will say ." sorry you not has enough money" something like that
Код:
#include <a_samp> public OnFilterScriptInit() { print("-----------------------------------------"); print(" WEAPON MENU BY ZYTARMIX (it me new name :P stboyz xD"); print("-----------------------------------------"); return 1; } public OnFilterScriptExit() { return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/wmenu", cmdtext, true, 12) == 0) { ShowPlayerDialog(playerid, 8777, 2, "Select Type Of Weapon", "Melee 100$\nThrown 900$\nPistols 1200$\nShotguns 3000$\nSub-machine gun 1000$\nRifles 5000$\nHeavy weapons 7000$\nHand held 500$\nApparel 800$\nSpecial 1050$", "Select", "Exit"); return 1; } return 0; } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(response == 1) { switch(dialogid) { case 8777: { switch(listitem) { case 0: ShowPlayerDialog(playerid, 8778, 2, "Melee 100$", "Brass knuckles \nGolf club \nNite stick \nKnife \nBaseball bat\nShovel\nPool cue\nKatana\nChainsaw\nPurple dildo\nShort dildo\nLong vibrator\nLong vibrator\nFlowers\nCane", "Buy", "Cancel"); case 1: ShowPlayerDialog(playerid, 8779, 2, "Thrown 900$", "Grenades\nTear Gas\nMolotov cocktail", "Buy", "Cancel"); case 2: ShowPlayerDialog(playerid, 8780, 2, "Pistols 1200$", "9mm Pistol\nSilenced pistol\nDesert eagle", "Buy", "Cancel"); case 3: ShowPlayerDialog(playerid, 8781, 2, "Shotguns 3000$", "Shotgun\nSawn-off shotgun\nCombat shotgun", "Buy", "Cancel"); case 4: ShowPlayerDialog(playerid, 8782, 2, "Sub-machine gun 1000$", "Micro Uzi\nMP5\nTEC9", "Buy", "Cancel"); case 5: ShowPlayerDialog(playerid, 8783, 2, "Rifles 5000$", "AK47\nM4\nCountry rifle\nSniper rifle", "Buy", "Cancel"); case 6: ShowPlayerDialog(playerid, 8784, 2, "Heavy weapons 7000$", "Rocket Launcher\nHS-Rocket Launcher\nFlame thrower\nMinigun", "Buy", "Cancel"); case 7: ShowPlayerDialog(playerid, 8785, 2, "Hand held 500$", "Spray can\nFire extinguisher\nCamera", "Buy", "Cancel"); case 8: ShowPlayerDialog(playerid, 8786, 2, "Apparel 800$", "Night vision\nThermal goggles\nParachute", "Buy", "Cancel"); case 9: ShowPlayerDialog(playerid, 8787, 2, "Special 1050$", "Satchel charges\nDetonator", "Buy", "Cancel"); } } case 8778: { new weapons[] = {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15}; GivePlayerMoney(playerid,-100); return GivePlayerWeapon(playerid, weapons[listitem], 500); } case 8779: { new weapons[] = {16,17,18}; GivePlayerMoney(playerid,-900); return GivePlayerWeapon(playerid, weapons[listitem], 500); } case 8780: { new weapons[] = {22,23,24}; GivePlayerMoney(playerid,-1200); return GivePlayerWeapon(playerid, weapons[listitem], 500); } case 8781: { new weapons[] = {25,26,27}; GivePlayerMoney(playerid,-3000); return GivePlayerWeapon(playerid, weapons[listitem], 500); } case 8782: { new weapons[] = {28,29,32}; GivePlayerMoney(playerid,-1000); return GivePlayerWeapon(playerid, weapons[listitem], 500); } case 8783: { new weapons[] = {30,31,33,34}; GivePlayerMoney(playerid,-5000); return GivePlayerWeapon(playerid, weapons[listitem], 500); } case 8784: { new weapons[] = {35,36,37,38}; GivePlayerMoney(playerid,-7000); return GivePlayerWeapon(playerid, weapons[listitem], 500); } case 8785: { new weapons[] = {41,42,43,44}; GivePlayerMoney(playerid,-500); return GivePlayerWeapon(playerid, weapons[listitem], 500); } case 8786: { new weapons[] = {44,45,46}; GivePlayerMoney(playerid,-800); return GivePlayerWeapon(playerid, weapons[listitem], 500); } case 8787: { new weapons[] = {39,40}; GivePlayerMoney(playerid,-1050); return GivePlayerWeapon(playerid, weapons[listitem], 500); } } } return 1; }