[Tutorial] Simple Spawn Protection
#8

Quote:
Originally Posted by Youssef221
View Post
Because the default world is 0, and still:

pawn Code:
SetPlayerVirtualWorld(playerid, random(39)+1);
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.
Yes but you are unnecessarily checking that as you could just use

pawn Code:
SetPlayerVirtualWorld(playerid, random(39)+1);
And I'm not saying the random thing is a good way of spawn protection but I'm just pointing a mistake out.
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: 1 Guest(s)