Posts: 186
Threads: 41
Joined: Aug 2013
is there anything like
GetAllPlayersVirtualWorlds;
![Huh?](images/smilies/confused.gif)
![Huh?](images/smilies/confused.gif)
?
i want to make a function that at specific time if the player is in anyother virtual world except 0 then he will be set to 0
is it possible
![Huh?](images/smilies/confused.gif)
?
Posts: 186
Threads: 41
Joined: Aug 2013
Quote:
Originally Posted by Adityz
pawn Код:
CMD:vworld0forall(playerid, params[]) { for(new i=0; i<MAX_PLAYERS; i++) SetPlayerVirtualWorld(i, 0); return 1; }
|
Seems like this not what i want.
can u please explain briefly about your code?
Posts: 186
Threads: 41
Joined: Aug 2013
Quote:
Originally Posted by ******
I was going to reply to this topic, then I saw that Adityz had already posted a solution that seemed to perfectly answer your question so didn't bother. If you don't think it does, you need to refine and explain your question some more.
|
ok thanks for letting me know ******
Quote:
Originally Posted by Adityz
pawn Код:
CMD:vworld0forall(playerid, params[]) { for(new i=0; i<MAX_PLAYERS; i++) { SetPlayerVirtualWorld(i, 0); }
return 1; }
|
Adityz please explain the code bro.
Posts: 186
Threads: 41
Joined: Aug 2013
pawn Код:
CMD:vworld0forall(playerid, params[])
{
for(new i=0; i<MAX_PLAYERS; i++) //do this line checks that is every player in virtual world 0 or not???
{
SetPlayerVirtualWorld(i, 0); ///and do this line makes the players virtual world to 0 of all players who are in other worlds???
}
return 1;
}
Posts: 186
Threads: 41
Joined: Aug 2013