Raised This Month: $ Target: $400
 0% 

XP Block Action Script


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Crazybeer
BANNED
Join Date: Jan 2010
Location: The Pacifier
Old 03-03-2010 , 18:06   XP Block Action Script
Reply With Quote #1

Is this Xp Block Action script right?

Because when a Terrorist go on it it came up Only Terrorists can take XP Block! and sometimes a Terrorist wont get XP can someone help me ?

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!");
        }
    }

Crazybeer 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 08:47.


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