AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Hud MSG time [HELP] (https://forums.alliedmods.net/showthread.php?t=100745)

malec321 08-17-2009 14:29

Hud MSG time [HELP]
 
Hey guys. Can anyone teach me how to make these HUD msg show the whole round? Just one example would be perfect ;P.

HTML Code:

        case 21:/*      Chucky  */
        {
            StripUserWeapons(id)
            set_user_footsteps (id, 1)
            set_user_rendering(id,kRenderFxGlowShell,255,0, 0,kRenderTransAlpha,255);
           
            give_item (id, "weapon_knife")
            give_item (id, "weapon_flashbang")
            cs_set_user_bpammo (id, CSW_FLASHBANG, 3)
           
            set_user_health (id, 500)
            set_user_armor (id, 0)

            client_print(id, print_chat,"You have chosen to be 'Chucky'.");
            set_hudmessage(255,255,255,0.75,0.05,0, 1.0, 1.0, 0.1, 0.2, 13);
            show_hudmessage(id, "Hero: Chucky (ADMIN)^nHealth: %d", get_user_health(id))
        }   
        case 22:/* Reaper */
        {
            StripUserWeapons(id);
            cs_set_user_defuse(id, 1);
           
            give_item(id, "weapon_knife");
           
            set_user_health(id, 100);
            set_user_rendering(id,kRenderFxGlowShell,0,0, 0,kRenderTransAlpha,1);
            //remove_glow(id)
            set_user_gravity (id, 0.8);
            set_user_footsteps(id, 0);
           
            client_print(id, print_chat,"You have chosen to be 'Reaper'.");
            set_hudmessage(255,255,255,0.75,0.05,0, 1.0, 1.0, 0.1, 0.2, 13);
            show_hudmessage(id, "Hero: Reaper (ADMIN)^nHealth: %d", get_user_health(id))

just the last part of the case is the hud msg


All times are GMT -4. The time now is 14:58.

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