Raised This Month: $ Target: $400
 0% 

@ HELP


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
totalcsscripting
BANNED
Join Date: Jul 2010
Old 08-16-2010 , 18:21   @ HELP
Reply With Quote #1

I have this simple function.

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <engine>
#include <cstrike>
#include <fun>
#include <fakemeta>


public plugin_init()
{
    
register_concmd("amx_vida","admin_vida",ADMIN_SLAY,"")
    return 
PLUGIN_CONTINUE
}
public 
admin_vida(id,level,cid) {
    if (!
cmd_access(id,level,cid,3))
    return 
PLUGIN_HANDLED
    
new arg[32], arg2[8], name2[32]
    
read_argv(1,arg,31)
    
read_argv(2,arg2,7)
    
get_user_name(id,name2,31)
    if (
arg[0]=='@'){
        new 
players[32], inum
        get_players
(players,inum,"ae",arg[1])
        if (
inum==0){
            return 
PLUGIN_HANDLED
        
}
        for(new 
a=0;a<inum;++a) {
            
client_print(idprint_chat"[TotalCS] Le cambiaste la vida a tu team!"
            
set_user_health(players[a], str_to_num(arg2))
        }
    }
    else {
        new 
player cmd_target(id,arg,7)
        if (!
player) return PLUGIN_HANDLED
        
        set_user_health
(playerstr_to_num(arg2))
        
client_print(idprint_chat"[TotalCS] Cambiaste tu vida!"
        new 
name[32]
        
get_user_name(player,name,31)

    }
    return 
PLUGIN_HANDLED

I can set helth to any player properly.
But when i try to set it to all:
amx_vida @ 200

Nothing Happens!!
totalcsscripting 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:52.


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