Witamy w Nieoficjalnym polskim support'cie AMX Mod X
Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
|
Guest Message by DevFuse
Wklejka 5ncl3o7xblpg dodana przez RasiaQ, 27.02.2014 22:23
a
1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. 27. 28. 29. 30. 31. 32. 33. 34. 35. 36. 37. 38. 39. 40. 41. 42. 43. 44. 45. 46. 47. 48. 49. 50. 51. 52. 53. 54. 55. 56. 57. 58. 59. 60. 61. 62. 63. 64. 65. 66. 67. 68. 69. 70. 71. 72. 73. 74.
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <codmod>
#include <fakemeta>
new const nazwa[] = "";
new const opis[] = "";
new const bronie = 0;
new const zdrowie = 0;
new const kondycja = 0;
new const inteligencja = 0;
new const wytrzymalosc = 0;
new ma_klase[33];
public plugin_init()
{
register_plugin(nazwa, "1.0", "RasiaQ");
cod_register_class(nazwa, opis, bronie, zdrowie, kondycja, inteligencja, wytrzymalosc);
register_forward(FM_PlayerPreThink, "PreThink");
register_forward(FM_UpdateClientData, "UpdateClientData", 1);
}
public cod_class_enabled(id)
{
ma_klase[id] = true;
}
public cod_class_disabled(id)
{
ma_klase[id] = false;
}
public PreThink(id)
{
new level = cod_get_user_level(id)
if(level >= 20)
{
return COD_STOP;
}
if(ma_klase[id])
set_pev(id, pev_punchangle, {0.0,0.0,0.0})
return COD_CONTINUE
}
public UpdateClientData(id, sw, cd_handle)
{
new level = cod_get_user_level(id)
if(level => 20)
{
return COD_STOP;
}
if(ma_klase[id])
set_cd(cd_handle, CD_PunchAngle, {0.0,0.0,0.0})
return COD_CONTINUE
}
/* Wytłumaczenie
new level = cod_get_user_level(id)
if(level < 20)
{
return COD_STOP
}
// public z dana umiejetnoscia
return COD_CONTINUE
Dodanych wklejek: 15354
Powered By (Pav32) Pastebin © 2011


Dodatki SourceMod


