Stop on semaphore - 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: Stop on semaphore (
/showthread.php?tid=95617)
Stop on semaphore -
antonio20001 - 04.09.2009
As i see in the Taxi Script as default example in the server folder, if a bot capt a player near his radious, NPC will stop.
Is there a way for stop it on traffic lights? I try and i see on the forum that traffic lights are sync, so can be a good idea for a real traffic with bots
Re: Stop on semaphore -
beckzy - 04.09.2009
They are synced, but it's not possible to get their state.
Re: Stop on semaphore -
Mive - 04.09.2009
Yea they are synced:
Synced traffic lights
Re: Stop on semaphore -
antonio20001 - 04.09.2009
can be added? xD
thanks developers
Re: Stop on semaphore -
[mad]MLK - 04.09.2009
the only thing i could think of is a timer on every trafic light and just do is player in area on that trafic light and if they leave within the timer you can do what u want to them
Re: Stop on semaphore -
Gamer_Z - 04.09.2009
well
GetPlayerLightsState(playerid,nearestlights,state) ;
GetPlayerNearestLightsState(playerid,state);//nearestlights limited to 10 meters xD
would be cool.. but u must know lights can be destroyed when u drive into them with a vehicle ,so there has to be a check if the lights exists into the point.. sure we can list all positions of lights but what if they are destroyed?
Re: Stop on semaphore -
antonio20001 - 04.09.2009
yes, can happend. But sometimes, one player destroy it and when return it is not destroyed...
for this reason, lights animation continue also if semaphore is destroyed