22.08.2010, 13:25
Is there a command to take nos and hydraulics?
COMMAND:untune(playerid,params[])
{
new id,vid;
if(sscanf(params,"i",vid))
{
if(!IsPlayerInAnyVehicle(playerid))return SendClientMessage(playerid,0xff0000FF,"ERROR usage /untune [playerid] or if your in a tuned vehicle /untune");
{
vid = GetPlayerVehicleid(playerid);
RemoveVehicleComponent(vid,1010);//removes nos
RemoveVehicleComponent(vid,1087);//removes hydraulics
return 1;
}
}
else
{
if(IsPlayerInAnyVehicle(id))
{
vid = GetPlayerVehicleid(id);
RemoveVehicleComponent(vid,1010);//removes nos
RemoveVehicleComponent(vid,1087);//removes hydraulics
}
else
{
SendClientMessage(playerid,0xff0000FF,"Player is not in a vehicle");
}
}
return 1;
}