add mod to current car driving? - 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: add mod to current car driving? (
/showthread.php?tid=139689)
add mod to current car driving? -
campkz - 05.04.2010
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?
Re: add mod to current car driving? -
aircombat - 05.04.2010
Code:
if(strcmp("/nitro", cmd, true) == 0)
{
new vehicleid = GetPlayerVehicleID(playerid);
AddVehicleComponent(vehicleid,1010);
return 1;
}
Re: add mod to current car driving? -
campkz - 05.04.2010
Thanks

helpfull as always.
Re: add mod to current car driving? -
aircombat - 05.04.2010
Quote:
Originally Posted by campkz
Thanks  helpfull as always.
|
np

anytime
Re: add mod to current car driving? -
campkz - 05.04.2010
It crashes compiler, and doesn't compile when i use
new vehicleid = GetPlayerVehicleID(playerid);
Re: add mod to current car driving? -
woot - 05.04.2010
pawn Code:
if(!strcmp(cmdtext,"/nitro", true) && IsPlayerInAnyVehicle(playerid)) return AddVehicleComponent(GetPlayerVehicleID(playerid),1010);