public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == dmdia && response) { if(response) { if(listitem == 0) { GivePlayerWeapon(playerid,31,999); } if(listitem == 1) { GivePlayerWeapon(playerid,23,999); } if(listitem == 2) { GivePlayerWeapon(playerid,25,999); } if(listitem == 3) { GivePlayerWeapon(playerid,8,999); } } return 1; } ...
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == dmdia && response)
{
if(response)
{
if(listitem == 0)
{
GivePlayerWeapon(playerid,31,999);
}
if(listitem == 1)
{
GivePlayerWeapon(playerid,23,999);
}
if(listitem == 2)
{
GivePlayerWeapon(playerid,25,999);
}
if(listitem == 3)
{
GivePlayerWeapon(playerid,8,999);
}
}
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == dmdia && response) { if(response) { if(listitem == 0) { GivePlayerWeapon(playerid,31,999); } if(listitem == 1) { GivePlayerWeapon(playerid,23,999); } if(listitem == 2) { GivePlayerWeapon(playerid,25,999); } if(listitem == 3) { GivePlayerWeapon(playerid,8,999); } } } if(dialogid == dmdia+1&& response) { if(response) { if(listitem == 0) { GivePlayerWeapon(playerid,27,999); } if(listitem == 1) { GivePlayerWeapon(playerid,23,999); } if(listitem == 2) { GivePlayerWeapon(playerid,34,999); } if(listitem == 3) { GivePlayerWeapon(playerid,8,999); } if(listitem==4) { GivePlayerWeapon(playerid,28,999); } } } }
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == dmdia && response)
{
if(response)
{
if(listitem == 0)
{
GivePlayerWeapon(playerid,31,999);
}
else if(listitem == 1)
{
GivePlayerWeapon(playerid,23,999);
}
else if(listitem == 2)
{
GivePlayerWeapon(playerid,25,999);
}
else if(listitem == 3)
{
GivePlayerWeapon(playerid,8,999);
}
}
}
if(dialogid == dmdia+1&& response)
{
if(response)
{
if(listitem == 0)
{
GivePlayerWeapon(playerid,27,999);
}
else if(listitem == 1)
{
GivePlayerWeapon(playerid,23,999);
}
if(listitem == 2)
{
GivePlayerWeapon(playerid,34,999);
}
else if(listitem == 3)
{
GivePlayerWeapon(playerid,8,999);
}
else if(listitem==4)
{
GivePlayerWeapon(playerid,28,999);
}
}
return 1;
}
Return 0 at the end of OnDialogResponse callback for any script the server is running.
|