02.09.2009, 13:05
The only thing that doesnt work with this command is that when the message is displayed for the vehicles not allowed to have hydraulics (You can't add Hydraulics to this vehicle!) it displays 'You now have hydraulics' aswell for some reason. Can someone please fix this minor bug.
Код:
dcmd_hydraulics(playerid,params[]) { #pragma unused params if(IsPlayerInInvalidPimpVehicle(playerid,GetPlayerVehicleID(playerid))) { SendClientMessage(playerid,COLOR_YELLOW,"You can't add Hydraulics to this vehicle!"); } if(IsPlayerInAnyVehicle(playerid) == 0) //Checks if player is not in vehicle { SendClientMessage(playerid, 0xFFFF00AA, "Get a car first!"); } else (AddVehicleComponent(GetPlayerVehicleID(playerid), 1087), SendClientMessage(playerid,COLOR_YELLOW,"You now have Hydraulics!")); return 1; }