Raised This Month: $ Target: $400
 0% 

Is this O.K. ? (Something like a Domination System)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
nicolazo103
Veteran Member
Join Date: Jan 2009
Location: I have no fu*** idea
Old 05-25-2010 , 12:44   Re: Is this O.K. ? (Something like a Domination System)
Reply With Quote #1

Thanks a lot wrecked
one More Thing:

Code:
#include <amxmodx> #include <fvault> #include <hamsandwich> new Author [] = "Larz | TheÜberRazorBack" new Plugin [] = "Domination System" new Domination, SaveStats, Method new Kill[33][33], Dominations[33], Dominated[33], Revenges[33] public plugin_init() {     register_plugin(Plugin, "0.1b", Author)     register_clcmd("say /mydomstats", "showtats")         Domination = register_cvar("amx_allow_domination_system", "1")     SaveStats = register_cvar("amx_save_domination_stats", "1")     Method = register_cvar("amx_save_method", "1")         RegisterHam(Ham_Killed, "player", "fw_HamKilled") } public client_connect(id) Load(id) public fw_HamKilled(victim, attacker, shouldgib) {     if(!get_pcvar_num(Domination))         return PLUGIN_HANDLED         Kill[attacker][victim]++         new attackername[32], victimname[32]         get_user_name(attacker, attackername, 31)     get_user_name(victim, victimname, 31)         set_hudmessage(200, 100, 0, -50.0, -80.0, 1, 5.0, 12.0, 0.2, 0.3, -1)     show_hudmessage(victim, "You were killed by %s (%i)", attackername, Kill[attacker][victim])         if(Kill[attacker][victim] == 3)     {         set_hudmessage(200, 100, 0, -50.0, -80.0, 1, 5.0, 12.0, 0.2, 0.3, 4)         show_hudmessage(0, "%s is dominating %s (%i kill%s)", attackername, victimname, Kill[attacker][victim], Kill[attacker][victim]==1?"":"s")                 Dominations[attacker]++         Dominated[victim]++                 Save(attacker)         Save(victim)     }     else if(Kill[attacker][victim] > 3)     {         set_hudmessage(200, 100, 0, -50.0, -80.0, 1, 5.0, 12.0, 0.2, 0.3, 2)         show_hudmessage(victim, "You have been killed again by %s (%i)", attackername, Kill[attacker][victim])     }     if(Kill[victim][attacker] == 3)     {         set_hudmessage(200, 100, 0, -50.0, -80.0, 1, 5.0, 12.0, 0.2, 0.3, 3)         show_hudmessage(0, "%s got revenge on %s after %i kill%s)", attackername, victimname, Kill[attacker][victim], Kill[attacker][victim]==1?"":"s")                 Revenges[attacker]++         Save(attacker)     }             Kill[victim][attacker] = 0         return HAM_IGNORED } public Save(id) {     if(!get_pcvar_num(SaveStats))         return PLUGIN_HANDLED         new AuthID[32], Data[40], Key[32]         if(!get_pcvar_num(Method)) {         get_user_name(id, AuthID, 32)         formatex(Key, 32, "^"%s^"", AuthID)     }     else         get_user_authid(id, Key, 32)         formatex(Data, 39, "%s %s %s", Dominations[id], Dominated[id], Revenges[id])         fvault_set_data("DomSystem", Key, Data)         return PLUGIN_HANDLED } public Load(id) {     if(!get_pcvar_num(SaveStats))         return PLUGIN_HANDLED         new AuthID[33], Data[40], Key[33]         if(!get_pcvar_num(Method))     {         get_user_name(id, AuthID, 32)         formatex(Key, 32, "^"%s^"", AuthID)     }     else         get_user_authid(id, Key, 32)         if(fvault_get_data("DomSystem", Key, Data, 39))     {         parse(Data, Dominations, 32, Dominated, 32, Revenges, 32)             }     return PLUGIN_HANDLED } public showtats(id) {     if(!get_pcvar_num(SaveStats))         return PLUGIN_HANDLED         set_hudmessage(200, 100, 0, -50.0, -80.0, 1, 5.0, 12.0, 0.2, 0.3, -1)     show_hudmessage(id, "# Dominations: %i ^n # Dominated: %i ^n Revenges: %i", Dominations[id], Dominated[id], Revenges[id])     return PLUGIN_HANDLED }
__________________
Why do they send babies to fight me? -Heavy


Last edited by nicolazo103; 05-25-2010 at 14:23.
nicolazo103 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:22.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode