#define GUNPACKAGES 5656
ShowPlayerDialog(playerid, GUNPACKAGES, DIALOG_STYLE_LIST,"Gun Packages"," PeeWee Package\nGangster package\nOG Package\n", "Enter", "Cancel");
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == GUNPACKAGES)
{
if(listitem == 0)
{
GivePlayerWeapon(playerid,1,900);
GivePlayerWeapon(playerid,16,900);
GivePlayerWeapon(playerid,22,900);
GivePlayerWeapon(playerid,25,900);
GivePlayerWeapon(playerid,29,900);
}
if(listitem == 1)
{
GivePlayerWeapon(playerid,9,900);
GivePlayerWeapon(playerid,16,900);
GivePlayerWeapon(playerid,24,900);
GivePlayerWeapon(playerid,26,900);
GivePlayerWeapon(playerid,28,900);
}
if(listitem == 2)
{
GivePlayerWeapon(playerid,5,900);
GivePlayerWeapon(playerid,18,900);
GivePlayerWeapon(playerid,24,900);
GivePlayerWeapon(playerid,27,900);
GivePlayerWeapon(playerid,31,900);
GivePlayerWeapon(playerid,32,900);
}
}
return 0;
}
ShowPlayerDialog(playerid, GUNPACKAGES, DIALOG_STYLE_LIST,"Gun Packages"," PeeWee Package\nGangster package\nOG Package\n", "Enter", "Cancel");
\n
ShowPlayerDialog(playerid, GUNPACKAGES, DIALOG_STYLE_LIST,"Gun Packages","PeeWee Package \nGangster package \nOG Package", "Enter", "Cancel");
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == GUNPACKAGES)
{
if(response)
{
if(listitem == 0)
{
GivePlayerWeapon(playerid,1,900);
GivePlayerWeapon(playerid,16,900);
GivePlayerWeapon(playerid,22,900);
GivePlayerWeapon(playerid,25,900);
GivePlayerWeapon(playerid,29,900);
}
if(listitem == 1)
{
GivePlayerWeapon(playerid,9,900);
GivePlayerWeapon(playerid,16,900);
GivePlayerWeapon(playerid,24,900);
GivePlayerWeapon(playerid,26,900);
GivePlayerWeapon(playerid,28,900);
}
if(listitem == 2)
{
GivePlayerWeapon(playerid,5,900);
GivePlayerWeapon(playerid,18,900);
GivePlayerWeapon(playerid,24,900);
GivePlayerWeapon(playerid,27,900);
GivePlayerWeapon(playerid,31,900);
GivePlayerWeapon(playerid,32,900);
}
}
return 0;
}
if(response)
{
pawn Код:
pawn Код:
pawn Код:
EDIT: pawn Код:
pawn Код:
|