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(id, print_chat, "Score is: %s: %d %s: %d", tagct, ctcount, tagt, tcount)
}
public tagct( id, level, cid )
{
if( !cmd_access( id, level, cid, 4 ) )
return PLUGIN_HANDLED;
new tagct[32];
read_argv(1, tagct);
remove_quotes(tagct);
console_print(id, "Tag from CT team is %s", tagct)
}
public tagt( id, level, cid )
{
if( !cmd_access( id, level, cid, 4 ) )
return PLUGIN_HANDLED;
new tagt[32];
read_argv(1, tagtt);
remove_quotes(tagt);
console_print(id, "Tag from T team is %s", tagt)
}