25.11.2012, 06:37
Assuming you require the technician to be in the car of the person you want to have a fixed car....
(Sorry about horrid indentation, that happens when posting on here...)
Now all you need to do is probably add an if statement to check if the user is logged in and if the user is a technician. I don't know your variable names so I cannot do that for you.
Код:
CMD:fix(playerid, params[]) { if(IsPlayerInAnyVehicle(playerid)) { SetVehicleHealth(GetPlayerVehicleID(playerid), 1000.0); } return 1; }
Now all you need to do is probably add an if statement to check if the user is logged in and if the user is a technician. I don't know your variable names so I cannot do that for you.