SA-MP Forums Archive
[HELP] onplayerdeath problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [HELP] onplayerdeath problem (/showthread.php?tid=558750)



[HELP] onplayerdeath problem - Luca12 - 18.01.2015

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
}


Re: [HELP] onplayerdeath problem - JaydenJason - 18.01.2015

Quote:
Originally Posted by Luca12
Посмотреть сообщение
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.