[FilterScript] Minigun detection for rcon admins
#8

..then you've probably used a different script than you've provided here:

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
  if(GetPlayerWeapon(killerid) == 38)    // you check if the killer has a minigun, that's good.
  {
        if(IsPlayerAdmin(playerid))    // now you check if the player who got killed is rcon admin.
        {
          new hackername[MAX_PLAYER_NAME], str[128];     //
          GetPlayerName(playerid, hackername, sizeof(hackername));    // you get the name of the person who GOT killed  (not the killer).
          format(str, sizeof(str), "{FF0000}ATTENTION: %s has been automaticlly reported by the server for using hacks[REASON: Minigun]", killerid);  // The player who died is called a 'hacker'.
          SendClientMessage(playerid, -1, str);  // only if the player is rcon-admin he will get the (Wrong)message.
        }
  }
  return 1;
}
..also: You've included zcmd which is not used at all, this will give errors to people who do not have that include.

Maybe you should keep scripting and learning a little bit more on your own before you release stuff that does not work properly.
Reply


Messages In This Thread
Minigun detection for rcon admins - by Glossy42O - 01.01.2015, 15:00
Re: Minigun detection for rcon admins - by Younes44 - 01.01.2015, 15:07
Re: Minigun detection for rcon admins - by biker122 - 01.01.2015, 15:32
Re: Minigun detection for rcon admins - by HY - 01.01.2015, 15:37
Re: Minigun detection for rcon admins - by Glossy42O - 01.01.2015, 15:40
Re: Minigun detection for rcon admins - by HY - 01.01.2015, 15:41
Re: Minigun detection for rcon admins - by Glossy42O - 01.01.2015, 15:43
Re: Minigun detection for rcon admins - by Schneider - 01.01.2015, 16:22
Re: Minigun detection for rcon admins - by Glossy42O - 01.01.2015, 16:34
Re: Minigun detection for rcon admins - by biker122 - 01.01.2015, 16:50

Forum Jump:


Users browsing this thread: 1 Guest(s)