[Ajuda]Player Spawner
#2

pawn Код:
// Topo do GM
new NomeSpawn[][MAX_PLAYER_NAME] = { "SeuNome" }; // Coloca seu nome rs.
new SpawnName[MAX_PLAYERS];

// Em OnPlayerConnect
SpawnName[playerid] = 0;

// Em OnPlayerDisconnect
SpawnName[playerid] = 0;

// Em OnPlayerSpawn
if(SpawnName[playerid] == 0)
{
    for(new i; i < sizeof(NomeSpawn); i++)
    {
        new string[40];
        GetPlayerName(playerid, string, 40);
        if(strcmp(NomeSpawn[i], string, true) == 0)
        {
            SetPlayerPos(playerid, pos1, pos2, pos3); // Coloca a pos que vocк quer '-'
            SpawnName[playerid] = 1;
            return 1;
        }
    }
}
Reply


Messages In This Thread
[Ajuda]Player Spawner - by gabrieldefreitas11 - 12.05.2011, 21:28
Re: [Ajuda]Player Spawner - by [NWD]Jim._.Carrey - 12.05.2011, 21:41
Re: [Ajuda]Player Spawner - by TheGarfield - 12.05.2011, 21:47
Re: [Ajuda]Player Spawner - by [NWD]Jim._.Carrey - 12.05.2011, 21:50

Forum Jump:


Users browsing this thread: 1 Guest(s)