22.12.2011, 18:10
How do i get coordinates for the back of a trashmaster and the roof of a police cars?? I will put a video of it in 10 min.
new TrashMaster[MAX_PLAYERS]=-1; public OnPlayerExitVehicle(playerid,vehicleid) { if(GetVehicleModel(vehicleid) == 508) { TrashMaster[playerid] = vehicleid; } else { TrashMaster[playerid] = -1; } } //In a command: if(TrashMaster[playerid] == -1) return SendClientMessage(playerid,color,"You don't have a trashmaster !"); new Float:Pos[3]; GetVehiclePos(TrashMaster[playerid],Pos[0],Pos[1],Pos[2]); if(!IsPlayerInRangeOfPoint(playerid,5,Pos[0],Pos[1]-6,Pos[2])) return SendClientMessage(playerid,color,"You aren't close enough to the garbage dump point");