help me
#4

I'm just showing hints
pawn Код:
new PlayersSpawned;

public OnGameModeInit()
{
    PlayersSpawned = 0;
    return 1;
}

public OnPlayerSpawn(playerid)
{
    PlayersSpawned++;
    new randspawn = random(randspawn);
    if(PlayersSpawned <= 3)//if 3 or less players are spawned
    {
        //your code
    }
    if(PlayersSpawned == 4)//if 4 players are sapwmed. 4=human as you want
    {
        //your code
    }
    while(PlayersSpawned >= 5)//if more than 4 players are spawned
    {
        switch(randspawn)//Set here the random spawns with teams and weapons (Set the data)
        {
            case 0: GivePlayerMoney(playerid, 10); //SetSpawnInfo(playerid, team, skin, Float:x, Float:y, Float:z, Float:Rot, weap1, ammo, weap2, ammo, weap3, ammo);
            //and so on
        }
    }
    return 1;
}
Edit: Sorry I was late , I typed this via my ipod (code is not tested and it's just an example)
Reply


Messages In This Thread
help me - by rumen98 - 31.08.2012, 11:08
Re: help me - by PawnFox - 31.08.2012, 11:09
Re: help me - by rumen98 - 31.08.2012, 11:16
Re: help me - by Youice - 31.08.2012, 11:41

Forum Jump:


Users browsing this thread: 1 Guest(s)