IsPlayerInRangeOfPoint Help.
#1

Hey guys, I have a problem when I execute this command it says im not near the trucker factory when I am in the spot to take the job. Any help would be great thanks. Here the code:

pawn Код:
YCMD:truckerjob(playerid, params[])
{
    if(IsPlayerInRangeOfPoint(playerid, 4.0, -1484.2582, 2653.3225, 55.8359)) return SendClientMessage(playerid, COLOR_GREEN, "You are not near the trucker factory in El Quadbrados!");
    {
        if(PlayerInfo[playerid][Job] == 2)
        {
            SendClientMessage(playerid, COLOR_GREEN, "Congradulations! You have become a trucker! Use /help to see what commands you can use.");
        }
        return 1;
    }
}
Reply
#2

pawn Код:
YCMD:truckerjob(playerid, params[])
{
    if(IsPlayerInRangeOfPoint(playerid, 4.0, -1484.2582, 2653.3225, 55.8359))
    {
        if(PlayerInfo[playerid][Job] == 2)
        {
            SendClientMessage(playerid, COLOR_GREEN, "Congradulations! You have become a trucker! Use /help to see what commands you can use.");
        }
    }
    else
    {
        SendClientMessage(playerid, COLOR_GREEN, "You are not near the trucker factory in El Quadbrados!");
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)