08.10.2011, 15:41
Hy, i have a SAMP RP server and i want to add a admin skin, and give admin ARMOUR + HP when he spawn!
Like that:
public OnPlayerSpawn(playerid)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] > 1)
{
SetPlayerSkin(playerid, 294);
SetPlayerArmour(playerid, 9999);
SetPlayerHealth(playerid, 9999);
}
}
That work! But, once I SPAWN or any admin or player, THE SONG is playing and dont STOP?? WHY! HELP HELP HELp
Like that:
public OnPlayerSpawn(playerid)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] > 1)
{
SetPlayerSkin(playerid, 294);
SetPlayerArmour(playerid, 9999);
SetPlayerHealth(playerid, 9999);
}
}
That work! But, once I SPAWN or any admin or player, THE SONG is playing and dont STOP?? WHY! HELP HELP HELp