/hydraulics command help
#1

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;
}
Reply


Messages In This Thread
/hydraulics command help - by indy-greg - 02.09.2009, 13:05
Re: /hydraulics command help - by Jose 510 - 21.09.2009, 06:54
Re: /hydraulics command help - by Mikep. - 21.09.2009, 07:39

Forum Jump:


Users browsing this thread: 1 Guest(s)