when admin on duty , warn the attacker
#1

hi
in gamemod i have InAdminMode and AdminLevel i used OnPlayerTakeDamage but its aint working
thanks for helping me



Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid) // take damage
{
  if(issuerid != INVALID_PLAYER_ID)
    {
        new string[128], admin[MAX_PLAYER_NAME], attacker[MAX_PLAYER_NAME];
        
        GetPlayerName(playerid, admin, sizeof (admin));
        GetPlayerName(issuerid, attacker, sizeof (attacker));

        
         if( admin == AdminLevel[playerid] >= 1 == InAdminMode[playerid] == 1)

          {
        format(string, sizeof(string), "dont attack admin on duty");
        SendClientMessage(attacker,0xFFFFFFFF, string); //        can   replace  the warn msg with ApplyAnmation ? how i do it like attacker == applyanmation() ?
        }
    }
    return 1;
}
Reply


Messages In This Thread
when admin on duty , warn the attacker - by omidi - 14.03.2013, 11:21
Re: when admin on duty , warn the attacker - by Scrillex - 14.03.2013, 11:22
Re: when admin on duty , warn the attacker - by omidi - 14.03.2013, 11:27
Re: when admin on duty , warn the attacker - by Scrillex - 14.03.2013, 11:35
Re: when admin on duty , warn the attacker - by sampreader - 14.03.2013, 11:38
Re: when admin on duty , warn the attacker - by Scrillex - 14.03.2013, 11:39
Re: when admin on duty , warn the attacker - by omidi - 14.03.2013, 12:12
Re: when admin on duty , warn the attacker - by Scrillex - 14.03.2013, 12:43

Forum Jump:


Users browsing this thread: 3 Guest(s)