27.06.2009, 18:47
LOL its so simple... watch and learn
Add this under public OnPlayerCommandText
If you have questions about coding (noobish like this) ask me for help. (PM). :P
-Alive
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;
}
-Alive