12.10.2012, 10:16
(
Последний раз редактировалось Team_PRO; 07.08.2014 в 20:24.
Причина: Updating
)
Hello This Is my Third Filterscipt Weapon Menu
Photo:
Code If You Want
Includes
- All of Weapon
- Added Dialog Box
- Infinite Ammo
Photo:
Code If You Want
Version 1.2
PHP код:
#include <a_samp>
#define DIALOGID 1337
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Weapon Menu by Team_PRO is Loaded [V1.2]");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#else
main()
{
print("\n----------------------------------");
print(" Weapon List By Team_PRO is Unloaded [V1.2]");
print("----------------------------------\n");
}
#endif
public OnGameModeInit()
{
// Don't use these lines if it's a filterscript
SetGameModeText("Stunt|DM|Fun|Derby");
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
return 1;
}
public OnGameModeExit()
{
print("\n--------------------------------------");
print(" Weapon Menu by Team_PRO is Unloaded [V1.2]");
print("--------------------------------------\n");
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/shop", cmdtext, true, 10) == 0)
{
ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_LIST, "Weapon Lists", "{00FF00}Melees\n{00FF00}Pistols\n{00FF00}Sub-Machine Guns\n{00FF00}Rifle's\n{00FF00}Assault Rifle\n{00FF00}Shotgun\n{00FF00}Heavy Weapon\n{00FF00}Thrown\n{00FF00}Other Melees", "Select", "Cancel");
SendClientMessage(playerid,1,"You've Been Opened The Weapon Menu/Shop");
return 1;
}
return 0;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOGID)
{
if(response)
{
if(listitem == 0)
{
ShowPlayerDialog(playerid, DIALOGID+1, DIALOG_STYLE_LIST, "Weapon Menu", "Knuckle Dusters\nGolf Club\nNite Stick\nKnife\nBat\nShovel\nPool Cue\nKatana\nDildo\nSpray Can\n", "Select", "Cancel");
}
if(listitem == 1)
{
ShowPlayerDialog(playerid, DIALOGID+2, DIALOG_STYLE_LIST, "Weapon Menu", "9mm\nSilenced 9mm\nDesert Eagle", "Get", "Cancel");
}
if(listitem == 2)
{
ShowPlayerDialog(playerid, DIALOGID+3, DIALOG_STYLE_LIST, "Weapon Menu", "Uzi\nSMG\nTec9", "Get", "Cancel");
}
if(listitem == 3)
{
ShowPlayerDialog(playerid, DIALOGID+4, DIALOG_STYLE_LIST, "Weapon Menu", "Country Rifle\nSniper Rifle", "Get", "Cancel");
}
if(listitem == 4)
{
ShowPlayerDialog(playerid, DIALOGID+5, DIALOG_STYLE_LIST, "Weapon Menu", "AK-47\nM4", "Get", "Cancel");
}
if(listitem == 5)
{
ShowPlayerDialog(playerid, DIALOGID+6, DIALOG_STYLE_LIST, "Weapon Menu", "Standard Shotgun\nSawnoff Shotgun\nCombat Shotgun", "Get", "Cancel");
}
if(listitem == 6)
{
ShowPlayerDialog(playerid, DIALOGID+7, DIALOG_STYLE_LIST, "Weapon Menu", "Rocket Laucher\nHeat Seaker\nMinigun\nChain Saw", "Get", "Cancel");
}
if(listitem == 7)
{
ShowPlayerDialog(playerid, DIALOGID+8, DIALOG_STYLE_LIST, "Weapon Menu", "Granade\nTear Gas", "Get", "Cancel");
}
if(listitem == 8)
{
ShowPlayerDialog(playerid, DIALOGID+9, DIALOG_STYLE_LIST, "Weapon Menu", "Fire Extinguisher\nSatchel Charge\nParachute\nNightvision Goggles\nFlowers", "Get", "Cancel");
}
}
return 1;
}
if(dialogid == DIALOGID+1)
{
if(response)
{
if(listitem == 0)
{
GivePlayerWeapon(playerid, 1, 1);
GivePlayerMoney(playerid,-500);
}
if(listitem == 1)
{
GivePlayerWeapon(playerid, 2, 1);
GivePlayerMoney(playerid,-500);
}
if(listitem == 2)
{
GivePlayerMoney(playerid,-500);
GivePlayerWeapon(playerid, 3, 1);
}
if(listitem == 3)
{
GivePlayerMoney(playerid,-500);
GivePlayerWeapon(playerid, 4, 1);
}
if(listitem == 4)
{
GivePlayerMoney(playerid,-500);
GivePlayerWeapon(playerid, 5, 1);
}
if(listitem == 5)
{
GivePlayerMoney(playerid,-500);
GivePlayerWeapon(playerid, 6, 1);
}
if(listitem == 6)
{
GivePlayerMoney(playerid,-500);
GivePlayerWeapon(playerid, 7, 1);
}
if(listitem == 7)
{
GivePlayerMoney(playerid,-500);
GivePlayerWeapon(playerid, 8, 1);
}
if(listitem == 8)
{
GivePlayerMoney(playerid,-500);
GivePlayerWeapon(playerid, 10, 1);
}
if(listitem == 9)
{
GivePlayerMoney(playerid,-500);
GivePlayerWeapon(playerid, 41, 99999);
}
if(listitem == 10)
{
GivePlayerMoney(playerid,-500);
GivePlayerWeapon(playerid, 15, 1);
}
}
return 1;
}
if(dialogid == DIALOGID+2)
{
if(response)
{
if(listitem == 0)
{
GivePlayerMoney(playerid,-5000);
GivePlayerWeapon(playerid, 22, 99999);
}
if(listitem == 1)
{
GivePlayerMoney(playerid,-5000);
GivePlayerWeapon(playerid, 23, 99999);
}
if(listitem == 2)
{
GivePlayerMoney(playerid,-5000);
GivePlayerWeapon(playerid, 24, 99999);
}
}
return 1;
}
if(dialogid == DIALOGID+3)
{
if(response)
{
if(listitem == 0)
{
GivePlayerMoney(playerid,-5000);
GivePlayerWeapon(playerid, 28, 99999);
}
if(listitem == 1)
{
GivePlayerMoney(playerid,-5000);
GivePlayerWeapon(playerid, 29, 99999);
}
if(listitem == 2)
{
GivePlayerMoney(playerid,-5000);
GivePlayerWeapon(playerid, 32, 99999);
}
}
return 1;
}
if(dialogid == DIALOGID+4)
{
if(response)
{
if(listitem == 0)
{
GivePlayerMoney(playerid,-5000);
GivePlayerWeapon(playerid, 33, 99999);
}
if(listitem == 1)
{
GivePlayerMoney(playerid,-5000);
GivePlayerWeapon(playerid, 34, 99999);
}
}
return 1;
}
if(dialogid == DIALOGID+5)
{
if(response)
{
if(listitem == 0)
{
GivePlayerMoney(playerid,-5000);
GivePlayerWeapon(playerid, 30, 99999);
}
if(listitem == 1)
{
GivePlayerMoney(playerid,-5000);
GivePlayerWeapon(playerid, 31, 99999);
}
}
return 1;
}
if(dialogid == DIALOGID+6)
{
if(response)
{
if(listitem == 0)
{
GivePlayerMoney(playerid,-5000);
GivePlayerWeapon(playerid, 25, 99999);
}
if(listitem == 1)
{
GivePlayerMoney(playerid,-5000);
GivePlayerWeapon(playerid, 26, 99999);
}
if(listitem == 2)
{
GivePlayerMoney(playerid,-5000);
GivePlayerWeapon(playerid, 27, 99999);
}
}
return 1;
}
if(dialogid == DIALOGID+7)
{
if(response)
{
if(listitem == 0)
{
GivePlayerMoney(playerid,-5000);
GivePlayerWeapon(playerid, 35, 99999);
}
if(listitem == 1)
{
GivePlayerMoney(playerid,-5000);
GivePlayerWeapon(playerid, 36, 99999);
}
if(listitem == 2)
{
GivePlayerMoney(playerid,-5000);
GivePlayerWeapon(playerid, 38, 99999);
}
if(listitem == 3)
{
GivePlayerMoney(playerid,-5000);
GivePlayerWeapon(playerid, 9, 99999);
}
}
return 1;
}
if(dialogid == DIALOGID+8)
{
if(response)
{
if(listitem == 0)
{
GivePlayerMoney(playerid,-5000);
GivePlayerWeapon(playerid, 16, 99999);
}
if(listitem == 1)
{
GivePlayerMoney(playerid,-5000);
GivePlayerWeapon(playerid, 17, 99999);
}
}
return 1;
}
if(dialogid == DIALOGID+9)
{
if(response)
{
if(listitem == 0)
{
GivePlayerMoney(playerid,-5000);
GivePlayerWeapon(playerid, 42, 99999);
}
if(listitem == 1)
{
GivePlayerMoney(playerid,-5000);
GivePlayerWeapon(playerid, 39, 1);
GivePlayerWeapon(playerid, 40, 1);
}
if(listitem == 2)
{
GivePlayerMoney(playerid,-5000);
GivePlayerWeapon(playerid, 46, 1);
}
if(listitem == 3)
{
GivePlayerMoney(playerid,-5000);
GivePlayerWeapon(playerid, 44, 1);
}
if(listitem == 4)
{
GivePlayerMoney(playerid,-5000);
GivePlayerWeapon(playerid, 14, 1);
}
}
return 1;
}
return 0;
}
Version 1.1
PHP код:
#include <a_samp>
#define DIALOGID 1337
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Weapon Menu by Team_PRO is Loaded [V1.1]");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#else
main()
{
print("\n----------------------------------");
print(" Weapon List By Team_PRO is Unloaded [V1.1]");
print("----------------------------------\n");
}
#endif
public OnGameModeInit()
{
// Don't use these lines if it's a filterscript
SetGameModeText("Stunt|DM|Fun|Derby");
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
return 1;
}
public OnGameModeExit()
{
print("\n--------------------------------------");
print(" Weapon Menu by Team_PRO is Unloaded [V1.1]");
print("--------------------------------------\n");
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/shop", cmdtext, true, 10) == 0)
{
ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_LIST, "Weapon Lists", "{00FF00}Melees\n{00FF00}Pistols\n{00FF00}Sub-Machine Guns\n{00FF00}Rifle's\n{00FF00}Assault Rifle\n{00FF00}Shotgun\n{00FF00}Heavy Weapon\n{00FF00}Thrown\n{00FF00}Other Melees", "Select", "Cancel");
SendClientMessage(playerid,1,"You've Been Opened The Weapon Menu/Shop");
return 1;
}
return 0;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOGID)
{
if(response)
{
if(listitem == 0)
{
ShowPlayerDialog(playerid, DIALOGID+1, DIALOG_STYLE_LIST, "Weapon Menu", "Knuckle Dusters\nGolf Club\nNite Stick\nKnife\nBat\nShovel\nPool Cue\nKatana\nDildo\nSpray Can\n", "Select", "Cancel");
}
if(listitem == 1)
{
ShowPlayerDialog(playerid, DIALOGID+2, DIALOG_STYLE_LIST, "Weapon Menu", "9mm\nSilenced 9mm\nDesert Eagle", "Get", "Cancel");
}
if(listitem == 2)
{
ShowPlayerDialog(playerid, DIALOGID+3, DIALOG_STYLE_LIST, "Weapon Menu", "Uzi\nSMG\nTec9", "Get", "Cancel");
}
if(listitem == 3)
{
ShowPlayerDialog(playerid, DIALOGID+4, DIALOG_STYLE_LIST, "Weapon Menu", "Country Rifle\nSniper Rifle", "Get", "Cancel");
}
if(listitem == 4)
{
ShowPlayerDialog(playerid, DIALOGID+5, DIALOG_STYLE_LIST, "Weapon Menu", "AK-47\nM4", "Get", "Cancel");
}
if(listitem == 5)
{
ShowPlayerDialog(playerid, DIALOGID+6, DIALOG_STYLE_LIST, "Weapon Menu", "Standard Shotgun\nSawnoff Shotgun\nCombat Shotgun", "Get", "Cancel");
}
if(listitem == 6)
{
ShowPlayerDialog(playerid, DIALOGID+7, DIALOG_STYLE_LIST, "Weapon Menu", "Rocket Laucher\nHeat Seaker\nMinigun\nChain Saw", "Get", "Cancel");
}
if(listitem == 7)
{
ShowPlayerDialog(playerid, DIALOGID+8, DIALOG_STYLE_LIST, "Weapon Menu", "Granade\nTear Gas", "Get", "Cancel");
}
if(listitem == 8)
{
ShowPlayerDialog(playerid, DIALOGID+9, DIALOG_STYLE_LIST, "Weapon Menu", "Fire Extinguisher\nSatchel Charge\nParachute\nNightvision Goggles\nFlowers", "Get", "Cancel");
}
}
return 1;
}
if(dialogid == DIALOGID+1)
{
if(response)
{
if(listitem == 0)
{
GivePlayerWeapon(playerid, 1, 1);
GivePlayerMoney(playerid,-500);
}
if(listitem == 1)
{
GivePlayerWeapon(playerid, 2, 1);
GivePlayerMoney(playerid,-500);
}
if(listitem == 2)
{
GivePlayerMoney(playerid,-500);
GivePlayerWeapon(playerid, 3, 1);
}
if(listitem == 3)
{
GivePlayerMoney(playerid,-500);
GivePlayerWeapon(playerid, 4, 1);
}
if(listitem == 4)
{
GivePlayerMoney(playerid,-500);
GivePlayerWeapon(playerid, 5, 1);
}
if(listitem == 5)
{
GivePlayerMoney(playerid,-500);
GivePlayerWeapon(playerid, 6, 1);
}
if(listitem == 6)
{
GivePlayerMoney(playerid,-500);
GivePlayerWeapon(playerid, 7, 1);
}
if(listitem == 7)
{
GivePlayerMoney(playerid,-500);
GivePlayerWeapon(playerid, 8, 1);
}
if(listitem == 8)
{
GivePlayerMoney(playerid,-500);
GivePlayerWeapon(playerid, 10, 1);
}
if(listitem == 9)
{
GivePlayerMoney(playerid,-500);
GivePlayerWeapon(playerid, 41, 99999);
}
if(listitem == 10)
{
GivePlayerMoney(playerid,-500);
GivePlayerWeapon(playerid, 15, 1);
}
}
return 1;
}
if(dialogid == DIALOGID+2)
{
if(response)
{
if(listitem == 0)
{
GivePlayerMoney(playerid,-5000);
GivePlayerWeapon(playerid, 22, 99999);
}
if(listitem == 1)
{
GivePlayerMoney(playerid,-5000);
GivePlayerWeapon(playerid, 23, 99999);
}
if(listitem == 2)
{
GivePlayerMoney(playerid,-5000);
GivePlayerWeapon(playerid, 24, 99999);
}
}
return 1;
}
if(dialogid == DIALOGID+3)
{
if(response)
{
if(listitem == 0)
{
GivePlayerMoney(playerid,-5000);
GivePlayerWeapon(playerid, 28, 99999);
}
if(listitem == 1)
{
GivePlayerMoney(playerid,-5000);
GivePlayerWeapon(playerid, 29, 99999);
}
if(listitem == 2)
{
GivePlayerMoney(playerid,-5000);
GivePlayerWeapon(playerid, 32, 99999);
}
}
return 1;
}
if(dialogid == DIALOGID+4)
{
if(response)
{
if(listitem == 0)
{
GivePlayerMoney(playerid,-5000);
GivePlayerWeapon(playerid, 33, 99999);
}
if(listitem == 1)
{
GivePlayerMoney(playerid,-5000);
GivePlayerWeapon(playerid, 34, 99999);
}
}
return 1;
}
if(dialogid == DIALOGID+5)
{
if(response)
{
if(listitem == 0)
{
GivePlayerMoney(playerid,-5000);
GivePlayerWeapon(playerid, 30, 99999);
}
if(listitem == 1)
{
GivePlayerMoney(playerid,-5000);
GivePlayerWeapon(playerid, 31, 99999);
}
}
return 1;
}
if(dialogid == DIALOGID+6)
{
if(response)
{
if(listitem == 0)
{
GivePlayerMoney(playerid,-5000);
GivePlayerWeapon(playerid, 25, 99999);
}
if(listitem == 1)
{
GivePlayerMoney(playerid,-5000);
GivePlayerWeapon(playerid, 26, 99999);
}
if(listitem == 2)
{
GivePlayerMoney(playerid,-5000);
GivePlayerWeapon(playerid, 27, 99999);
}
}
return 1;
}
if(dialogid == DIALOGID+7)
{
if(response)
{
if(listitem == 0)
{
GivePlayerMoney(playerid,-5000);
GivePlayerWeapon(playerid, 35, 99999);
}
if(listitem == 1)
{
GivePlayerMoney(playerid,-5000);
GivePlayerWeapon(playerid, 36, 99999);
}
if(listitem == 2)
{
GivePlayerMoney(playerid,-5000);
GivePlayerWeapon(playerid, 38, 99999);
}
if(listitem == 3)
{
GivePlayerMoney(playerid,-5000);
GivePlayerWeapon(playerid, 9, 99999);
}
}
return 1;
}
if(dialogid == DIALOGID+8)
{
if(response)
{
if(listitem == 0)
{
GivePlayerMoney(playerid,-5000);
GivePlayerWeapon(playerid, 16, 99999);
}
if(listitem == 1)
{
GivePlayerMoney(playerid,-5000);
GivePlayerWeapon(playerid, 17, 99999);
}
}
return 1;
}
if(dialogid == DIALOGID+9)
{
if(response)
{
if(listitem == 0)
{
GivePlayerMoney(playerid,-5000);
GivePlayerWeapon(playerid, 42, 99999);
}
if(listitem == 1)
{
GivePlayerMoney(playerid,-5000);
GivePlayerWeapon(playerid, 39, 1);
GivePlayerWeapon(playerid, 40, 1);
}
if(listitem == 2)
{
GivePlayerMoney(playerid,-5000);
GivePlayerWeapon(playerid, 46, 1);
}
if(listitem == 3)
{
GivePlayerMoney(playerid,-5000);
GivePlayerWeapon(playerid, 44, 1);
}
if(listitem == 4)
{
GivePlayerMoney(playerid,-5000);
GivePlayerWeapon(playerid, 14, 1);
}
}
return 1;
}
return 0;
}
Version 1.0
PHP код:
#include <a_samp>
#define DIALOGID 1337
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Weapon Menu by Team_PRO is Loaded [V1.0]");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#else
main()
{
print("\n----------------------------------");
print(" Weapon List By Team_PRO is Unloaded [V1.0]");
print("----------------------------------\n");
}
#endif
public OnGameModeInit()
{
// Don't use these lines if it's a filterscript
SetGameModeText("Edit me Inside The Pawno");
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
return 1;
}
public OnGameModeExit()
{
print("\n--------------------------------------");
print(" Weapon Menu by Team_PRO is Unloaded [V1.0]");
print("--------------------------------------\n");
return 1;
}
public OnPlayerConnect(playerid)
{
SendClientMessage(playerid,-1,"This Server Used Weapon List By Team_PRO");
return 1;
}
public OnPlayerText(playerid, text[])
{
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/shop", cmdtext, true, 10) == 0)
{
ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_LIST, "Weapon Lists", "Melees\nPistols\nSub-Machine Guns\nRifle's\nAssault Rifle\nShotgun\nHeavy Weapon\nThrown\nOther Melees", "Select", "Cancel");
SendClientMessage(playerid,1,"You've Been Opened The Weapon Menu/Shop");
return 1;
}
return 0;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOGID)
{
if(response)
{
if(listitem == 0)
{
ShowPlayerDialog(playerid, DIALOGID+1, DIALOG_STYLE_LIST, "Weapon Menu(By Team_PRO)(All Weapon Is In Here)", "Knuckle Dusters\nGolf Club\nNite Stick\nKnife\nBat\nShovel\nPool Cue\nKatana\nDildo\nSpray Can\n", "Select", "Cancel");
}
if(listitem == 1)
{
ShowPlayerDialog(playerid, DIALOGID+2, DIALOG_STYLE_LIST, "Weapon Menu", "9mm\nSilenced 9mm\nDesert Eagle", "Get", "Cancel");
}
if(listitem == 2)
{
ShowPlayerDialog(playerid, DIALOGID+3, DIALOG_STYLE_LIST, "Weapon Menu", "Uzi\nSMG\nTec9", "Get", "Cancel");
}
if(listitem == 3)
{
ShowPlayerDialog(playerid, DIALOGID+4, DIALOG_STYLE_LIST, "Weapon Menu", "Country Rifle\nSniper Rifle", "Get", "Cancel");
}
if(listitem == 4)
{
ShowPlayerDialog(playerid, DIALOGID+5, DIALOG_STYLE_LIST, "Weapon Menu", "AK-47\nM4", "Get", "Cancel");
}
if(listitem == 5)
{
ShowPlayerDialog(playerid, DIALOGID+6, DIALOG_STYLE_LIST, "Weapon Menu", "Standard Shotgun\nSawnoff Shotgun\nCombat Shotgun", "Get", "Cancel");
}
if(listitem == 6)
{
ShowPlayerDialog(playerid, DIALOGID+7, DIALOG_STYLE_LIST, "Weapon Menu", "Rocket Laucher\nHeat Seaker\nMinigun\nChain Saw", "Get", "Cancel");
}
if(listitem == 7)
{
ShowPlayerDialog(playerid, DIALOGID+8, DIALOG_STYLE_LIST, "Weapon Menu", "Granade\nTear Gas", "Get", "Cancel");
}
if(listitem == 8)
{
ShowPlayerDialog(playerid, DIALOGID+9, DIALOG_STYLE_LIST, "Weapon Menu", "Fire Extinguisher\nSatchel Charge\nParachute\nNightvision Goggles\nFlowers", "Get", "Cancel");
}
}
return 1;
}
if(dialogid == DIALOGID+1)
{
if(response)
{
if(listitem == 0)
{
GivePlayerWeapon(playerid, 1, 1);
}
if(listitem == 1)
{
GivePlayerWeapon(playerid, 2, 1);
}
if(listitem == 2)
{
GivePlayerWeapon(playerid, 3, 1);
}
if(listitem == 3)
{
GivePlayerWeapon(playerid, 4, 1);
}
if(listitem == 4)
{
GivePlayerWeapon(playerid, 5, 1);
}
if(listitem == 5)
{
GivePlayerWeapon(playerid, 6, 1);
}
if(listitem == 6)
{
GivePlayerWeapon(playerid, 7, 1);
}
if(listitem == 7)
{
GivePlayerWeapon(playerid, 8, 1);
}
if(listitem == 8)
{
GivePlayerWeapon(playerid, 10, 1);
}
if(listitem == 9)
{
GivePlayerWeapon(playerid, 41, 99999);
}
if(listitem == 10)
{
GivePlayerWeapon(playerid, 15, 1);
}
}
return 1;
}
if(dialogid == DIALOGID+2)
{
if(response)
{
if(listitem == 0)
{
GivePlayerWeapon(playerid, 22, 99999);
}
if(listitem == 1)
{
GivePlayerWeapon(playerid, 23, 99999);
}
if(listitem == 2)
{
GivePlayerWeapon(playerid, 24, 99999);
}
}
return 1;
}
if(dialogid == DIALOGID+3)
{
if(response)
{
if(listitem == 0)
{
GivePlayerWeapon(playerid, 28, 99999);
}
if(listitem == 1)
{
GivePlayerWeapon(playerid, 29, 99999);
}
if(listitem == 2)
{
GivePlayerWeapon(playerid, 32, 99999);
}
}
return 1;
}
if(dialogid == DIALOGID+4)
{
if(response)
{
if(listitem == 0)
{
GivePlayerWeapon(playerid, 33, 99999);
}
if(listitem == 1)
{
GivePlayerWeapon(playerid, 34, 99999);
}
}
return 1;
}
if(dialogid == DIALOGID+5)
{
if(response)
{
if(listitem == 0)
{
GivePlayerWeapon(playerid, 30, 99999);
}
if(listitem == 1)
{
GivePlayerWeapon(playerid, 31, 99999);
}
}
return 1;
}
if(dialogid == DIALOGID+6)
{
if(response)
{
if(listitem == 0)
{
GivePlayerWeapon(playerid, 25, 99999);
}
if(listitem == 1)
{
GivePlayerWeapon(playerid, 26, 99999);
}
if(listitem == 2)
{
GivePlayerWeapon(playerid, 27, 99999);
}
}
return 1;
}
if(dialogid == DIALOGID+7)
{
if(response)
{
if(listitem == 0)
{
GivePlayerWeapon(playerid, 35, 99999);
}
if(listitem == 1)
{
GivePlayerWeapon(playerid, 36, 99999);
}
if(listitem == 2)
{
GivePlayerWeapon(playerid, 38, 99999);
}
if(listitem == 3)
{
GivePlayerWeapon(playerid, 9, 99999);
}
}
return 1;
}
if(dialogid == DIALOGID+8)
{
if(response)
{
if(listitem == 0)
{
GivePlayerWeapon(playerid, 16, 99999);
}
if(listitem == 1)
{
GivePlayerWeapon(playerid, 17, 99999);
}
}
return 1;
}
if(dialogid == DIALOGID+9)
{
if(response)
{
if(listitem == 0)
{
GivePlayerWeapon(playerid, 42, 99999);
}
if(listitem == 1)
{
GivePlayerWeapon(playerid, 39, 1);
GivePlayerWeapon(playerid, 40, 1);
}
if(listitem == 2)
{
GivePlayerWeapon(playerid, 46, 1);
}
if(listitem == 3)
{
GivePlayerWeapon(playerid, 44, 1);
}
if(listitem == 4)
{
GivePlayerWeapon(playerid, 14, 1);
}
}
return 1;
}
return 0;
}
PHP код:
Changelog 1.2
-Bug Fixed
PHP код:
Changelog 1.1
-Bug Fixed
-You Need $500 or $5000 To Buy Weapons
PHP код:
Changelog 1.0
-Initial Realease