23.02.2013, 17:08
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
{
// If the player picks up the Buy_License pickup at the driving school in Doherty
if (pickupid == Pickup_License)
// Ask the player which license he wants to buy
ShowPlayerDialog(playerid, DialogBuyLicenses, DIALOG_STYLE_LIST, TXT_DialogLicenseTitle, TXT_DialogLicenseList, TXT_DialogButtonBuy, TXT_DialogButtonCancel); // Let the player buy a license
{
//SFPD
if(pickupid == SFPD)
{
ShowPlayerDialog(playerid, DIALOG_SFPD, DIALOG_STYLE_MSGBOX, "SFPD","Are you sure you want to reset wanted level and pay $5.000 for it?", "Accept", "Cancel");
}
//LSPD
if(pickupid == LSPD)
{
ShowPlayerDialog(playerid, DIALOG_LSPD, DIALOG_STYLE_MSGBOX, "LSPD","Are you sure you want to reset wanted level and pay $5.000 for it?", "Accept", "Cancel");
}
//LVPD
if(pickupid == LVPD)
{
ShowPlayerDialog(playerid, DIALOG_LVPD, DIALOG_STYLE_MSGBOX, "LVPD","Are you sure you want to reset wanted level and pay $5.000 for it?", "Accept", "Cancel");
}
}
}
return 1;
}