AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Hey i need some help of action codes... (https://forums.alliedmods.net/showthread.php?t=121727)

Lw. 03-19-2010 07:55

Hey i need some help of action codes...
 
i need 4 action codes..
1:Blind Blockmaker action codes
2:Flash only Teror Blockmaker action codes
3:HE only Teror Blockmaker action codes
4:XP only Teror Blockmaker action codes..
can some1 give me plz

r14170 03-19-2010 09:35

Re: Hey i need some help of scripts...
 
scripts .. lol ?! isnt it action codes ??

Lw. 03-19-2010 10:47

Re: Hey i need some help of scripts...
 
Quote:

Originally Posted by r14170 (Post 1122270)
scripts .. lol ?! isnt it action codes ??

ok i dont know,
bot you can give me ?

'-_-'<3zok<3'-_-' 03-19-2010 16:32

Re: Hey i need some help of action codes...
 
here you go ^-^
PHP Code:

actionXP(idOverrideTimer)
{
    new 
Float:fTime halflife_time();
    
    if (
fTime >= g_xp_next_use[id] || OverrideTimer)
    {
    if ( 
get_user_team id ) == )
    {
        
hnsxp_add_user_xp(id75);
        
ColorChat(idGREEN"[%s]^x03 You have been given^x04 75 XP^x03!"g_prefix);
    }
    
        
g_xp_next_use[id] = fTime get_cvar_float("bm_xpcooldown");
            
    }
    else
    {
        
set_hudmessage(g_hud_redg_hud_greeng_hud_blueg_text_xg_text_yg_hud_effectsg_hud_fx_timeg_hud_hold_timeg_hud_fade_in_timeg_hud_fade_out_timeg_hud_channel);
        
show_hudmessage(id"[%s]^nWait Time: One Round"g_prefixg_xp_next_use[id] - fTime);
    }
    return 
PLUGIN_HANDLED;



'-_-'<3zok<3'-_-' 03-19-2010 16:33

Re: Hey i need some help of action codes...
 
i dont know if you use colorchat :S

Shadezz 03-19-2010 16:34

Re: Hey i need some help of action codes...
 
please give more information.. not just like "Blind Blockmaker" what is that??

Lw. 03-19-2010 17:01

Re: Hey i need some help of action codes...
 
Quote:

Originally Posted by '-_-'<3zok<3'-_-' (Post 1122627)
i dont know if you use colorchat :S

no i dont use colorchat

Quote:

Originally Posted by Shadezz (Post 1122629)
please give more information.. not just like "Blind Blockmaker" what is that??

Blind bm it blind you for 10 sec...if you mian for this

Shadezz 03-19-2010 17:17

Re: Hey i need some help of action codes...
 
i got a old action laying from my Blind..

PHP Code:

actionBlind(idbool:OverrideTimer)
{
    new 
Float:fTime halflife_time();
    
    
//check if player is outside of cooldown time to use the boots of speed
    
if (fTime >= gfBlindNextUse[id] || OverrideTimer)
    {
        new 
Float:fTimeout get_cvar_float("bm_blindtime");
        
        
//set a task to remove the boots of speed after time out amount
        
set_task(fTimeout"taskBlindRemove"TASK_BLIND id""0"a"1);
        
        
//iterate through all players
        
for (new id<= id; ++i)
        {
            
//make sure player is connected
            
if (is_user_connected(i))
            {
                
//make the screen flash for a nuke effect
                
message_begin(MSG_ONEgMsgScreenFade, {000}, i);
                
write_short(20000);    //duration
                
write_short(30000);    //hold time
                
write_short(4096);    //type (in / out)
                
write_byte(0);    //red
                
write_byte(0);    //green
                
write_byte(0);    //blue
                
write_byte(0);    //alpha
                
message_end();
            }
        }
        
        
gfBlindTimeOut[id] = fTime fTimeout;
        
gfBlindNextUse[id] = fTime fTimeout get_cvar_float("bm_blindcooldown");
    }
    else
    {
        
set_hudmessage(gHudRedgHudGreengHudBluegfTextXgfTextYgHudEffectsgfHudFxTimegfHudHoldTimegfHudFadeInTimegfHudFadeOutTimegHudChannel);
        
show_hudmessage(id"Blind next use: %.1f"gfBlindNextUse[id] - fTime);
    }


remember to make cvar :)

Lw. 03-19-2010 17:54

Re: Hey i need some help of action codes...
 
^
Thx you..
some1 have the code of number 2,3?

fysiks 03-19-2010 19:10

Re: Hey i need some help of action codes...
 
What is an "action code"?


All times are GMT -4. The time now is 08:40.

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