SA-MP Forums Archive
help me - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: help me (/showthread.php?tid=373673)



help me - rumen98 - 31.08.2012

nothing i wrong


Re: help me - PawnFox - 31.08.2012

This is not a script request thread.

Check forum rules.


Re: help me - rumen98 - 31.08.2012

Quote:
Originally Posted by [V]PawnFox
Посмотреть сообщение
This is not a script request thread.

Check forum rules.
i know but i need help please


Re: help me - Youice - 31.08.2012

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)