Help with adding vehicle Componant - 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 vehicle Componant (
/showthread.php?tid=271233)
Help with adding vehicle Componant -
Azzeto - 23.07.2011
Hello, once again with a scripting question(mabye I should get stickied with scripting questions*joke*)
I'm wondering how I can make it so Nitro gets added to every vehicle a player will enter.
Thanks.
Re: Help with adding vehicle Componant -
Horrible - 23.07.2011
on top:
pawn Код:
#define COLOR_YELLOW 0xFFFF00AA
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
SendClientMessage(playerid, -1, ""#COL_YELLOW"Nitro Added");
AddVehicleComponent(vehicleid, 1010);
return 1;
}