Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <amxmodx>
- #define PLUGIN "New Plug-In"
- #define VERSION "1.0"
- #define AUTHOR "Sugisaki"
- new g_frag[32]
- new g_death[32]
- public plugin_init()
- {
- register_plugin(PLUGIN, VERSION, AUTHOR)
- register_event("DeathMsg", "pfn_PlayerDeath", "a")
- register_message(get_user_msgid("ScoreInfo"), "pfn_ScoreInfoHook")
- }
- public pfn_PlayerDeath()
- {
- new v = read_data(2)
- new k = read_data(1)
- if(!(1<= k <= get_maxplayers()) || v == k)
- {
- g_frag[v]--
- g_death[v]++
- }
- else
- {
- g_frag[k]++
- g_death[v]++
- }
- }
- public pfn_ScoreInfoHook(m, e, id)
- {
- //mis condiciones
- set_msg_arg_int(2, get_msg_argtype(2), g_frag[get_msg_arg_int(1)])
- set_msg_arg_int(3, get_msg_argtype(3), g_death[get_msg_arg_int(1)])
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement