07.08.2013, 09:54
You want to give them armour only the first time they spawn after connect? Or every time they spawn?
That will give them armour every time they spawn
That will only give them armour the first time they spawn.
pawn Код:
public OnPlayerSpawn(playerid)
{
SetPlayerArmour(playerid, 100.0);
return 1;
}
pawn Код:
new bool: hadArmour[MAX_PLAYERS] = {false, ...};
public OnPlayerSpawn(playerid)
{
if(hadArmour{playerid} == false)
{
SetPlayerArmour(playerid, 100.0);
hadArmour{playerid} = true;
}
return 1;