14.09.2013, 17:07
Credits:
Zeex for his zcmd.
kosa451 for creating this filterscript
Includes:
All weapons grouped by category
Dialogs
Unlimited Ammunition
Zeex for his zcmd.
kosa451 for creating this filterscript
Includes:
All weapons grouped by category
Dialogs
Unlimited Ammunition
PHP код:
/*
_______________________________________________
| |
| [Advanced Weapon System by kosa451] |
| Credits: Zeex for his easy to use ZCMD |
| Credits: SAMP Forum for a_samp |
|_______________________________________________|
*/
#define FILTERSCRIPT
#include <a_samp>
#include <zcmd>
#define WEAPONS 9999
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Advanced Weapon System by kosa451 v1.0 Loading...");
print("--------------------------------------\n");
print(" Advanced Weapon System by kosa451Loaded Successfully");
print("----------------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#else
#endif
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == WEAPONS)
{
if(response)
{
if(listitem == 0)
{
ShowPlayerDialog(playerid, WEAPONS+1, DIALOG_STYLE_LIST, "{CC0000}Weapon Menu", "Brass Knuckles(100$)\nGolf Club(100$)\nNite Stick(100$)\nKnife(500$)\nBat(100$)\nShovel(100$)\nPool Cue(100$)\nKatana(100$)\nDildo(100$)\nSpray Can(100$)\nCane(100$)\nFlowers(100$)", "Buy", "Cancel");
}
if(listitem == 1)
{
ShowPlayerDialog(playerid, WEAPONS+2, DIALOG_STYLE_LIST, "{CC0000}Weapon Menu", "9mm(500$)\nSilenced 9mm(500$)\nDesert Eagle(2000$)", "Buy", "Cancel");
}
if(listitem == 2)
{
ShowPlayerDialog(playerid, WEAPONS+3, DIALOG_STYLE_LIST, "{CC0000}Weapon Menu", "Uzi(2500$)\nMP5(2500$)\nTec9(2500$)", "Buy", "Cancel");
}
if(listitem == 3)
{
ShowPlayerDialog(playerid, WEAPONS+4, DIALOG_STYLE_LIST, "{CC0000}Weapon Menu", "Country Rifle(5000$)\nSniper Rifle(10000$)", "Buy", "Cancel");
}
if(listitem == 4)
{
ShowPlayerDialog(playerid, WEAPONS+5, DIALOG_STYLE_LIST, "{CC0000}Weapon Menu", "AK-47(15000$)\nM4(15000$)", "Buy", "Cancel");
}
if(listitem == 5)
{
ShowPlayerDialog(playerid, WEAPONS+6, DIALOG_STYLE_LIST, "{CC0000}Weapon Menu", "Shotgun(4000$)\nSawnoff Shotgun(15000$)\nCombat Shotgun(20000$)", "Buy", "Cancel");
}
if(listitem == 6)
{
ShowPlayerDialog(playerid, WEAPONS+7, DIALOG_STYLE_LIST, "{CC0000}Weapon Menu", "Rocket Laucher(100000$)\nHeat Seaker(100000$)\nMinigun(500000$)\nChain Saw(50000$)", "Buy", "Cancel");
}
if(listitem == 7)
{
ShowPlayerDialog(playerid, WEAPONS+8, DIALOG_STYLE_LIST, "{CC0000}Weapon Menu", "Granade(60000$)\nTear Gas(10000$)\nSatchel Charge(60000$)\nMolotov Cocktail(60000$)", "Buy", "Cancel");
}
if(listitem == 8)
{
ShowPlayerDialog(playerid, WEAPONS+9, DIALOG_STYLE_LIST, "{CC0000}Weapon Menu", "Fire Extinguisher(5000$)\nParachute(500$)\nNightvision Goggles(5000$)", "Buy", "Cancel");
}
}
return 1;
}
if(dialogid == WEAPONS+1)
{
if(response)
{
if(listitem == 0)
{
GivePlayerWeapon(playerid, 1, 999);
GivePlayerMoney(playerid, -100);
SendClientMessage(playerid, -1," You successfuly purchased a Brass Knuckles for 100$!");
}
if(listitem == 1)
{
GivePlayerWeapon(playerid, 2, 999);
GivePlayerMoney(playerid, -100);
SendClientMessage(playerid, -1," You successfuly purchased a Golf Club for 100$!");
}
if(listitem == 2)
{
GivePlayerWeapon(playerid, 3, 999);
GivePlayerMoney(playerid, -100);
SendClientMessage(playerid, -1," You successfuly purchased a Nite Stick for 100$!");
}
if(listitem == 3)
{
GivePlayerWeapon(playerid, 4, 999);
GivePlayerMoney(playerid, -500);
SendClientMessage(playerid, -1," You successfuly purchased a Knife for 500$!");
}
if(listitem == 4)
{
GivePlayerWeapon(playerid, 5, 999);
GivePlayerMoney(playerid, -100);
SendClientMessage(playerid, -1," You successfuly purchased a Bat for 100$!");
}
if(listitem == 5)
{
GivePlayerWeapon(playerid, 6, 999);
GivePlayerMoney(playerid, -100);
SendClientMessage(playerid, -1," You successfuly purchased a Shovel for 100$!");
}
if(listitem == 6)
{
GivePlayerWeapon(playerid, 7, 999);
GivePlayerMoney(playerid, -100);
SendClientMessage(playerid, -1," You successfuly purchased a Pool Cue for 100$!");
}
if(listitem == 7)
{
GivePlayerWeapon(playerid, 8, 999);
GivePlayerMoney(playerid, -100);
SendClientMessage(playerid, -1," You successfuly purchased a Katana for 100$!");
}
if(listitem == 8)
{
GivePlayerWeapon(playerid, 11, 999);
GivePlayerMoney(playerid, -100);
SendClientMessage(playerid, -1," You successfuly purchased a Dildo for 100$!");
}
if(listitem == 9)
{
GivePlayerWeapon(playerid, 41, 99999);
GivePlayerMoney(playerid, -100);
SendClientMessage(playerid, -1," You successfuly purchased a Spray Can for 100$!");
}
if(listitem == 10)
{
GivePlayerWeapon(playerid, 15, 99999);
GivePlayerMoney(playerid, -100);
SendClientMessage(playerid, -1," You successfuly purchased a Cane for 100$!");
}
if(listitem == 11)
{
GivePlayerWeapon(playerid, 14, 99999);
GivePlayerMoney(playerid, -100);
SendClientMessage(playerid, -1," You successfuly purchased a Flowers for 100$!");
}
}
return 1;
}
if(dialogid == WEAPONS+2)
{
if(response)
{
if(listitem == 0)
{
GivePlayerWeapon(playerid, 22, 99999);
GivePlayerMoney(playerid, -500);
SendClientMessage(playerid, -1," You successfuly purchased a 9mm for 500$!");
}
if(listitem == 1)
{
GivePlayerWeapon(playerid, 23, 99999);
GivePlayerMoney(playerid, -500);
SendClientMessage(playerid, -1," You successfuly purchased a Silenced 9mm for 500$!");
}
if(listitem == 2)
{
GivePlayerWeapon(playerid, 24, 99999);
GivePlayerMoney(playerid, -2000);
SendClientMessage(playerid, -1," You successfuly purchased a Deagle for 2000$!");
}
}
return 1;
}
if(dialogid == WEAPONS+3)
{
if(response)
{
if(listitem == 0)
{
GivePlayerWeapon(playerid, 28, 99999);
GivePlayerMoney(playerid, -2500);
SendClientMessage(playerid, -1," You successfuly purchased a UZI for 2500$!");
}
if(listitem == 1)
{
GivePlayerWeapon(playerid, 29, 99999);
GivePlayerMoney(playerid, -2500);
SendClientMessage(playerid, -1," You successfuly purchased a MP5 for 2500$!");
}
if(listitem == 2)
{
GivePlayerWeapon(playerid, 32, 99999);
GivePlayerMoney(playerid, -2500);
SendClientMessage(playerid, -1," You successfuly purchased a Tec-9 for 2500$!");
}
}
return 1;
}
if(dialogid == WEAPONS+4)
{
if(response)
{
if(listitem == 0)
{
GivePlayerWeapon(playerid, 33, 99999);
GivePlayerMoney(playerid, -5000);
SendClientMessage(playerid, -1," You successfuly purchased a Country Rifle for 5000$!");
}
if(listitem == 1)
{
GivePlayerWeapon(playerid, 34, 99999);
GivePlayerMoney(playerid, -10000);
SendClientMessage(playerid, -1," You successfuly purchased a Sniper Rifle for 10000$!");
}
}
return 1;
}
if(dialogid == WEAPONS+5)
{
if(response)
{
if(listitem == 0)
{
GivePlayerWeapon(playerid, 30, 99999);
GivePlayerMoney(playerid, -15000);
SendClientMessage(playerid, -1," You successfuly purchased a AK-47 for 15000$!");
}
if(listitem == 1)
{
GivePlayerWeapon(playerid, 31, 99999);
GivePlayerMoney(playerid, -15000);
SendClientMessage(playerid, -1," You successfuly purchased a M4A1 Rifle for 15000$!");
}
}
return 1;
}
if(dialogid == WEAPONS+6)
{
if(response)
{
if(listitem == 0)
{
GivePlayerWeapon(playerid, 25, 99999);
GivePlayerMoney(playerid, -15000);
SendClientMessage(playerid, -1," You successfuly purchased a Shotgun for 4000$!");
}
if(listitem == 1)
{
GivePlayerWeapon(playerid, 26, 99999);
GivePlayerMoney(playerid, -15000);
SendClientMessage(playerid, -1," You successfuly purchased a Spawnoff Shotgun for 15000$!");
}
if(listitem == 2)
{
GivePlayerWeapon(playerid, 27, 99999);
GivePlayerMoney(playerid, -15000);
SendClientMessage(playerid, -1," You successfuly purchased a Combat Shotgun for 20000$!");
}
}
return 1;
}
if(dialogid ==