SA-MP Forums Archive
Player pausing - 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: Player pausing (/showthread.php?tid=553190)



Player pausing - Nimrod - 28.12.2014

What do you guys think would be the best idea for removing players from death matches when they pause? I already have my pause detection and everything, but the only idea I have is kicking them from the server which is inconvenient for the player. Obviously I can't teleport the player away while they're paused. Anyone have any ideas?


Re: Player pausing - UltraScripter - 28.12.2014

yeah remove them


Re: Player pausing - Facerafter - 28.12.2014

Freeze 'em.

If you want to use it a punishment freeze them for a couple minutes.
Код:
TogglePlayerControllable(playerid, false);



Re: Player pausing - SickAttack - 28.12.2014

You could perhaps set their virtual world to their playerid so that they wouldn't be visible to the other players which are in the deathmatch. You'll have to test that tho, I don't know if it actually changes while they're paused.


Re: Player pausing - Nimrod - 29.12.2014

Quote:
Originally Posted by Facerafter
Посмотреть сообщение
Freeze 'em.

If you want to use it a punishment freeze them for a couple minutes.
Код:
TogglePlayerControllable(playerid, false);
I don't want to punish them haha. I just don't want the other death matchers to get annoyed by alt-tabbers. I just need something that works while they're paused, other than kicking them from the server.


Re: Player pausing - DRP - 29.12.2014

I think it's pretty good and better if you just set their health to 0 when they do so.


Re: Player pausing - BroZeus - 29.12.2014

Put them in specing mode so that they can spec other players who are still in DM alive.