How to make spawning with armour ?
#2

You want to give them armour only the first time they spawn after connect? Or every time they spawn?

pawn Код:
public OnPlayerSpawn(playerid)
{
    SetPlayerArmour(playerid, 100.0);
    return 1;
}
That will give them armour every time they spawn

pawn Код:
new bool: hadArmour[MAX_PLAYERS] = {false, ...};

public OnPlayerSpawn(playerid)
{
    if(hadArmour{playerid} == false)
    {
        SetPlayerArmour(playerid, 100.0);
        hadArmour{playerid} = true;
    }
    return 1;
That will only give them armour the first time they spawn.
Reply


Messages In This Thread
How to make spawning with armour ? - by bustern - 07.08.2013, 09:51
Re: How to make spawning with armour ? - by -Prodigy- - 07.08.2013, 09:54
Re: How to make spawning with armour ? - by Konstantinos - 07.08.2013, 09:56
Re: How to make spawning with armour ? - by bustern - 07.08.2013, 10:03
Re: How to make spawning with armour ? - by Konstantinos - 07.08.2013, 10:09
Re: How to make spawning with armour ? - by XStormiest - 07.08.2013, 10:12

Forum Jump:


Users browsing this thread: 2 Guest(s)