Witam! mam problem z pluginem na zombie escape plugin powinien pokazywać na czacie kto co niszczy/wciska ale nie działa nwm dlaczego wszystko wpisałem do plugins.ini ale i tak nie śmiga ![]()
tu macie kod
na niszczenie
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <hamsandwich>
#include <fakemeta>
#define PLUGIN "[ZEH]Info kto niszczy"
#define VERSION "1.0"
#define AUTHOR "VertekS"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR);
RegisterHam(Ham_TakeDamage, "func_breakable", "fw_breakable")
}
public fw_breakable(this, idinflictor, idattacker, Float:damage, damagebits){
new playerName[33], entHealth
get_user_name(idattacker, playerName, 32)
entHealth = pev(this, pev_health)
if(entHealth - damage <= 0.0)
client_print(0, print_console, "Breakable destroyed by %s", playerName)
else
client_print(0, print_console, "Breakable attacked by %s", playerName)
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1045\\ f0\\ fs16 \n\\ par }
*/
a tu na wciskanie
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <hamsandwich>
#define PLUGIN "[ZEH]Info kto wciska"
#define VERSION "1.0"
#define AUTHOR "VertekS"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
RegisterHam(Ham_Use, "func_button", "fw_button")
}
public fw_button(this, idcaller, idactivator, use_type, Float:value){
new playerName[33]
get_user_name(idactivator, playerName, 32)
client_print(0, print_console, "Button was pressed by %s", playerName)
}


Dodatki SourceMod



Temat jest zamknięty











