07.08.2013, 09:51
Hello.How to do this ?When player join to the server and he spawn, he get 100 armour ?
public OnPlayerSpawn(playerid)
{
SetPlayerArmour(playerid, 100.0);
return 1;
}
new bool: hadArmour[MAX_PLAYERS] = {false, ...};
public OnPlayerSpawn(playerid)
{
if(hadArmour{playerid} == false)
{
SetPlayerArmour(playerid, 100.0);
hadArmour{playerid} = true;
}
return 1;
new bool: hadArmour[MAX_PLAYERS char];
public OnPlayerSpawn(playerid)
{
if(gTeam[playerid] == POLICE_CLASS) SetPlayerArmour(playerid, 100.0);
// Change the variable and the police's number to yours
return 1;
}
public OnPlayerSpawn(playerid)
{
SetPlayerArmour(playerid, 100.0); //sets the armour of the player to 100
return 1;
}