11.02.2013, 22:03
Ok, here. note that first one gets you AK47 and other M4 and the other one Respray as i understanded them.
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(response)// They pressed the first button
{
switch(1)// Checking what dialog we're processing
{
case 1:// Our first dialog
{
switch(listitem)// Checking which item was chosen
{
case 0: // The first listitem
{
GivePlayerWeapon(playerid, 30, 5000); // AK47
}
case 1: // The second listitem
{
GivePlayerWeapon(playerid, 31, 5000); // M4
}
case 2: // The third listitem
{
GivePlayerWeapon(playerid, 41, 5000); // RESPRAY
}
}
}
}
return 1;
}

