CMD doesnt work dialog - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: CMD doesnt work dialog (
/showthread.php?tid=442960)
CMD doesnt work dialog -
yaron0600 - 09.06.2013
Код:
CMD:boston(playerid, params[])
{
if(PlayerInfo[playerid][pFMember] == 1)
{
if(IsPlayerInRangeOfPoint(playerid, 4.0, -517.86, 306.36, 909.53) && GetPlayerVirtualWorld(playerid) == 6065 && GetPlayerInterior(playerid) == 1)
{
ShowPlayerDialog(playerid, DIALOG_BOSTONS, DIALOG_STYLE_LIST, "El Bostons Lockers", "Deagle\nMP5\nM4-500Bullets\nAK-47-500Bullets\nShotgun\nRifle\nVest", "Select", "Cancel");
}
else
{
SendClientMessageEx(playerid, COLOR_WHITE, "You aren't in range of your El Bostons lockers.");
}
}
return 1;
}
Re: CMD doesnt work dialog -
Avi57 - 09.06.2013
Use this :-
pawn Код:
#define DIALOG_BOSTONS 1
CMD:boston(playerid, params[])
{
if(PlayerInfo[playerid][pFMember] == 1)
{
if(IsPlayerInRangeOfPoint(playerid, 4.0, -517.86, 306.36, 909.53) && GetPlayerVirtualWorld(playerid) == 6065 && GetPlayerInterior(playerid) == 1) return SendClientMessageEx(playerid, COLOR_WHITE, "You aren't in range of your El Bostons lockers.");
{
ShowPlayerDialog(playerid, DIALOG_BOSTONS, DIALOG_STYLE_LIST, "El Bostons Lockers", "Deagle\nMP5\nM4-500Bullets\nAK-47-500Bullets\nShotgun\nRifle\nVest", "Select", "Cancel");
}
}
return 1;
}