Why does this happen? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Why does this happen? (
/showthread.php?tid=69288)
Why does this happen? -
notec100 - 17.03.2009
Whenever a player dies or kills another player, the on screen death message that shows (playerid (pictureofweapon) playerid) is not always accurate.. It will say a player died if they were murdered, sometimes it will even show minigun, rocketlauncher, and satchel deaths even tho no one uses those weapons as they will be banned. How can I fix it so it is accurate 100% of the time? Thanks in advance this is a really annoying issue.
Re: Why does this happen? -
Backwardsman97 - 17.03.2009
What do you have under OnPlayerDeath?
Re: Why does this happen? -
yezizhu - 17.03.2009
Some hacking machine cause fake kill on purpose..
Re: Why does this happen? -
notec100 - 17.03.2009
Quote:
Originally Posted by backwardsman97
What do you have under OnPlayerDeath?
|
I just have the stats to
Код:
SendDeathMessage(killerid, playerid, reason);
GameTextForPlayer(playerid, "~r~Got Merked", 3000, 2);
KillTimer(Player[playerid][TaxiTimer]);
KillTimer(Player[playerid][HitTimer]);
KillTimer(Player[playerid][JailCounter]);
SetPlayerTime(playerid, worldHour, worldMinute);
dUserSetINT(PlayerName(playerid)).("Bank",Player[playerid][Bank]);
dUserSetINT(PlayerName(playerid)).("skin",GetPlayerSkin(playerid));
dUserSetINT(PlayerName(playerid)).("Score",dUserINT(PlayerName(playerid)).("Score")-1);
dUserSetINT(PlayerName(playerid)).("TimesDied",dUserINT(PlayerName(playerid)).("TimesDied")+1);
dUserSetINT(PlayerName(playerid)).("PlayersKilled",dUserINT(PlayerName(playerid)).("PlayersKilled")+1);
SetPlayerScore(playerid, dUserINT(PlayerName(playerid)).("Score"));
I thought having SendDeathMessage was automatic and the server did that part on it's own as in the reasons. How would an example be to code the reasons for the different weapons? Correct me if I am wrong, and I apologize if I am I just need to know what the issue is thanks in advance!
Re: Why does this happen? -
matt2127 - 17.03.2009
Quote:
Originally Posted by notec100
Код:
GameTextForPlayer(playerid, "~r~Got Merked", 3000, 2);
|
Lol, that's some good shit .
Re: Why does this happen? -
notec100 - 17.03.2009
Quote:
Originally Posted by 2pacalypse
Quote:
Originally Posted by notec100
Код:
GameTextForPlayer(playerid, "~r~Got Merked", 3000, 2);
|
Lol, that's some good shit .
|
Lol thanks.
Anyone know how I can resolve this? Thanks
Re: Why does this happen? -
Kinetic - 17.03.2009
Just like yezizhu said. People can spoof a fake kill with any weapon. It is actually quite easy to do it too.
Re: Why does this happen? -
notec100 - 17.03.2009
Quote:
Originally Posted by Kinetic
Just like yezizhu said. People can spoof a fake kill with any weapon. It is actually quite easy to do it too.
|
Really?
So 1 all you need then is SendDeathMessage(killer, victim, reason); Under OnPlayerDeath and it will automatically tell you the correct death message?
And 2, is there anyway to prevent the fake death message?
Thanks in advance!