Private Vehicles
#2

Wrong section, how-ever heres an example:

pawn Код:
new gCarOwner[MAX_VEHICLES] = INVALID_PLAYER_ID;

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(!ispassenger && gCarOwner[vehicleid] != playerid) {
RemovePlayerFromVehicle(playerid);
new Float: X, Float: Y, Float: Z;
GetVehiclePos(vehicleid, X, Y, Z);
SetPlayerPos(playerid, X, Y, Z+0.25);
SendClientMessage(playerid, COL_RED, "You don't own this vehicle."); }
return 1;
}
Reply


Messages In This Thread
Private Vehicles - by hossam22 - 18.07.2014, 10:34
Re: Private Vehicles - by Abagail - 18.07.2014, 11:55

Forum Jump:


Users browsing this thread: 2 Guest(s)