AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [SOLVED] How to remove RED CROSS [c4 is planted] from radar? (https://forums.alliedmods.net/showthread.php?t=207139)

alonelive 01-30-2013 07:32

[SOLVED] How to remove RED CROSS [c4 is planted] from radar?
 
Hello. How i can remove this red cross? :)

http://s2.hostingkartinok.com/upload...8b654c3e32.png


PHP Code:

public remove_cross()
{
        new 
players[32], inum
        get_players
(playersinum"h")

        for (new 
0inum; ++i)
        {
                if(
cs_get_user_team(players[i]) == CS_TEAM_T)
                {

                        
message_begin(MSG_ONE,screenfade,{0,0,0},players[i]);
                        
//block this cross!
                        
message_end();
                }
        }



TheDS1337 01-30-2013 10:25

Re: How to remove RED CROSS [c4 is planted] from radar?
 
i think you need to register a message in plugin_init( );

ConnorMcLeod 01-30-2013 11:40

Re: How to remove RED CROSS [c4 is planted] from radar?
 
http://wiki.amxmodx.org/Half-Life_1_...vents#BombDrop

alonelive 01-31-2013 00:04

Re: How to remove RED CROSS [c4 is planted] from radar?
 
Quote:

Originally Posted by DeagLe.Studio (Post 1883467)
i think you need to register a message in plugin_init( );

of course :)

Thank you

Solved with

message_begin(MSG_ALL, gmsgBombPickup)
message_end()


All times are GMT -4. The time now is 20:32.

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