new WeaponNames[][20] = {{\"Unarmed\"},{\"Brass Knuckles\"},{\"Golf Club\"},{\"Night Stick\"},{\"Knife\"},{\"Bat\"},{\"Shovel\"},{\"Pool Cue\"},{\"Katana\"},{\"Chainsaw\"},{\"Dildo\"},{\"Vibrator1\"},{\"Vibrator2\"},{\"Vibrator3\"},{\"Flowers\"},{\"Cane\"},{\"Grenade\"},{\"Tear Gas\"},{\"Molotov\"},{\" \"},{\"N/A\"},{\" \"},{\"Pistol\"},{\"Silencer\"},{\"Deagle\"},{\"Shotgun\"},{\"Sawnoff\"},{\"Spas12\"},{\"Mac-10\"},{\"Mp5\"},{\"AK-47\"},{\"M4\"},{\"Tec-9\"},{\"Rifle\"},{\"Sniper\"},{\"RPG\"},{\"HeatSeeker\"},{\"Flamethrower\"},{\"Minigun\"},{\"Satchel\"},{\"Detonator\"},{\"Spraycan\"},{\"Extinguisher\"},{\"Camera\"},{\"Nightvision\"},{\"Infrared\"},{\"Parachute\"},{\" \"},{\" \"},{\"Vehicle Collision\"},{\"HeliKill\"},{\"Explosion\"},{\" \"},{\" \"},{\"Long Fall\"}}; // Top Of Your Script Out Of Any CallBackpublic OnPlayerDeath(playerid,killerid,reason){ new PlayerNick[MAX_PLAYER_NAME], KillerNick[MAX_PLAYER_NAME], Float:H, Float:A, String[128]; GetPlayerHealth(killerid,H);GetPlayerArmour(killerid,A); GetPlayerName(playerid, PlayerNick, MAX_PLAYER_NAME); GetPlayerName(killerid, KillerNick, MAX_PLAYER_NAME); format(String,sizeof(String),\"*** %s megölte %s (%s) (Élete : %.0f) (Távolság : %.2f Ft)\",KillerNick,PlayerNick,WeaponNames[reason],H+A,GetDistanceBetweenPlayers(playerid,killerid)); SendClientMessageToAll(Colour,String); return 1;}
forward Float:GetDistanceBetweenPlayers(p1,p2);public Float:GetDistanceBetweenPlayers(p1,p2){ new Float:x1,Float:y1,Float:z1,Float:x2,Float:y2,Float:z2; if(!IsPlayerConnected(p1) || !IsPlayerConnected(p2)) { return -1.00; } GetPlayerPos(p1,x1,y1,z1); GetPlayerPos(p2,x2,y2,z2); return floatsqroot(floatpower(floatabs(floatsub(x2,x1)),2)+floatpower(floatabs(floatsub(y2,y1)),2)+floatpower(floatabs(floatsub(z2,z1)),2));}