Help with adding nos to the vehicle you are currently in with the command /nos
#1

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.
Reply
#2

No idea!!
Reply
#3

look here;

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

just copy and paste that under your OnplayerRequestCommand

if ..../nos

Reply
#4

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

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;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)