CMD doesnt work dialog
#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)
    	{
     		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;
}
Reply
#2

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;
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)