PDA

View Full Version : [HELP] onplayerdeath problem


Luca12
18/01/2015, 09:24 PM
I was made player new like AdminKill[MAX_PLAYERS]; and put that in /kill command beacuse I kill my self with that command and know the problem is if I near some player he get like you killed civilan you get the wanted level if you know what I mean and beacuse of that I made this AdminKill and put in command AdminKill[id] = 1; know how can under onplayerdeath add the code if player have that variable I mean if he killed by admin then I want to make that the text you kill civilan doensn't show to player if admin kill someone near other player. I hope so that you understand me and I try something like

if(AdminKill[playerid] == 0) so this somehow will check if player has killed by admin and if he is killed by admin this text then don't show.
{
and here is that for that text where it says you kill civilan and then the killerid geting wl
}

JaydenJason
18/01/2015, 10:55 PM
I was made player new like AdminKill[MAX_PLAYERS]; and put that in /kill command beacuse I kill my self with that command and know the problem is if I near some player he get like you killed civilan you get the wanted level if you know what I mean and beacuse of that I made this AdminKill and put in command AdminKill[id] = 1; know how can under onplayerdeath add the code if player have that variable I mean if he killed by admin then I want to make that the text you kill civilan doensn't show to player if admin kill someone near other player. I hope so that you understand me and I try something like

if(AdminKill[playerid] == 0) so this somehow will check if player has killed by admin and if he is killed by admin this text then don't show.
{
and here is that for that text where it says you kill civilan and then the killerid geting wl
}

I can barely understand that, I say put some more code.