Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define FILTERSCRIPT
- #include <a_samp>
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Killing log by multinfs");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- #else
- main()
- {
- print("__________________________");
- print("|=-=-=-=-=-=-=-=-=-=-[x]-|");
- print("| Killing log by multinfs|");
- print("|=-=-=-=-=-=-=-=-=-=-=-=-|");
- print("Loaded!");
- }
- #endif
- public OnPlayerDeath(playerid, killerid, reason)
- {
- new aWeaponNames[][50] = {
- {"Unarmed (by hand)"}, // 0
- {"Brass Knuckles"}, // 1
- {"Golf Club"}, // 2
- {"Night Stick"}, // 3
- {"Knife"}, // 4
- {"Baseball Bat"}, // 5
- {"Shovel"}, // 6
- {"Pool Cue"}, // 7
- {"Katana"}, // 8
- {"Chainsaw"}, // 9
- {"Purple Dildo"}, // 10
- {"Big White Vibrator"}, // 11
- {"Medium White Vibrator"}, // 12
- {"Small White Vibrator"}, // 13
- {"Flowers"}, // 14
- {"Cane"}, // 15
- {"Grenade"}, // 16
- {"Teargas"}, // 17
- {"Molotov"}, // 18
- {"Empty Slot 1"}, // 19
- {"Empty Slot 2"}, // 20
- {"Empty Slot 3"}, // 21
- {"Colt 45"}, // 22
- {"Colt 45 (Silenced)"}, // 23
- {"Desert Eagle"}, // 24
- {"Normal Shotgun"}, // 25
- {"Sawnoff Shotgun"}, // 26
- {"Combat Shotgun"}, // 27
- {"Micro Uzi (Mac 10)"}, // 28
- {"MP5"}, // 29
- {"AK47"}, // 30
- {"M4"}, // 31
- {"Tec9"}, // 32
- {"Country Rifle"}, // 33
- {"Sniper Rifle"}, // 34
- {"Rocket Launcher"}, // 35
- {"Heat-Seeking Rocket Launcher"}, // 36
- {"Flamethrower"}, // 37
- {"Minigun"}, // 38
- {"Satchel Charge"}, // 39
- {"Detonator"}, // 40
- {"Spray Can"}, // 41
- {"Fire Extinguisher"}, // 42
- {"Camera"}, // 43
- {"Night Vision Goggles"}, // 44
- {"Infrared Vision Goggles"}, // 45
- {"Parachute"}, // 46
- {"Fake Pistol"} // 47
- };
- SendDeathMessage(killerid, playerid, reason);
- new string[128], name[MAX_PLAYER_NAME];
- new killer[MAX_PLAYER_NAME];
- GetPlayerName(playerid, name, MAX_PLAYER_NAME);
- GetPlayerName(killerid, killer, MAX_PLAYER_NAME);
- if(killerid == INVALID_PLAYER_ID)
- {
- }
- else
- {
- killer = ("none");
- }
- format(string, 128, "%s died of weapon/reason %s, killer %s", name, aWeaponNames[reason], killer);
- //------------------------------------------------------------------------------
- new string2[128];
- new pkiller[30], File:ptw=fopen("killers.cfg", io_append);
- format(string2, 128, "%s %s\r\n", string, pkiller); // formatting the string with the escape codes
- fwrite(ptw, string2);
- fclose(ptw);
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- SendDeathMessage(INVALID_PLAYER_ID, playerid, 200);
- SendClientMessage(playerid, 0xFF9900AA, "This server uses multinfs KillLog system V1.0");
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- SendDeathMessage(INVALID_PLAYER_ID, playerid, 201);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment