16.08.2011, 17:44
I have this command.
IG when i type /loadproducts when i am not near the point it says nothing. But i want it to say Your are not at the pickup place.
When i am at the point however, it works.
Any Way to Fix this?
Quote:
if(strcmp(cmd, "/loadproducts", true) == 0) { if(IsPlayerConnected(playerid)) { if(IsPlayerInRangeOfPoint(playerid, 7, -75.2536,-1598.1886,2.6172)) { SendClientMessage(playerid, -1, "Deliver the Products to IdleWood Gas Station. (RED MARK)"); return 1; } } else { SendClientMessage(playerid, -1, "You are not at the Pickup place"); } return 1; } |
When i am at the point however, it works.
Any Way to Fix this?