SA-MP Forums Archive
What is better? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP (https://sampforum.blast.hk/forumdisplay.php?fid=3)
+--- Forum: General (https://sampforum.blast.hk/forumdisplay.php?fid=13)
+--- Thread: What is better? (/showthread.php?tid=602953)



What is better? - AroseKhanNiazi - 16.03.2016

A mission script restarting after every game mode change or without restart. It's like Game mode are different, every game mode is a different game mode. It has it's own variables, class selections data and lot more objects... etc.
So what would be better for a Missions game mode, players have to select class in every mission so they are sent to class selection after every mission too.
Restarting?
Without Restart?


Re: What is better? - SickAttack - 16.03.2016

Without restarting (it is possible and it would be a more stable script in my opinion).


Re: What is better? - AroseKhanNiazi - 16.03.2016

Wouldn't Sending a 100 or 200 players at class selection in same time cause some errors/crashes?


Re: What is better? - SickAttack - 16.03.2016

Quote:
Originally Posted by AroseKhanNiazi
Посмотреть сообщение
Wouldn't Sending a 100 or 200 players at class selection in same time cause some errors/crashes?
Why would it? The class selection is client sided. If saving all of the players' statistics at once doesn't cause any issues, why would this?

https://sampwiki.blast.hk/wiki/ForceClassSelection

pawn Код:
ForceClassSelection(playerid);
TogglePlayerSpectating(playerid, true);
TogglePlayerSpectating(playerid, false);



Re: What is better? - AroseKhanNiazi - 16.03.2016

Oh thanks for that, I didn't knew about it