Weapon Shop
Weapon Shop
#include <zcmd>
#include <sscanf2>
//prices, just change the number to set the price of the weapon. The dialogs will
be auto updated
new colt = 150;
new deagle = 300;
new pumpshotgun = 350;
new combatshotgun = 500;
new mp5 = 420;
new tec9 = 400;
new ak47 = 700;
new m4 = 700;
new sniper = 1000;
new countryrifle = 850;
new armour = 500;
new parachute = 210;
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" WeaponShop by Pawnify ");
print("--------------------------------------\n");
return 1;
}main();
CMD:shop(playerid, params[])
{
if(!IsPlayerInAnyVehicle(playerid))
{
ShowPlayerDialog(playerid, 0, DIALOG_STYLE_LIST, "{008CFF}Weapon
Shop","{96BBD9}Pistols\n{518FC2}Shotguns\n{96BBD9}Submachine guns\n{518FC2}Assault
Rifles\n{96BBD9}Snipers\n{518FC2}Extras","Proceed","Cancel");
}else SendClientMessage(playerid, -1, "{FFFF00}[ERROR] {808080}You cannot use
this command inside of a vehicle.");
return 1;
}
CMD:buy(playerid, params[])
{
return cmd_shop(playerid, params);
}