Big GameMode Problem
#5

It should look something like this:
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
 if(!strcmp(cmdtext,"/buylicense",true))
 {
    if(IsPlayerConnected(playerid))
    {
        if(PlayerInfo[playerid][pLevel] >= 3) return SendClientMessage(playerid, COLOR_WHITE, "Trebuie sa ai level 3+.");
        {
            if(IsPlayerInRangeOfPoint(playerid, 4.0,359.1557,183.0690,1008.3828))
            {
                ShowPlayerDialog(playerid, DIALOG_AGL, DIALOG_STYLE_LIST, "What do you want?", "Weapon\nFlying\nBoat\nFishing\nMats\nSailing", "OK", "Close");
            }
            else
            {
                SendClientMessage(playerid, COLOR_WHITE, "Nu esti la locul potrivit pentru a folosi aceasta comanda. Tasteaza /gps si alege locul licentelor");
            }
        }
    }
    return 1;
 }
 return 0;
}
Reply


Messages In This Thread
Big GameMode Problem - by AlexR - 25.09.2015, 16:12
Re: Big GameMode Problem - by AlexR - 25.09.2015, 16:31
Re: Big GameMode Problem - by Aly - 25.09.2015, 17:08
Re: Big GameMode Problem - by AlexR - 25.09.2015, 17:36
Re: Big GameMode Problem - by Aly - 25.09.2015, 17:41
Re: Big GameMode Problem - by AlexR - 25.09.2015, 18:16
Re: Big GameMode Problem - by Aly - 25.09.2015, 18:20
Re: Big GameMode Problem - by AlexR - 25.09.2015, 18:30
Re: Big GameMode Problem - by Aly - 25.09.2015, 18:35
Re: Big GameMode Problem - by AlexR - 25.09.2015, 18:42

Forum Jump:


Users browsing this thread: 4 Guest(s)