>> Looking for a /Hydraulics command <<
#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


Messages In This Thread
>> Looking for a /Hydraulics command << - by iSuck_Musire - 27.06.2009, 18:05
Re: >> Looking for a /Hydraulics command << - by Moustafa - 27.06.2009, 18:09
Re: >> Looking for a /Hydraulics command << - by ByFukara - 27.06.2009, 18:42
Re: >> Looking for a /Hydraulics command << - by AiVAMAN - 27.06.2009, 18:47
Re: >> Looking for a /Hydraulics command << - by AiVAMAN - 27.06.2009, 18:51
Re: >> Looking for a /Hydraulics command << - by iSuck_Musire - 29.06.2009, 14:17
Re: >> Looking for a /Hydraulics command << - by Ignas1337 - 29.06.2009, 14:41

Forum Jump:


Users browsing this thread: 1 Guest(s)