Neon dont working
#1

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..
Reply
#2

Make sure its night-time ingame
Reply
#3

Yes, i tested it with nightime..
Reply
#4

BUMPZOR
Reply
#5

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
Reply
#6

I had the same problem i think its samp problem , I never WORKED perfect with me
Reply
#7

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..
Reply
#8

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.
Reply
#9

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...
Reply
#10

I putted it on the first checkpoint :P So at the first checkpoint it will be added.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)