07.12.2013, 15:46
Hello all I would like to require such lessons as assigned machine work there say he practiced medicine and can only vazuoti with the machine
AddStaticVehicleEx ( 416, 2109.1763, 1503.0453, 32.2887, 82.2873, 0, 1, 15 );//ambulance 1 (random position with colors 0 and 1, set to respawn after 15 seconds when not used) AddStaticVehicleEx ( 416, 2109.1763, 1503.0453, 32.2887, 82.2873, 0, 1, 15 );//ambulance 2 (same as above)
stock IsAnAmbulance(vehicleid) { switch(vehicleid): { case 1: true; case 2: true; } return 1; }
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { if(IsAnAmbulance(vehicleid) && !medic(playerid) == 1//Assign it either to a job or a faction or whatever) { RemovePlayerFromVehicle(playerid); SendClientMessage(playerid, 0xFFFFFFFF, "This vehicle is only for medics!"); } }