anti weapon
#1

how to make this fakekill proof:
pawn Код:
new pname[24];
            new kname[24];
            new string[128];
            GetPlayerWeapon(killerid);
            if(GetPlayerWeapon(killerid) == 38 || == 37 || reason == 36 || reason == 35 || reason == 34 || reason == 33 || reason == 32 || reason == 31 || reason == 30 || reason == 29 || reason == 28 || reason == 27 || reason == 26 || reason == 25 || reason == 24 || reason == 23 || reason == 22 || reason == 9)
            {
                GetPlayerName(playerid, pname, sizeof(pname));
                     GetPlayerName(killerid, kname, sizeof(kname));
                format(string, sizeof(string), "%s get kicked cause he killed %s with a cheating weapon. BYE BYE!!!", kname, pname);
                SendClientMessageToAll(RED, string);
                Kick(killerid);
            }


// its under public OnPlayerDeath(playerid, killerid, reason)
Reply
#2

Quote:
Originally Posted by Schock
how to make this fakekill proof:
pawn Код:
new pname[24];
            new kname[24];
            new string[128];
            GetPlayerWeapon(killerid);
            if(GetPlayerWeapon(killerid) == 38 || == 37 || reason == 36 || reason == 35 || reason == 34 || reason == 33 || reason == 32 || reason == 31 || reason == 30 || reason == 29 || reason == 28 || reason == 27 || reason == 26 || reason == 25 || reason == 24 || reason == 23 || reason == 22 || reason == 9)
            {
                GetPlayerName(playerid, pname, sizeof(pname));
                     GetPlayerName(killerid, kname, sizeof(kname));
                format(string, sizeof(string), "%s get kicked cause he killed %s with a cheating weapon. BYE BYE!!!", kname, pname);
                SendClientMessageToAll(RED, string);
                Kick(killerid);
            }


// its under public OnPlayerDeath(playerid, killerid, reason)
just add this to your script:

[pawn]new selfkill[MAX_PLAYERS];

@ /kill > selfkill[playerid] = 1;

@ your anti kill, || reason == 9 && selfkill[playerid] == 0)

under the anti kill selfkill[playerid] = 0;
Reply
#3

lol look at https://sampwiki.blast.hk/wiki/Weapons before you talking about the weapons ... i want it FAKEKILL save
Reply
#4

wth do you mean with fakekill than you ^T#%^#%^@#$%@#$ >.<
Reply
#5

Quote:
Originally Posted by Pandabeer1337
wth do you mean with fakekill than you ^T#%^#%^@#$%@#$ >.<
Fakekill is used with <censored>, try @ onplayerdeath, check the persons health to see if they did die.
Reply
#6

Quote:
Originally Posted by TeddyBear
Quote:
Originally Posted by Pandabeer1337
wth do you mean with fakekill than you ^T#%^#%^@#$%@#$ >.<
Fakekill is used with <censored>, try @ onplayerdeath, check the persons health to see if they did die.
Exactly.

There is a cheat program which can fake deaths, and make your script think that players are killing each other with dis-allowed weapons e.g. minigun, which may get innocent players punished.

pawn Код:
OnPlayerDeath(playerid, killerid, reason)
{
  new Float:playerhp;
  GetPlayerHealth(playerid, playerhp);
  if (playerhp < 0.01)
  {
    // add your kill code here
  }
  return 1;
}
Reply
#7

Quote:
Originally Posted by 1337pr0
Quote:
Originally Posted by TeddyBear
Quote:
Originally Posted by Pandabeer1337
wth do you mean with fakekill than you ^T#%^#%^@#$%@#$ >.<
Fakekill is used with <censored>, try @ onplayerdeath, check the persons health to see if they did die.
Exactly.

There is a cheat program which can fake deaths, and make your script think that players are killing each other with dis-allowed weapons e.g. minigun, which may get innocent players punished.

pawn Код:
OnPlayerDeath(playerid, killerid, reason)
{
  new Float:playerhp;
  GetPlayerHealth(playerid, playerhp);
  if (playerhp < 0.01)
  {
    // add your kill code here
  }
  return 1;
}
<censored> kill the player if he do fakekill

how can i get this fakekill proof:
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    if(GetPlayerVirtualWorld(playerid) == 0 )
    {
        SendDeathMessage(killerid, playerid, reason);
    }
    if(GetPlayerVirtualWorld(playerid) == 0)
    {
        if (AccountInfo[killerid][AdminLevel] >= 1 || IsPlayerAdmin(killerid))
        {
        }
        else
        {
            new pname[24];
            new kname[24];
            new string[128];
            GetPlayerWeapon(killerid);
            if(GetPlayerWeapon(killerid) == 38 || == 37 || == 36 || == 35 || == 34 || == 33 || == 32 || == 31 || == 30 || == 29 || == 28 || == 27 || == 26 || == 25 || == 24 || == 23 || == 22 || == 9)
            {
                GetPlayerName(playerid, pname, sizeof(pname));
                GetPlayerName(killerid, kname, sizeof(kname));
                format(string, sizeof(string), "%s get kicked cause he killed %s with a cheating weapon. BYE BYE!!!", kname, pname);
                SendClientMessageToAll(RED, string);
                Kick(killerid);
            }
        }
    }

   
    KillTimer(cartimer[playerid]);
    KillTimer(hptimer[playerid]);
    return 1;
}
Reply
#8

nobody nows?
Reply
#9

looking at a players health at death is pointless i tryed it.
GetPlayerState works.
look here >
http://forum.sa-mp.com/index.php?topic=85610.45
if you want anti weapons just disable them
Reply
#10

@Schock

Well, I definitely will not help you any more. Do you know why SA:MP forums sensors certain words? So that nobody can tell what they are.

Don't try to get around word filters like that, they're there for a reason...

-.-
Reply
#11

lol? wft you want from me?
caus i report you cause you called me a cocksucker?
please dont post on this topics and send me PMґs but if it is insulting i will report it too
Reply
#12

I never sent you any pms, and I never called you a "cocksucker" lol. You sure it wasn't someone else?

I'm just a little annoyed because you took the name of a cheat program which you knew SA:MP forum would sensor. Then you changed it slightly so that it wouldn't be censored.

I don't want anything, other than you to remove the word from your previous post and not use it again. Cheaters should not be able to gain access to cheat programs easily.
Reply
#13

true...
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)