private car blinker -
Sniper99 - 09.02.2013
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
Re: private car blinker -
Gigi-The-Beast - 09.02.2013
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);
Re: private car blinker -
S0n1COwnsYou - 09.02.2013
PHP код:
3207803699, 1041865114, 1062836634
Dude that coordinates are invalid, how did u get them ?
Re: private car blinker -
Sniper99 - 09.02.2013
i tried the light in day and night but nothing happens.
and object does not cause the roof of my car
Re: private car blinker -
batonsa - 09.02.2013
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.
Re: private car blinker -
Sniper99 - 09.02.2013
Thank you guys!