AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   User_silentkill (https://forums.alliedmods.net/showthread.php?t=318003)

Fuck For Fun 08-08-2019 15:17

User_silentkill
 
I am preparing for Admin CMD myself and there is a problem with my code the user_silentkill doesnt work

Message stocks INC:
Code:

stock user_silentkill(index, flag = 1)
{
        static msgid = 0;
        new msgblock;
        if (!msgid)
        {
                msgid = get_user_msgid("DeathMsg");
        }
        msgblock = get_msg_block(msgid);
        set_msg_block(msgid, BLOCK_ONCE);
        user_kill(index, flag);
        set_msg_block(msgid, msgblock);

        return 1;
}

PHP Code:

                if (is_user_alive(player))
                    
user_silentkill(player)

                
cs_set_user_teamplayerCS_TEAM_SPECTATOR );
            } 

How can i use that stock work in code prop, i need set that inc name on code?

Fuck For Fun 08-10-2019 05:03

Re: User_silentkill
 
Any know?


All times are GMT -4. The time now is 13:29.

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