Raised This Month: $ Target: $400
 0% 

edit statsx.sma


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Bello2
Senior Member
Join Date: Jun 2010
Location: Venezuela
Old 08-16-2010 , 19:55   edit statsx.sma
Reply With Quote #1

hello guys! This time i want to help me to edit the statsx in this way:

I want the command:

PHP Code:
register_clcmd("say /stats""cmdStats"0"- display players stats (menu/MOTD)"
Works for 2 things:

1.Which brings by default, which is to show the menu with the players on the server

2.This is where i want to help me, what i achieve is that the command work in this way:

say /stats "name"

Where the word "name", is the name of the player which you are going to see their stats

The problem is that i have not succeeded in doing so, do it here:

PHP Code:
// Player stats menu.
public cmdStats(id)
{
    if (!
SayStatsAll)
    {
        
client_print(idprint_chat"%L"id"DISABLED_MSG")
        return 
PLUGIN_HANDLED
    
}
    
    
showStatsMenu(idg_izUserMenuPosition[id] = 0)

    return 
PLUGIN_CONTINUE

You try this way and not worked:

PHP Code:
// Player stats menu.
public cmdStats(id)
{
    if (!
SayStatsAll)
    {
        
client_print(idprint_chat"%L"id"DISABLED_MSG")
        return 
PLUGIN_HANDLED
    
}
    
    
showStatsMenu(idg_izUserMenuPosition[id] = 0)

    new 
arg[32]
    
read_args(arg31)
    
remove_quotes(arg)
    
    new 
player cmd_target(idargCMDTARGET_OBEY_IMMUNITY CMDTARGET_ALLOW_SELF)
    
    
format_stats(idg_sBuffer)
    
get_user_name(playert_sNameMAX_NAME_LENGTH)
    
show_motd(idg_sBuffert_sName)
    

    return 
PLUGIN_CONTINUE

Bello2 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 21:55.


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