View Single Post
kimilover
Junior Member
Join Date: Oct 2010
Old 06-13-2014 , 15:17   Re: Boolean at an origin
Reply With Quote #3

thx fo your awnser i want to help i have a hns blocks server and i want to use someone all blocks xp and not only one at a map... the code is this.
PHP Code:
ActionXPBlock(ident)
{
    if ( 
cs_get_user_team(id) == CS_TEAM_T )
    {
        if ( !
g_xpblock_used[id] )
        {
            new 
property[5];
            
GetProperty(ent1property);
            
hnsxp_add_user_xp(idstr_to_num(property));
            
g_xpblock_used[id] = true;
            
            
set_hudmessage(025500.010.1800.01.00.250.252);
            
show_hudmessage(id"You got %i more XP!"str_to_num(property));
        }
    }
        else
        {
            
set_hudmessage(025500.010.1800.01.00.250.252);
            
show_hudmessage(id"Only Terrorists can take XP Block!");
    }

with this when a player use one xp block he cant use another block. and i have a lot of xp blocks at a map. i want a player use all blocks once time per map.
kimilover is offline