Raised This Month: $ Target: $400
 0% 

XP Block Action Script


Post New Thread Reply   
 
Thread Tools Display Modes
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
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 03-03-2010 , 18:18   Re: XP Block Action Script
Reply With Quote #2

https://forums.alliedmods.net/showthread.php?t=110946

Includes macros for the updated XP Mod (somewhere in the thread) as well.
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
Crazybeer
BANNED
Join Date: Jan 2010
Location: The Pacifier
Old 03-03-2010 , 18:48   Re: XP Block Action Script
Reply With Quote #3

I am using version 0.0.1
Crazybeer is offline
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 03-03-2010 , 18:55   Re: XP Block Action Script
Reply With Quote #4

Time for an upgrade?

__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
Crazybeer
BANNED
Join Date: Jan 2010
Location: The Pacifier
Old 03-03-2010 , 19:08   Re: XP Block Action Script
Reply With Quote #5

I fixed the code.

It's

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
Reply



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