Lumberjack help, I have a headache.
#3

Quote:
Originally Posted by Kasichok
Посмотреть сообщение
PHP код:
TreeToPlayerDistance(playeridFloatrange)
{
    new 
Float:Distance;
    new 
Float:txFloat:tyFloattz;
    for(new 
0sizeof(LumberJackTree); i++)
    {
        
GetObjectPos(LumberJackTree[i], txtytz);
        
Distance GetPlayerDistanceFromPoint(playeridtxtytz);
        if(
Distance range)
        {
            return 
SendClientMessage(playerid, -1"near tree");
        }
    }
    return 
SendClientMessage(playerid, -1"not near tree");
}
CMD:test(playeridparams[])
{
    
TreeToPlayerDistance(playerid2.0);
    return 
1;

Will test when home thanks
Reply


Messages In This Thread
Lumberjack help, I have a headache. - by MyUndiesSmell - 18.02.2019, 20:21
Re: Lumberjack help, I have a headache. - by Kasichok - 18.02.2019, 21:18
Re: Lumberjack help, I have a headache. - by MyUndiesSmell - 18.02.2019, 22:17
Re: Lumberjack help, I have a headache. - by MyUndiesSmell - 18.02.2019, 22:53
Re: Lumberjack help, I have a headache. - by Pottus - 18.02.2019, 23:19
Re: Lumberjack help, I have a headache. - by TheToretto - 18.02.2019, 23:21
Re: Lumberjack help, I have a headache. - by MyUndiesSmell - 19.02.2019, 01:25
Re: Lumberjack help, I have a headache. - by MyUndiesSmell - 19.02.2019, 01:45

Forum Jump:


Users browsing this thread: 1 Guest(s)