Car coordinates!! +1Rep
#3

Try this:

Код:
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");
Untested
Reply


Messages In This Thread
Car coordinates!! +1Rep - by PRototype-RP - 22.12.2011, 18:10
Re: Car coordinates!! +1Rep - by PRototype-RP - 22.12.2011, 20:32
Re: Car coordinates!! +1Rep - by coole210 - 22.12.2011, 22:17

Forum Jump:


Users browsing this thread: 1 Guest(s)