[HELP] playertopointhelp
#1

I need help in that code.

pawn Код:
if(strcmp(cmd, "/toll1", true) == 0)
    {
    if (PlayerToPoint(2, playerid,494.633117,503.909606,18.921957))
    {
       SetObjectPos(bar,494.10000610,498.29998779,18.70000076);
       SetObjectRot(bar,0.00000000,2.00000000,215.99995422);
       GivePlayerPCash(playerid, - 5);
       SetTimer("InitPos",5000,false);
    }
       return 1;
    }
In that code playertopoint is not working.

Can some one help me??
Reply
#2

there is nothing wrong in this code... if you're 2 meters in range of the point it must works...
Reply
#3

Use 'IsPlayerInRangeOfPoint()'.
Reply
#4

Thanks guys for the Help.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)