04.07.2014, 11:34
Hello look
In my server i have /god cmd and /wshop where u can buy weapons,So I dont want when a player has typed /god to be able to type /wshop too and i made this code.
Help me please it doestn works.
In my server i have /god cmd and /wshop where u can buy weapons,So I dont want when a player has typed /god to be able to type /wshop too and i made this code.
Код:
CMD:wshop(playerid, params[]){ ShowPlayerDialog(playerid, 4, DIALOG_STYLE_LIST, "Weapon Shop", "Colt 45 ($75,000)\nDesert Eagle ($90,000)\nShotgun ($20,000)\nSawnoff Shotgun ($40,500)\nCombat Shotgun ($80,000)\nMicro SMG ($80,000)\nTec9 ($100,800)\nMP5 ($100,000)\nAK-47 ($300,000)\nM4 ($190,500)\nCountry Rifle ($150,000)\nSniper Rifle ($200,500)\nHeat-Seaking Rocket ($650,000)\nFlamethrower ($500,000)\nMinigun ($600,500)\nRPG ($700,000)\nParachute ($1.000)\n", "Buy!", "Cancel"); if(GetPlayerHealth(playerid) > 100) return SendClientMessage(playerid,COLOR_RED,"You cant use /god and /wshop together.Turn off your gode mode and then buy weapons"); return 1;}