Raised This Month: $ Target: $400
 0% 

Blockmaker - Magic Carpet [H] [E] [L] [P]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
cikjam
Senior Member
Join Date: Feb 2009
Location: Australia
Old 06-26-2009 , 09:38   Re: Blockmaker - Magic Carpet [H] [E] [L] [P]
Reply With Quote #9

So what do i do with this?
I dont know much about scripting.
Can you tell me what the action thing will be. Example:
Code:
actionInvincible(id, OverrideTimer)
{
    new Float:fTime = halflife_time();
    
    if (fTime >= gfInvincibleNextUse[id] || OverrideTimer)
    {
        new Float:fTimeout = get_cvar_float("bm_invincibletime");
        
        set_user_godmode(id, 1);
        set_task(fTimeout, "taskInvincibleRemove", TASK_INVINCIBLE + id, "", 0, "a", 1);
        
        //only make player glow white for invincibility if player isn't already stealth
        if (fTime >= gfStealthTimeOut[id])
        {
            set_user_rendering(id, kRenderFxGlowShell, 255, 255, 255, kRenderNormal, 16);
        }
        
        //play invincibility sound
        emit_sound(id, CHAN_STATIC, gszInvincibleSound, 1.0, ATTN_NORM, 0, PITCH_NORM);
        
        gfInvincibleTimeOut[id] = fTime + fTimeout;
        gfInvincibleNextUse[id] = fTime + fTimeout + get_cvar_float("bm_invinciblecooldown");
    }
    else
    {
        set_hudmessage(gHudRed, gHudGreen, gHudBlue, gfTextX, gfTextY, gHudEffects, gfHudFxTime, gfHudHoldTime, gfHudFadeInTime, gfHudFadeOutTime, gHudChannel);
        show_hudmessage(id, "Wait Time: %.1f", gfInvincibleNextUse[id] - fTime);
    }
}
And Where do i put the MOVETYPE_FLY and anything else i need to do.
On which Lines.
cikjam 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 15:40.


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