[Ajuda] SetPlayerVirtualWorld
#5

Aqui, edite a seu gosto.

pawn Code:
//By Sub_Zero0_
#define MAX_WORLDS 200
#define MAX_PLAYERS_WORLD 4

public OnPlayerConnect(playerid)
{
    new ptemp;
    for(new worldID=0;worldID<MAX_WORLDS;worldID++)
    {
        ptemp=0;
        for(new i=0;i<MAX_PLAYERS;i++)
            if(GetPlayerVirtualWorld(i)==worldID) ptemp++;
        if(ptemp<MAX_PLAYERS_WORLD)
            SetPlayerVirtualWorld(playerid,worldID);
    }
    return 1;
}
Reply


Messages In This Thread
[Ajuda] SetPlayerVirtualWorld - by CaioMiglioli - 25.03.2012, 21:50
Re: [Ajuda] SetPlayerVirtualWorld - by Ricop522 - 25.03.2012, 21:56
Re: [Ajuda] SetPlayerVirtualWorld - by CaioMiglioli - 25.03.2012, 22:09
Re: [Ajuda] SetPlayerVirtualWorld - by ViniBorn - 25.03.2012, 22:25
Re: [Ajuda] SetPlayerVirtualWorld - by SuB_ZeRo0_ - 25.03.2012, 23:03
Re: [Ajuda] SetPlayerVirtualWorld - by rjjj - 25.03.2012, 23:21

Forum Jump:


Users browsing this thread: 2 Guest(s)