Advertisement
supertimor

Untitled

Feb 10th, 2019
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.26 KB | None | 0 0
  1. #include <sourcemod>
  2. #include <sdkhooks>
  3. #include <sdktools>
  4. #include <codmod>
  5.  
  6. // lista broni :
  7. //"weapon_ak47","weapon_m4a1","weapon_m4a1_silencer","weapon_awp", "weapon_sg552","weapon_aug","weapon_p90","weapon_galilar", "weapon_famas","weapon_ssg08","weapon_g3sg1","weapon_scar20","weapon_m249","weapon_negev","weapon_nova","weapon_xm1014", "weapon_sawedoff","weapon_mag7","weapon_mac10","weapon_mp9","weapon_mp7","weapon_ump45","weapon_bizon","weapon_glock","weapon_fiveseven","weapon_deagle","weapon_revolver","weapon_hkp2000","weapon_usp_silencer","weapon_p250","weapon_elite","weapon_tec9","weapon_cz75a,"weapon_mp5sd"
  8.  
  9. // statystyki klasy /////////////////////////////////////////////////////
  10. new const String:nazwa[] = "";
  11. new const String:opis[] = "";
  12. new const String:bronie[] = "#";
  13. new const inteligencja = 0;
  14. new const zdrowie = 0;
  15. new const obrazenia = 0;
  16. new const wytrzymalosc = 0;
  17. new const kondycja = 15;
  18. /////////////////////////////////////////////////////////////////////////
  19.  
  20. // zmienne globalne
  21. new bool:ma_klase[65];
  22.  
  23. //
  24. public Plugin:myinfo =
  25. {
  26. name = nazwa,
  27. author = "SUPER TIMOR",
  28. description = "Klasa - ",
  29. version = "1.0.0",
  30. url = "http://steamcommunity.com/id/bonkwszlaufrocku"
  31. };
  32.  
  33. public OnPluginStart()
  34. {
  35. cod_register_class(nazwa, opis, bronie, inteligencja, zdrowie, obrazenia, wytrzymalosc, kondycja, frakcja);
  36. // HookEvent("player_spawn", OdrodzenieGracza);
  37. // HookEvent("player_death", SmiercGracza);
  38. }
  39. public cod_class_enabled(client)
  40. {
  41. ma_klase[client] = true;
  42. }
  43. public cod_class_disabled(client)
  44. {
  45. ma_klase[client] = false;
  46. }
  47. //public cod_class_skill_used(client)
  48.  
  49. //public Action:OdrodzenieGracza(Handle:event, String:name[], bool:dontBroadcast)
  50. //{
  51. // new client = GetClientOfUserId(GetEventInt(event, "userid"));
  52. //}
  53.  
  54. /*public Action:SmiercGracza(Handle:event, String:name[], bool:dontBroadcast)
  55. {
  56. new client = GetClientOfUserId(GetEventInt(event, "userid"));
  57. new killer = GetClientOfUserId(GetEventInt(event, "attacker"));
  58. if(!IsValidClient(killer) || !ma_klase[killer])
  59. return Plugin_Continue;
  60.  
  61. if(!IsValidClient(client) || !IsPlayerAlive(killer))
  62. return Plugin_Continue;
  63.  
  64. if(GetClientTeam(client) == GetClientTeam(killer))
  65. return Plugin_Continue;
  66.  
  67.  
  68. return Plugin_Continue;
  69. } */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement