Neon dont working - 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: Neon dont working (
/showthread.php?tid=269545)
Neon dont working -
geerdinho8 - 16.07.2011
When someone enters the car, there should come neon under the car but it just doesnt appear..
Код:
public OnPlayerEnterVehicle(playerid, vehicleid)
{
new neon = CreateObject(18647,0,0,0,0,0,0,100.0);
new neon1 = CreateObject(18647,0,0,0,0,0,0,100.0);
AttachObjectToVehicle(neon, car[playerid], -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
AttachObjectToVehicle(neon1, car[playerid], 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
return 1;
}
Also if i use the /neon dialog script, neon doesnt show up..
Re: Neon dont working -
Wesley221 - 16.07.2011
Make sure its night-time ingame
Re: Neon dont working -
geerdinho8 - 16.07.2011
Yes, i tested it with nightime..
Re: Neon dont working -
geerdinho8 - 17.07.2011
BUMPZOR
Re: Neon dont working -
Wesley221 - 17.07.2011
pawn Код:
AttachObjectToVehicle(neon, GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
AttachObjectToVehicle(neon1, GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
Try this
Re: Neon dont working -
Swiftz - 17.07.2011
I had the same problem i think its samp problem , I never WORKED perfect with me
Re: Neon dont working -
geerdinho8 - 17.07.2011
Quote:
Originally Posted by Wesley221
pawn Код:
AttachObjectToVehicle(neon, GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0); AttachObjectToVehicle(neon1, GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
Try this
|
Didnt work..
Re: Neon dont working -
geerdinho8 - 18.07.2011
Got it fixed on my own
The problem was, on the spawn they were putted in a vehicle, but my code was on the public onplayerentervehicle. Thats why it didnt work.
Re: Neon dont working -
Kaperstone - 18.07.2011
it works?
lol...i was thinking it will work on onPlayerEnterVehicle
and not when it on onPlayerSpawn
caz when player spawn he get spawned with out a vehicle(only if you spawn with a vehicle on your server...)
so i think it will be better if u will put it on onPlayerEnterVehicle
and when he exit the vehicle( onPlayerExitVehicle )
it will destroy the neon
or just convert it into a cmd( /neon on | /neon off )
and
@Swiftz - its not sa-mp bug...i saw many server thet the neon works on them...
Re: Neon dont working -
geerdinho8 - 18.07.2011
I putted it on the first checkpoint :P So at the first checkpoint it will be added.