SA-MP Forums Archive
[FilterScript] [FS] Killer Info - 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: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] [FS] Killer Info (/showthread.php?tid=149101)



[FS] Killer Info - [1corp]vlad - 20.05.2010

Shows info of the murderer :nick/xp/armour/with of the weapon has killed / from what distance



pawn Code:
#include <a_samp>
#define FILTERSCRIPT
#define DIALOG_RULES 2
#pragma tabsize 0
forward Float:GetDistanceBetweenPlayers(p1,p2);
stock Float:GetDistanceBetweenPlayers(p1,p2)
{
new Float:x11,Float:y11,Float:z11,Float:x3,Float:y3,Float:z3;
if (!IsPlayerConnected(p1) || !IsPlayerConnected(p2))
{
return -1.00;
}
GetPlayerPos(p1,x11,y11,z11);
GetPlayerPos(p2,x3,y3,z3);
return floatsqroot(floatpower(floatabs(floatsub(x3,x11)),2)+floatpower(floatabs(floatsub(y3,y11)),2)+floatpower(floatabs(floatsub(z3,z11)),2));
}
public OnPlayerDeath(playerid, killerid, reason)
{
for(new i = 0; i < GetMaxPlayers(); i++)
{
if(IsPlayerConnected(i) && i != playerid)
{
new deathreason[20];
new PlayerNamea[30];
new string[256];
new Float:h;
new Float:a;
new n[30];
new msg[150];
GetPlayerHealth(killerid,h);
GetPlayerArmour(killerid,a);
GetPlayerName(killerid,n,30);
GetWeaponName(reason,deathreason, 20);
//if(killerid != INVALID_PLAYER_ID && reason != 255)
//{
//}
//else{
format(PlayerNamea,sizeof PlayerNamea," Info ",PlayerNamea);
msg="At your murderer [%s] \nremains [%d] XP \n and [%d] AR\n has killed you with [%s]\nfrom distance [%d].";
format(string,sizeof string,msg,n,floatround(h),floatround(a),deathreason,floatround(GetDistanceBetweenPlayers(i,playerid)));
ShowPlayerDialog(playerid,DIALOG_RULES,0,PlayerNamea,string,"OK","Exit");
//}
}
}
return 1;
}
To whom it is necessary on SendClientMessage replace =)


Re: [FS] Killer Info - Mr L - 20.05.2010

i tested it and its work fine to me very nice thank you.


Re: [FS] Killer Info - park4bmx - 20.05.2010

cool good FS ill use it Thanks and KEEP UP THE GOOD WORK


Re: [FS] Killer Info - Pawno_Scripter - 21.05.2010

screens please?


Re: [FS] Killer Info - [MWR]Blood - 21.05.2010

Seems nice.


Re: [FS] Killer Info - ViruZZzZ_ChiLLL - 21.05.2010

Hmmm.. Look's good and yeah,
some screen shots would be good


Re: [FS] Killer Info - [1corp]vlad - 22.05.2010

Later ...


Re: [FS] Killer Info - JPs_ - 22.05.2010

nice


Re: [FS] Killer Info - Sniper[axn] - 14.06.2010

Quote:
Originally Posted by ikarus
Hy all my hungarys!