[FilterScript] J'S Simple Anti Fall On Spawn - 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: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] J'S Simple Anti Fall On Spawn (
/showthread.php?tid=584538)
J'S Simple Anti Fall On Spawn -
jamesmith12 - 05.08.2015
J'S SimpleAnti Fall On Spawn
In This Filterscript it will prevent the player to fall inside the ground , like Slow object Loading when player Spawn
Here's The Timer Code You Can Change This If You Want
PHP код:
if( GetPlayerPing ( playerid ) < 100 ) {
SetTimerEx( "ObjectFinishLoad", 5000, 0, "e", playerid );
}
else if( GetPlayerPing ( playerid ) > 100 ) {
SetTimerEx( "ObjectFinishLoad", 3000, 0, "e", playerid );
}
else if( GetPlayerPing ( playerid ) > 200 ) {
SetTimerEx( "ObjectFinishLoad", 3200, 0, "e", playerid );
}
else if( GetPlayerPing ( playerid ) > 300 ) {
SetTimerEx( "ObjectFinishLoad", 3700, 0, "e", playerid );
}
else if( GetPlayerPing ( playerid ) > 500 ) {
SetTimerEx( "ObjectFinishLoad", 4000, 0, "e", playerid );
}
else {
SetTimerEx( "ObjectFinishLoad", 5000, 0, "e", playerid );
}
If the player is already unfreeze the bip sound will play
PASTE BIN
SOLID FILES
Credits to ME
Re: J'S Simple Anti Fall On Spawn -
Hemeei - 05.08.2015
Nice FS
Re: J'S Simple Anti Fall On Spawn -
Variable™ - 05.08.2015
Nice work
Re: J'S Simple Anti Fall On Spawn -
jamesmith12 - 05.08.2015
Quote:
Originally Posted by Hemeei
Nice FS
|
Quote:
Originally Posted by 1Deagle1
Nice work
|
Respuesta: J'S Simple Anti Fall On Spawn -
Dreyfuz - 05.08.2015
Not bad, but I have a question: Why you put an image that says "Rip English" at the end? I'm curious.
Re: Respuesta: J'S Simple Anti Fall On Spawn -
jamesmith12 - 05.08.2015
Quote:
Originally Posted by Dreyfuz
Not bad, but I have a question: Why you put an image that says "Rip English" at the end? I'm curious.
|
Ok , i removed it . (Sorry for my bad English)
Respuesta: J'S Simple Anti Fall On Spawn -
Dreyfuz - 05.08.2015
I was just curious.
Re: Respuesta: J'S Simple Anti Fall On Spawn -
Hemeei - 05.08.2015
Quote:
Originally Posted by jamesmith12
Ok , i removed it . (Sorry for my bad English)
|
Dont Sorry its ok !
Re: J'S Simple Anti Fall On Spawn -
iGoogle - 06.08.2015
Nice FS thanks!
Re: J'S Simple Anti Fall On Spawn -
Gammix - 06.08.2015
Worst!
Using timers is really annoying and bad. Why should you wait for soo long for the objects to load?
Two simple ways of doing this is using
Streamer_UpdateEx is used with streamer plugin or make use of
OnObjectStreamIn (using per player based check using GetTickCount after an object streams in, if the difference in calling is high, unfreeze). This would make your system accurate regarding time.