SA-MP Forums Archive
[HELP] playertopointhelp - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [HELP] playertopointhelp (/showthread.php?tid=287525)



[HELP] playertopointhelp - umarmalik - 03.10.2011

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??


Re: [HELP] playertopointhelp - Pharrel - 03.10.2011

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


Re: [HELP] playertopointhelp - Wesley221 - 03.10.2011

Use 'IsPlayerInRangeOfPoint()'.


Re: [HELP] playertopointhelp - umarmalik - 03.10.2011

Thanks guys for the Help.