Prosił bym kogoś, kto się zna na scriptingu o poprawienie pluginu, tak aby nie było errorów przy kompilacji. Oraz chciał bym usunąć ten napis po śmierci Jesteś nieżywy.
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"
public plugin_init() {
register_plugin("Enhanced Death", "0.1", "Platters")
register_event("DeathMsg", "death", "a")
return PLUGIN_CONTINUE
}
public death() {
new id=read_data(2)
message_begin(MSG_ONE,get_user_msgid("ScreenFade"),{0,0,0},id)
write_short( 4<<12 ) // fade lasts this long duration
write_short( 3.5<<16 ) // fade lasts this long hold time
write_short( 1<<1 ) // fade type (in / out)
write_byte( 255 ) // fade red
write_byte( 0 ) // fade green
write_byte( 0 ) // fade blue
write_byte( 255 ) // fade alpha
message_end()
new deadname[33]
get_user_name(id,deadname,32)
set_hudmessage(255, 255, 255, -1.0, -1.0, 2, 0.2, 10.0, 0.1, 0.2, 2)
show_hudmessage(id,"%s jestes niezywy...", deadname)
return PLUGIN_CONTINUE
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ ansicpg1250\\ deff0\\ deflang1045{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ f0\\ fs16 \n\\ par }
*/
Użytkownik Tweak456 edytował ten post 05.04.2012 12:07