[OnplayerDeath]Admin Kills ?
#1

Guys how can i make if that player killed a Rcon admin there Admin Kills +1 ?

I HAve This Code:
PlayerInfo[playerid][AdminKills]


How can i make it fit ? in playerdeath


each time they killed a admin there AdminKills + 1 help please REP REP REP+
Reply
#2

Just wonder why Admin can be killed,you should make God Mode and if player is on admin duty to slap player and show him text "Don't shoot admin on duty" or something like that use imagination
Reply
#3

but i want ADmin kills | Admin will not Do anything :\ | becuz my Server DM,TDM,Fun,Stunt,Gaming,RP !!! I just Want admin + players get Death matching, CAn you help ? i just want admin kills for fun
Reply
#4

Is that what you meant?
pawn Код:
new someVar[MAX_PLAYERS];

public OnPlayerDeath(playerid, killerid, reason)
{
     if(IsPlayerAdmin(playerid)) { //if victim is logged as a RCON admin
          someVar[killerid] ++;
     }
     return 1;
}
Reply
#5

What is SomeVar ? my kill of admin = PlayerInfo[playerid][AdminKills]
and ifisplayeradmin can you change it to PlayerInfo[playerid][Level] >= 0) { ?
Reply
#6

Quote:
Originally Posted by donhu789
Посмотреть сообщение
What is SomeVar ? my kill of admin = PlayerInfo[playerid][AdminKills]
and ifisplayeradmin can you change it to PlayerInfo[playerid][Level] >= 0) { ?
You're clearly lack of experience, someVar was just an expression to the variable above.
Please make a decision, do you want to check if the victim is logged as a RCON admin OR as a regular admin?
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
     if(IsPlayerAdmin(playerid)) { // if(PlayerInfo[playerid][Level] >= 0)
          PlayerInfo[killerid][AdminKills] ++;
     }
     return 1;
}
Reply
#7

REgular Administrator

if(PlayerInfo[playerid][Level] >= 1) {
Reply
#8

Quote:
Originally Posted by donhu789
Посмотреть сообщение
REgular Administrator

if(PlayerInfo[playerid][Level] >= 1) {
Is that so hard to change that yourself...? ESPECIALLY when I placed that right in front of the if statement.
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
     if(PlayerInfo[playerid][Level] >= 1) {
          PlayerInfo[killerid][AdminKills] ++;
     }
     return 1;
}
Reply
#9

ty ;v
Reply
#10

hey looot PlayerInfo[killerid][AdminKills] ++; = Each kill +1 huh ?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)