IsPlayerInRangeOfPoint
#1

Hi guys.
I loaded balloon script and add function IsPlayerInRangeOfPoint, don't know why message don't show in the chat.
I tried:
pawn Код:
public OnPlayerSpawn(playerid)
{
    if(IsPlayerInRangeOfPoint(playerid, 7.0, 836.1324,-1976.8779,12.4362))
    {
        SendClientMessage(playerid,0xFFFFFFFF,"You are near the balloon, type /fly to control balloon.");
    }
    SetPlayerPos(playerid,834.964,-2040.216,12.867);
    return 1;
}
and
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/lec", cmdtext, true, 10) == 0)
    {
        PlayerInfo[playerid][BalloonPlayer] = 1;
        SendClientMessage(playerid,GREEN,"Kontrolowany || Użyj /list by kontrolować latający balon. || /stop || /powrot aby przywrуcić balon na pozycję startową.");
        {
        if(IsPlayerInRangeOfPoint(playerid, 7.0, 836.1324,-1976.8779,12.4362))
        {
        SendClientMessage(playerid,0xFFFFFFFF,"You are near the balloon, type /fly to control balloon.");
        }
        }
        return 1;
    }
Now works. Any ideas?
Reply


Messages In This Thread
IsPlayerInRangeOfPoint - by Levtu - 24.07.2013, 16:30
Re: IsPlayerInRangeOfPoint - by Pottus - 24.07.2013, 16:38
Re: IsPlayerInRangeOfPoint - by Levtu - 24.07.2013, 17:04

Forum Jump:


Users browsing this thread: 1 Guest(s)