Witam, mam pytanie: Jak sprawdzić jak długo (w sekundach) trwa oślepienie gracza? Skleciłem coś takiego, tylko nie mam pewności czy to zadziała:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("ScreenFade", "ev_DostalFlasha", "be", "4=255", "5=255", "6=255", "7=200", "7=255");
}
public ev_DostalFlasha(id)
{
if(!is_user_alive(id))
return PLUGIN_CONTINUE;
new iCzasFlasha = floatround(float(read_data(2)) / float((1<<12))); //potem to wykorzystam :)
return PLUGIN_CONTINUE;
}


Dodatki SourceMod














