PlayerToPoint
#1

Waddup Dawgs!

Okay, here's what I want.
As I made this boat dealership today, I want to make sure that people won't be able to park their boat the place where the boat spawns when you buy it. So I tried to add this to my /v park commando:
pawn Код:
if(!PlayerToPoint(40.0, playerid,-2234.5803,2468.9119,5.7422))
                {
                return SendClientMessage(playerid,COLOR_RED,"[WARNING]: You cannot park your vehicle here!");
                }
After what I understand about PlayerToPoint, this should make sure, that the is to the point, and if yes, only send the SendClientMessage, and not park the vehicle there. :P
But it doesn't. It doesn't even show the text when you park the vehicle there.
Anyone know how to do this?
Btw my forward:
pawn Код:
forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z);
Thanks in advance!

JaloNik =)
Reply


Messages In This Thread
PlayerToPoint [Noob question] - by [DK]JaloNik - 24.07.2010, 23:23
Re: PlayerToPoint - by selten98 - 24.07.2010, 23:31
Re: PlayerToPoint - by [DK]JaloNik - 24.07.2010, 23:36
Re: PlayerToPoint - by WillyP - 24.07.2010, 23:39
Re: PlayerToPoint - by Nero_3D - 24.07.2010, 23:51
Re: PlayerToPoint - by [DK]JaloNik - 24.07.2010, 23:53

Forum Jump:


Users browsing this thread: 1 Guest(s)