SA-MP Forums Archive
Help with adding nos to the vehicle you are currently in with the command /nos - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help with adding nos to the vehicle you are currently in with the command /nos (/showthread.php?tid=93159)



Help with adding nos to the vehicle you are currently in with the command /nos - speedruntrainer - 23.08.2009

Hey all, I tried, I looked on the wiki but I really don't know how to add Nos to a vehicle with the command /nos in the vehicle you are currently in.

Can someone tell me how I make that?

Thanks.


Re: Help with adding nos to the vehicle you are currently in with the command /nos - MB@ - 23.08.2009

No idea!!


Re: Help with adding nos to the vehicle you are currently in with the command /nos - boelie - 23.08.2009

look here;

https://sampwiki.blast.hk/wiki/GetPlayerVehicleID

just copy and paste that under your OnplayerRequestCommand

if ..../nos




Re: Help with adding nos to the vehicle you are currently in with the command /nos - Joe Staff - 23.08.2009

Also, to actually add Nos to the vehicle check out https://sampwiki.blast.hk/wiki/AddVehicleComponent


Re: Help with adding nos to the vehicle you are currently in with the command /nos - Calgon - 24.08.2009

Add this to OnPlayerCommandText()

pawn Код:
if(strcmp(cmd, "/nos", true) == 0)
{
new vehicle = GetPlayerVehicleID(playerid);
if (vehicle > 0)
{
  AddVehicleComponent(vehicle, 1010);
  return 1;
}
else
{
  return 1;
}
return 1;
}