[HELP]DestroyPlayerObject
#6

You mean when you promote a player ingame?
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]);
    }
}
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?
Reply


Messages In This Thread
[HELP]DestroyPlayerObject - by xRandomGuy - 03.02.2012, 15:20
AW: [HELP]DestroyPlayerObject - by Drebin - 03.02.2012, 15:47
Re: [HELP]DestroyPlayerObject - by xRandomGuy - 03.02.2012, 16:10
AW: [HELP]DestroyPlayerObject - by Drebin - 03.02.2012, 16:14
Re: [HELP]DestroyPlayerObject - by xRandomGuy - 03.02.2012, 16:33
AW: [HELP]DestroyPlayerObject - by Drebin - 03.02.2012, 16:45
Re: [HELP]DestroyPlayerObject - by xRandomGuy - 03.02.2012, 17:55

Forum Jump:


Users browsing this thread: 1 Guest(s)