private car blinker
#1

What is wrong in this script lines:
Код:
public OnPlayerCommandText(playerid, cmdtext[])

        if (strcmp("/vilkur", cmdtext, true) == 0)
        {
        glob4 = GetPlayerVehicleID(playerid);
		glob0 = CreateObject(18646, -0.7, 0.15, 0.85, 0.0, 0.0, 96.0, 0);
		AttachObjectToVehicle(glob0, glob4, 3207803699, 1041865114, 1062836634, 0, 0, 0);
		return 1;
		}
	    else if (strcmp("/vilkurmaas", cmdtext, true) == 0)
	    {
		DestroyObject(glob0);
		return 1;
        }
when i write /vilkur in game, nothing happens.
Does somebody help me, please!
the Greatest: Sniper99
Reply
#2

Is that a light? Is it night ingame? Light objects are not shown during the day.

edit: your offsets are too big, lower them:

AttachObjectToVehicle(glob0, glob4, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0);
Reply
#3

PHP код:
320780369910418651141062836634 
Dude that coordinates are invalid, how did u get them ?
Reply
#4

i tried the light in day and night but nothing happens.
and object does not cause the roof of my car
Reply
#5

The coords are definitely faulty. I suggest you do it separately for each car you want the vilkur on. I got a filterscript that has most of the car coords defined in it, if you are interested, let me know.

PS: I'm an estonian too so you can PM me I'll help you out.
Reply
#6

Thank you guys!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)