Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onPlayerCommand(player,command,params)
- {
- if(command.tolower() == "autofix")
- {
- if(!AutoFix[player.ID])
- {
- AutoFix[player.ID] <- true;
- MessagePlayer( "[#FFFF00]*PM* [#FFFFFF]Automatic fix [#00FF00]ON.", player );
- }
- else
- {
- AutoFix[player.ID] <- false;
- MessagePlayer( "[#FFFF00]*PM* [#FFFFFF]Automatic fix [#FF0000]OFF.", player );
- }
- }
- }
- function onPlayerConnect(player)
- {
- AutoFix[player.ID] <- true;
- }
- function onPlayerPart(player,reason)
- {
- AutoFix[player.ID] <- null;
- }
- function onScriptLoad()
- {
- AutoFix <- {};
- }
- function onVehicleHealthChange(vehicle,oldhealth,newhealth)
- {
- if(vehicle.Driver)
- {
- if(AutoFix[vehicle.Driver.ID])
- {
- vehicle.Fix();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement