Raised This Month: $ Target: $400
 0% 

amx_tagct amx_tagt


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
VisioNN
Junior Member
Join Date: Jan 2013
Old 01-05-2013 , 15:55   amx_tagct amx_tagt
Reply With Quote #1

Hello! I want to add a Tag CT,Tag T to a message who show score. And i have problem with read arguments.

And I want Default tags to be tagct = CT & tagt = T
The Score is working, this is just a part from plugin!
Eq. If i use amx_tagct "GG" after that if I use .score he must show me (Score is: GG: x T: y )


PHP Code:
public plugin_init() 
{
    
register_concmd("amx_tagct""tagct"ACCESS"<Tag> - CT Tag");
    
register_concmd("amx_tagt""tagt"ACCESS"<Tag> - T Tag");
    
register_clcmd("say .score","say_score")
}

public 
say_score(id
{
    
client_print(idprint_chat"Score is: %s: %d %s: %d"tagctctcounttagttcount)
}
public 
tagctidlevelcid 


    if( !
cmd_accessidlevelcid) ) 
        return 
PLUGIN_HANDLED;       
    new 
tagct[32]; 
    
read_argv(1tagct); 
    
remove_quotes(tagct); 
    
console_print(id"Tag from CT team is  %s"tagct





public 
tagtidlevelcid 


    if( !
cmd_accessidlevelcid) ) 
        return 
PLUGIN_HANDLED;       
    new 
tagt[32]; 
    
read_argv(1tagtt); 
    
remove_quotes(tagt); 
    
console_print(id"Tag from T team is %s"tagt



Last edited by VisioNN; 01-05-2013 at 16:06.
VisioNN is offline
 


Thread Tools
Display Modes

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


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