SA-MP Forums Archive
>> Looking for a /Hydraulics command << - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: >> Looking for a /Hydraulics command << (/showthread.php?tid=83905)



>> Looking for a /Hydraulics command << - iSuck_Musire - 27.06.2009

Eey,

Iam looking for a /hyd command.

Help me please =)


Re: >> Looking for a /Hydraulics command << - Moustafa - 27.06.2009

Did you use THIS?

Usually i use it before i ask, when i can't find anything i ask..


Re: >> Looking for a /Hydraulics command << - ByFukara - 27.06.2009

AddVehicleComponent(GetPlayerVehicleID(playerid, 1070);



Re: >> Looking for a /Hydraulics command << - AiVAMAN - 27.06.2009

LOL its so simple... watch and learn

Add this under public OnPlayerCommandText
pawn Code:
if(strcmp(cmd, "/hydraulics", true) == 0)
{
  if(IsPlayerInAnyVehicle(playerid) == 0) //Checks if player is not in vehicle
  {
    SendClientMessage(playerid, 0xFF0000AA, "You should get a car first!");
  }
  else
  {
    AddVehicleComponent(GetPlayerVehicleID(playerid), 1087); //This line adds hydraulics to your car (component id - 1087)
  }
  return 1;
}
If you have questions about coding (noobish like this) ask me for help. (PM). :P

-Alive


Re: >> Looking for a /Hydraulics command << - AiVAMAN - 27.06.2009

Quote:
Originally Posted by ByFukara
AddVehicleComponent(GetPlayerVehicleID(playerid, 1070);
lol 1070 is not hydraulics xD


Re: >> Looking for a /Hydraulics command << - iSuck_Musire - 29.06.2009

Quote:
Originally Posted by ·٠•●°Alive°●•٠·
LOL its so simple... watch and learn

Add this under public OnPlayerCommandText
pawn Code:
if(strcmp(cmd, "/hydraulics", true) == 0)
{
  if(IsPlayerInAnyVehicle(playerid) == 0) //Checks if player is not in vehicle
  {
    SendClientMessage(playerid, 0xFF0000AA, "You should get a car first!");
  }
  else
  {
    AddVehicleComponent(GetPlayerVehicleID(playerid), 1087); //This line adds hydraulics to your car (component id - 1087)
  }
  return 1;
}
If you have questions about coding (noobish like this) ask me for help. (PM). :P

-Alive
iam a beginner scripter;o


Re: >> Looking for a /Hydraulics command << - Ignas1337 - 29.06.2009

that's not a damn excuse..