Siren problem - 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)
+--- Thread: Siren problem (
/showthread.php?tid=573076)
Siren problem -
bigboy81 - 04.05.2015
I add the siren to vehicle but i can't hear the voice of the siren.
I press H all times but i only hear the horn of the car, not a siren.
I don't know what is the problem, and i don't have idea how to fix.
Код:
fbicar[1] = CreateVehicle(560,1265.9680000,-1670.0131000,13.1421000,0.0000000,2,2,12000, 1) //Sultan
Re: Siren problem -
Alex Magaсa - 04.05.2015
Show us the code of the "Siren Code"
Re: Siren problem -
bigboy81 - 04.05.2015
Quote:
Originally Posted by Alex Magaсa
Show us the code of the "Siren Code"
|
I posted the code on the end of code is 1.
1 enable the siren of police
0 disable.
and i have
Код:
public OnVehicleSirenStateChange(playerid, vehicleid, newstate)
{
if(newstate) GameTextForPlayer(playerid, "~W~Siren ~G~on", 1000, 3);
GameTextForPlayer(playerid, "~W~Siren ~r~off", 1000, 3);
return 1;
}
Re: Siren problem -
Alex Magaсa - 04.05.2015
Quote:
Originally Posted by bigboy81
I posted the code on the end of code is 1.
1 enable the siren of police
0 disable.
and i have
Код:
public OnVehicleSirenStateChange(playerid, vehicleid, newstate)
{
if(newstate) GameTextForPlayer(playerid, "~W~Siren ~G~on", 1000, 3);
GameTextForPlayer(playerid, "~W~Siren ~r~off", 1000, 3);
return 1;
}
|
Well where is this? Is it located to the script you trying to test?
https://sampwiki.blast.hk/wiki/GetVehicleParamsSirenState
Re: Siren problem -
bigboy81 - 04.05.2015
Quote:
Originally Posted by Alex Magaсa
|
Yes, i add siren to te vehicle but i can't hear that siren.
Re: Siren problem -
Max_Andolini - 04.05.2015
Код:
public OnVehicleSirenStateChange(playerid, vehicleid, newstate)
{
if(newstate) GameTextForPlayer(playerid, "~W~Siren ~G~on", 1000, 3);
else GameTextForPlayer(playerid, "~W~Siren ~r~off", 1000, 3);
return 1;
}
Re: Siren problem -
Luis- - 04.05.2015
Quote:
Originally Posted by eco1999
Код:
public OnVehicleSirenStateChange(playerid, vehicleid, newstate)
{
if(newstate) GameTextForPlayer(playerid, "~W~Siren ~G~on", 1000, 3);
else GameTextForPlayer(playerid, "~W~Siren ~r~off", 1000, 3);
return 1;
}
|
That's pretty much the exact same code that's on the wiki page, you've just added the else statement.
Re: Siren problem -
bigboy81 - 04.05.2015
Quote:
Originally Posted by Luis-
That's pretty much the exact same code that's on the wiki page, you've just added the else statement.
|
Код:
native CreateVehicle(vehicletype, Float:x, Float:y, Float:z, Float:rotation, color1, color2, respawndelay, addsiren=0);
fbicar[1] = CreateVehicle(560,1265.9680000,-1670.0131000,13.1421000,0.0000000,2,2,12000, 1) //Sultan
Re: Siren problem -
Luis- - 04.05.2015
Note that I didn't quote your post, and that I quoted somebody else's.
Re: Siren problem -
bigboy81 - 06.05.2015
Bump