add mod to current car driving?
#1

well, i want to make it so if you type /nitros you have a nitros added I got the command so far. but just need to make it so it adds Nitros to current car inside, any ideas how to?
Reply
#2

Code:
if(strcmp("/nitro", cmd, true) == 0)
  {
  new vehicleid = GetPlayerVehicleID(playerid);
  AddVehicleComponent(vehicleid,1010);
  return 1;
  }
Reply
#3

Thanks helpfull as always.
Reply
#4

Quote:
Originally Posted by campkz
Thanks helpfull as always.
np anytime
Reply
#5

It crashes compiler, and doesn't compile when i use

new vehicleid = GetPlayerVehicleID(playerid);
Reply
#6

pawn Code:
if(!strcmp(cmdtext,"/nitro", true) && IsPlayerInAnyVehicle(playerid)) return AddVehicleComponent(GetPlayerVehicleID(playerid),1010);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)