05.02.2013, 23:34
I've changed it so that it has the callback vehid. However, this has made no difference. New code below - suggestions?
Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { vehid = GetPlayerVehicleID(playerid); if (vehid == 403) { if (job[playerid] != 1) RemovePlayerFromVehicle(playerid); SendClientMessage(playerid,0xAA3333AA,"You do not have the trucker job"); } vehid = GetPlayerVehicleID(playerid); if (vehid == 514) { if (job[playerid] != 1) RemovePlayerFromVehicle(playerid); SendClientMessage(playerid,0xAA3333AA,"You do not have the trucker job"); } vehid = GetPlayerVehicleID(playerid); if (vehid == 448) { if (job[playerid] != 2) RemovePlayerFromVehicle(playerid); SendClientMessage(playerid,0xAA3333AA,"You do not have the pizza-boy job"); } vehid = GetPlayerVehicleID(playerid); if (vehid == 408) { if (job[playerid] != 3) RemovePlayerFromVehicle(playerid); SendClientMessage(playerid,0xAA3333AA,"You do not have the trashmaster job"); } return 1; } public OnPlayerExitVehicle(playerid, vehicleid) { return 1; }