22.08.2010, 13:43
(
Последний раз редактировалось iggy1; 22.08.2010 в 14:01.
Причина: Removed getvehiclevelocity.
)
Just found this sorry https://sampwiki.blast.hk/wiki/RemoveVehicleComponent
never used it before.
EDIT: made a quick command using sscanf and zcmd . Its not tested ts rushed but it should work i think.
never used it before.
EDIT: made a quick command using sscanf and zcmd . Its not tested ts rushed but it should work i think.
pawn Код:
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;
}