24.07.2010, 23:23
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:
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:
Thanks in advance!
JaloNik =)
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!");
}
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);
JaloNik =)