24.05.2016, 16:29
Try this
PHP код:
CMD:getlic(playerid, params[])
{
if (!IsPlayerInRangeOfPoint(playerid,2.0,366.54, 159.09, 1008.38)) { return 1; }
if (PlayerInfo[playerid][pWantedLevel] > 0) return SendClientMessageEx(playerid, COLOR_LIGHTRED, "You have an outstanding arrest warrant - acquisition of a license is prohibited.");
ShowPlayerDialog(playerid, DIALOG_LICENSE_BUY, DIALOG_STYLE_LIST, "Select the type of license you wish to acquire.", "Passport ($5,000)\nDriver's License ($5,000)\nPilot License ($25,000)\nTaxi License ($35,000)\nBoating License ($15,000)\nFishing License ($9,000)\nWeapon License ($20,000)", "Purchase", "Cancel");
return 1;
}