[Tutorial] Simple Spawn Protection
#7

Because the default world is 0, and still:

pawn Code:
SetPlayerVirtualWorld(playerid, random(39)+1);
you said earlier:

Quote:
Originally Posted by Sellize
View Post
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
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.
Reply


Messages In This Thread
Simple Spawn Protection - by Youssef221 - 26.06.2015, 08:43
Re: Simple Spawn Protection - by Infinity - 26.06.2015, 08:59
Re: Simple Spawn Protection - by Youssef221 - 26.06.2015, 09:02
Re: Simple Spawn Protection - by Sellize - 26.06.2015, 09:02
Re: Simple Spawn Protection - by Youssef221 - 26.06.2015, 09:05
Re: Simple Spawn Protection - by Sellize - 26.06.2015, 09:08
Re: Simple Spawn Protection - by Youssef221 - 26.06.2015, 09:22
Re: Simple Spawn Protection - by Sellize - 26.06.2015, 09:26
Re: Simple Spawn Protection - by Youssef221 - 26.06.2015, 09:29

Forum Jump:


Users browsing this thread: 3 Guest(s)