SA-MP Forums Archive
Stuck in players on respawn! - 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: Stuck in players on respawn! (/showthread.php?tid=593999)



Stuck in players on respawn! - UNLIMIT3D - 12.11.2015

Hello!

So when a player is afk at the spawn point and doesn't move and another player spawns there he's just stuck above him without being able to move. Is there a way to fix it?

Thanks!


Re: Stuck in players on respawn! - iKarim - 12.11.2015

Make a random spawn in 3 - 4 places, allow players to use /kill incase if theres no admins on.


Re: Stuck in players on respawn! - UNLIMIT3D - 12.11.2015

Well thank you for the suggestion, but is there any other different way?


Re: Stuck in players on respawn! - MeCom - 12.11.2015

Quote:
Originally Posted by UNLIMIT3D
Посмотреть сообщение
Well thank you for the suggestion, but is there any other different way?
Kick players who stays afk more than 1 min


Re: Stuck in players on respawn! - UNLIMIT3D - 12.11.2015

Thanks, you guys know any other options? I might auto kick players for being afk but are there any other options?


Re: Stuck in players on respawn! - iKarim - 12.11.2015

I don't think so, only way is: random spawn / kicking players / just admins move them / or /kill.


Re: Stuck in players on respawn! - MBilal - 12.11.2015

SetPlayerVirtualWorld(playerid,1);

it will change that player world if he is afk more than 30 seconds.

And when he is back Set his Virtual world back to which he have before getting Afk.

Hope You understand.


Re: Stuck in players on respawn! - MeCom - 12.11.2015

Quote:
Originally Posted by UNLIMIT3D
Посмотреть сообщение
Thanks, you guys know any other options? I might auto kick players for being afk but are there any other options?
yes there is another option you can detect if the player afk for more than a minute then move the player a little bit infront


Re: Stuck in players on respawn! - UNLIMIT3D - 12.11.2015

I think i'll take MBilal's suggestion, thanks guys!