Jakiś czas temu znalazłem w sieci kod sma dość fajnego pluginu, który sprawia że podczas zabicia przeciwnika ekran na sekundę robi się niebieski. Wszystko fajnie działa... tylko po jakimś czasie serwer pada. Wywala taki oto błąd "Host_Error: WriteDest_Parm: not a client". I teraz pytanie, czy to z tym pluginem jest coś nie tak czy może inna przyczyna ??
Oto kod sma:
#include <amxmodx>
public plugin_init() {
register_plugin("?", "1.0", "No-One")
register_event("DeathMsg", "DeathEvent", "a")
}
public DeathEvent() {
new id = read_data(1)
message_begin(MSG_ONE,get_user_msgid("ScreenFade"),{0,0,0},id);
write_short( 5<<10 ) // fade lasts this long duration
write_short( 3<<5 ) // fade lasts this long hold time
write_short( 1<<1 ) // fade type (in / out)
write_byte(0) // red
write_byte(0) // green
write_byte(250) // blue
write_byte(90) // alpha
message_end()
return PLUGIN_CONTINUE
}
					
					

 
Dodatki SourceMod



	
 Temat jest zamknięty

				
				







