>> Looking for a /Hydraulics command <<
#1

Eey,

Iam looking for a /hyd command.

Help me please =)
Reply
#2

Did you use THIS?

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

AddVehicleComponent(GetPlayerVehicleID(playerid, 1070);
Reply
#4

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
Reply
#5

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

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
Reply
#7

that's not a damn excuse..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)