30.07.2013, 05:04
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(vehicleid == pilotjobvehicle1 || vehicleid == pilotjobvehicle2)
{
if(job[playerid] == 0)
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
SetPlayerPos(playerid, x, y, z+3);
SendClientMessage(playerid,-1, "You must have the Pilot Job in order to fly this vehicle.");
RemovePlayerFromVehicle(playerid);
return 1;
}
}
return 1;
}
I think that's correct :')