29.08.2011, 10:28
PHP код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOG_PICKUP)
{
if(response)
{
case 0:
{
SendClientMessage(playerid,-1,"You have get 1000$");
GivePlayerMoney(playerid,1000);
}
case 1:
{
SendClientMessage(playerid,-1,"You have get weapon");
GivePlayerWeapon(playerid,25,100);
}
}
}
return 1;
}