[OnplayerDeath]Admin Kills ? -
donhu789 - 17.11.2013
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+
Re: [OnplayerDeath]Admin Kills ? -
***Niko*** - 17.11.2013
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
Re: [OnplayerDeath]Admin Kills ? -
donhu789 - 17.11.2013
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
Re: [OnplayerDeath]Admin Kills ? -
Loot - 17.11.2013
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;
}
Re: [OnplayerDeath]Admin Kills ? -
donhu789 - 17.11.2013
What is SomeVar ? my kill of admin = PlayerInfo[playerid][AdminKills]
and ifisplayeradmin can you change it to PlayerInfo[playerid][Level] >= 0) { ?
Re: [OnplayerDeath]Admin Kills ? -
Loot - 17.11.2013
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;
}
Re: [OnplayerDeath]Admin Kills ? -
donhu789 - 17.11.2013
REgular Administrator
if(PlayerInfo[playerid][Level] >= 1) {
Re: [OnplayerDeath]Admin Kills ? -
Loot - 17.11.2013
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;
}
Re: [OnplayerDeath]Admin Kills ? -
donhu789 - 17.11.2013
ty ;v
Re: [OnplayerDeath]Admin Kills ? -
donhu789 - 17.11.2013
hey looot PlayerInfo[killerid][AdminKills] ++; = Each kill +1 huh ?