Guest User

Untitled

a guest
Nov 30th, 2010
413
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 2.95 KB | None | 0 0
  1. #define FILTERSCRIPT
  2.  
  3. #include <a_samp>
  4.  
  5. #if defined FILTERSCRIPT
  6.  
  7. public OnFilterScriptInit()
  8. {
  9.     print("\n--------------------------------------");
  10.     print(" Killing log by multinfs");
  11.     print("--------------------------------------\n");
  12.     return 1;
  13. }
  14.  
  15. public OnFilterScriptExit()
  16. {
  17.     return 1;
  18. }
  19.  
  20. #else
  21.  
  22. main()
  23. {
  24.     print("__________________________");
  25.     print("|=-=-=-=-=-=-=-=-=-=-[x]-|");
  26.     print("| Killing log by multinfs|");
  27.     print("|=-=-=-=-=-=-=-=-=-=-=-=-|");
  28.     print("Loaded!");
  29. }
  30.  
  31. #endif
  32. public OnPlayerDeath(playerid, killerid, reason)
  33. {
  34.     new aWeaponNames[][50] = {
  35.     {"Unarmed (by hand)"}, // 0
  36.     {"Brass Knuckles"}, // 1
  37.     {"Golf Club"}, // 2
  38.     {"Night Stick"}, // 3
  39.     {"Knife"}, // 4
  40.     {"Baseball Bat"}, // 5
  41.     {"Shovel"}, // 6
  42.     {"Pool Cue"}, // 7
  43.     {"Katana"}, // 8
  44.     {"Chainsaw"}, // 9
  45.     {"Purple Dildo"}, // 10
  46.     {"Big White Vibrator"}, // 11
  47.     {"Medium White Vibrator"}, // 12
  48.     {"Small White Vibrator"}, // 13
  49.     {"Flowers"}, // 14
  50.     {"Cane"}, // 15
  51.     {"Grenade"}, // 16
  52.     {"Teargas"}, // 17
  53.     {"Molotov"}, // 18
  54.     {"Empty Slot 1"}, // 19
  55.     {"Empty Slot 2"}, // 20
  56.     {"Empty Slot 3"}, // 21
  57.     {"Colt 45"}, // 22
  58.     {"Colt 45 (Silenced)"}, // 23
  59.     {"Desert Eagle"}, // 24
  60.     {"Normal Shotgun"}, // 25
  61.     {"Sawnoff Shotgun"}, // 26
  62.     {"Combat Shotgun"}, // 27
  63.     {"Micro Uzi (Mac 10)"}, // 28
  64.     {"MP5"}, // 29
  65.     {"AK47"}, // 30
  66.     {"M4"}, // 31
  67.     {"Tec9"}, // 32
  68.     {"Country Rifle"}, // 33
  69.     {"Sniper Rifle"}, // 34
  70.     {"Rocket Launcher"}, // 35
  71.     {"Heat-Seeking Rocket Launcher"}, // 36
  72.     {"Flamethrower"}, // 37
  73.     {"Minigun"}, // 38
  74.     {"Satchel Charge"}, // 39
  75.     {"Detonator"}, // 40
  76.     {"Spray Can"}, // 41
  77.     {"Fire Extinguisher"}, // 42
  78.     {"Camera"}, // 43
  79.     {"Night Vision Goggles"}, // 44
  80.     {"Infrared Vision Goggles"}, // 45
  81.     {"Parachute"}, // 46
  82.     {"Fake Pistol"} // 47
  83.     };
  84.  
  85.     SendDeathMessage(killerid, playerid, reason);
  86.     new string[128], name[MAX_PLAYER_NAME];
  87.     new killer[MAX_PLAYER_NAME];
  88.     GetPlayerName(playerid, name, MAX_PLAYER_NAME);
  89.     GetPlayerName(killerid, killer, MAX_PLAYER_NAME);
  90.     if(killerid == INVALID_PLAYER_ID)
  91.     {
  92.     }
  93.     else
  94.     {
  95.         killer = ("none");
  96.     }
  97.     format(string, 128, "%s died of weapon/reason %s, killer %s", name, aWeaponNames[reason], killer);
  98. //------------------------------------------------------------------------------
  99.     new string2[128];
  100.     new pkiller[30], File:ptw=fopen("killers.cfg", io_append);
  101.     format(string2, 128, "%s %s\r\n", string, pkiller); // formatting the string with the escape codes
  102.     fwrite(ptw, string2);
  103.     fclose(ptw);
  104.     return 1;
  105. }
  106. public OnPlayerConnect(playerid)
  107. {
  108.     SendDeathMessage(INVALID_PLAYER_ID, playerid, 200);
  109.     SendClientMessage(playerid, 0xFF9900AA, "This server uses multinfs KillLog system V1.0");
  110.     return 1;
  111. }
  112. public OnPlayerDisconnect(playerid, reason)
  113. {
  114.     SendDeathMessage(INVALID_PLAYER_ID, playerid, 201);
  115.     return 1;
  116. }
Advertisement
Add Comment
Please, Sign In to add comment