11.03.2014, 10:55
Hi, You have an error on your IsPlayerInRangeOfPoint line, you're checking to see if playerID "a"(a is the var that is used in the vehicle loop so the server will be trying to find out if playerid 345 is near the vehicle but instead you want the playerid that used that command).
Change if(IsPlayerInRangeOfPoint(a, 5.0, X+5, Y, Z))
to if(IsPlayerInRangeOfPoint(playerid, 5.0, X, Y, Z))
It should work now that the server is checking if that player id is close to that vehicle.
Hopefully that does the trick
- Hayden.
Change if(IsPlayerInRangeOfPoint(a, 5.0, X+5, Y, Z))
to if(IsPlayerInRangeOfPoint(playerid, 5.0, X, Y, Z))
It should work now that the server is checking if that player id is close to that vehicle.
Hopefully that does the trick
