06.01.2013, 10:20
Heres the code.
When I type the command it doesn't show the dialog or do anything I don't see whats wrong with it.
pawn Код:
command(buygun, playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, 3, 308.1920, -141.4633, 999.6016))
{
if(Player[playerid][GunLicence] == 1)
{
ShowPlayerDialog(playerid, 45867, DIALOG_STYLE_LIST, "Ammu-Nation", "Melee Weapons\nPistols\nShotguns\nSub-Machine Guns\nAssault Rifles\nRifles\n", "Select", "Cancel");
}
else
{
SendClientMessage(playerid, WHITE, "You don't own a gun licence, You can get one by contacting the police.");
}
}
else
{
SendClientMessage(playerid, WHITE, "You are not in range of the /buygun point, If you need help finding it use /n or /helpme.");
}
return 1;
}