30.04.2015, 05:32
pawn Код:
/*
Title :- Weapon Shop v1.0
Author :- Sly (GShock)
SA-MP forum :- http://forum.sa-mp.com/member.php?u=212767
Script link :- http://pastebin.com/VU2cMphQ
*/
#include <a_samp>
#include <zcmd>
#define DIALOG_WEAPON 69 /* ( Change this ID if your gamemode already has a dialog with this ID) */
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOG_WEAPON)
{
if(response)
{
switch(listitem)
{
case 0: ShowPlayerDialog(playerid, 70, DIALOG_STYLE_LIST, "Melee", "Brass Knuckles\nGolf Club\nNightstick\nKnife\nBaseball Bat\nShovel\nPool Cue\nKatana\nChainsaw", "Go", "Exit");
case 1: ShowPlayerDialog(playerid, 71, DIALOG_STYLE_LIST, "Pistols", "9mm\nSilenced 9mm\nDesert Eagle", "Go", "Exit");
case 2: ShowPlayerDialog(playerid, 72, DIALOG_STYLE_LIST, "Shotguns", "Shotgun\nSawnoff Shotgun\nCombat Shotgun", "Go", "Exit");
case 3: ShowPlayerDialog(playerid, 73, DIALOG_STYLE_LIST, "Sub Machines", "Uzi\nMP5\nTec-9", "Go", "Exit");
case 4: ShowPlayerDialog(playerid, 74, DIALOG_STYLE_LIST, "Rifles", "AK-47\nM4\nCountry Rifle\nSniper Rifle", "Go", "Exit");
case 5: ShowPlayerDialog(playerid, 75, DIALOG_STYLE_LIST, "Thrown", "Tear Gas\nMolotov Cocktail", "Go", "Exit");
case 6: ShowPlayerDialog(playerid, 76, DIALOG_STYLE_LIST, "Other", "Fire Extinguisher\nCamera", "Go", "Exit");
}
}
}
return 1;
}
CMD:weaponshop(playerid, params[])
{
ShowPlayerDialog(playerid, DIALOG_WEAPON, DIALOG_STYLE_LIST, "{00ff00}Weapon Shop by Sly", "Melee\nPistols\nShotguns\nSub Machines\nRifles\nThrown\nOther", "Next", "Exit");
SendClientMessage(playerid , -1 ,"This script it brought to you by Sly! (GShock)");
return 1;
}
How come this even gives weapons when you don't even use GivePlayerWeapon!
And the users rating
Quote:
Nice, good .... |