03.02.2012, 16:45
You mean when you promote a player ingame?
Then put this into the piece of code where you promote the player:
If the player you promoted is level 5 and above and the playerobject hadalwall is created it's been destroyed for the player.
Also, under which callback did you have the original code you showed?
Then put this into the piece of code where you promote the player:
pawn Код:
if(PlayerInfo[playerid][pAdmin] >= 5)
{
if(IsValidPlayerObject(playerid,hadalwall[playerid])
{
DestroyPlayerObject(playerid,hadalwall[playerid]);
}
}
Also, under which callback did you have the original code you showed?