Raised This Month: $ Target: $400
 0% 

Skills float


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
darklite
Member
Join Date: Jun 2014
Old 06-30-2014 , 18:13   Re: help pleasee
Reply With Quote #8

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

new Skills[33]
new 
g_AddSkills[2];

public 
plugin_init() {
    
    
g_AddSkills[0]  = register_cvar("skills_normal","1.20")
    
g_AddSkills[1]  = register_cvar("skills_headshot","1.30")
    
    
register_clcmd("say /skills","showskills")
    
    
register_event"DeathMsg""Hook_Death""a" );
    
}
public 
Hook_Death()
{
    new 
killer   read_data);
    new 
hs         read_data);
    
    if(
hs)
        
Skills[killer] += get_pcvar_float(g_AddSkills[1])
    else
        
Skills[killer] += get_pcvar_float(g_AddSkills[0])
}
public 
showskills(id){
    new 
Floats
    Floats 
float:Skills[id]
    
client_print(id,print_chat,"Your Skills %f",Floats)

darklite is offline
 



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 21:14.


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