This is not a script request thread.
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)