PDA

View Full Version : help me


rumen98
31/08/2012, 11:08 AM
nothing i wrong

PawnFox
31/08/2012, 11:09 AM
This is not a script request thread.

Check forum rules.

rumen98
31/08/2012, 11:16 AM
PawnFox;2091122']This is not a script request thread.

Check forum rules.

i know but i need help please

Youice
31/08/2012, 11:41 AM
I'm just showing hints


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)