Help Please... - 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 Please... (
/showthread.php?tid=272022)
Help Please... -
Millionaire - 26.07.2011
I want to put neon in all cars and it should be permenent.Blue colour neon.Can anyone give me the code Please?
Re: Help Please... -
sleepysnowflake - 26.07.2011
What do I know .... Idee on how to do that.
Under OnGameInit >> Loop through all cars >> Neon attach code.
Re: Help Please... -
Millionaire - 26.07.2011
i need that code

and where i should put?
Re: Help Please... -
sleepysnowflake - 26.07.2011
Where you want the loop (eg. When player connects, OnPlayerConnect).
pawn Код:
for(new i=1; i<MAX_VEHICLES; i++)
{
// Insert here the neon code. I have apsolutely no ideea how you want it.
}
Re: Help Please... -
Millionaire - 26.07.2011
i want all cars have neon it should not go when the server restart or respawn all cars.Thats all , for that where i should put this?
Re: Help Please... -
iPLEOMAX - 26.07.2011
Try this basic code:
pawn Код:
public OnVehicleSpawn(vehicleid)
{
AttachObjectToVehicle( CreateObject(18648,0,0,0,0,0,0), vehicleid, 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
AttachObjectToVehicle( CreateObject(18648,0,0,0,0,0,0), vehicleid, -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
return 1;
}
Re: Help Please... -
Millionaire - 27.07.2011
yes i did but it isnt working.. please help me
Re: Help Please... -
Millionaire - 27.07.2011
help plz