PDA

View Full Version : [HELP] playertopointhelp


umarmalik
03/10/2011, 04:50 PM
I need help in that code.

if(strcmp(cmd, "/toll1", true) == 0)
{
if (PlayerToPoint(2, playerid,494.633117,503.909606,18.921957))
{
SetObjectPos(bar,494.10000610,498.29998779,18.7000 0076);
SetObjectRot(bar,0.00000000,2.00000000,215.9999542 2);
GivePlayerPCash(playerid, - 5);
SetTimer("InitPos",5000,false);
}
return 1;
}

In that code playertopoint is not working.

Can some one help me??

Pharrel
03/10/2011, 04:54 PM
there is nothing wrong in this code... if you're 2 meters in range of the point it must works...

Wesley221
03/10/2011, 05:05 PM
Use 'IsPlayerInRangeOfPoint() (http://wiki.sa-mp.com/wiki/IsPlayerInRangeOfPoint)'.

umarmalik
03/10/2011, 05:51 PM
Thanks guys for the Help.