10.03.2011, 12:31
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 2)
{
if(response)
{
if(listitem == 0)
{
GivePlayerWeapon(playerid,355,200);
}
if(listitem == 1)
{
GivePlayerWeapon(playerid,356,200);
}
if(listitem == 2)
{
GivePlayerWeapon(playerid,372,200);
}
if(listitem == 3)
{
GivePlayerWeapon(playerid,348,200);
}
if(listitem == 4)
{
GivePlayerWeapon(playerid,351,200);
}
if(listitem == 5)
{
GivePlayerWeapon(playerid,362,200);
}
if(listitem == 6)
{
GivePlayerWeapon(playerid,358,200);
}
if(listitem == 7)
{
GivePlayerWeapon(playerid,341,200);
}
}
}
return 1;
}