26.06.2015, 09:22
Because the default world is 0, and still:
you said earlier:
so I am checking if the player's world has gone to 0, it will reset his world..
instead of using random generator like you and infinity said.
pawn Code:
SetPlayerVirtualWorld(playerid, random(39)+1);
Quote:
I agree, eventhough it's a 1/40 chance you will end up in the same VW, you shouldn't take the risk. You could like Infinity said use the player's ID. Also, you should use a more general type of spawn protection, i.e. setting their health to a high value at each update or use a timer to save resources.
Other than that, good tutorial and nice effort |
instead of using random generator like you and infinity said.