18.07.2014, 11:55
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;
}