AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Check flags help (https://forums.alliedmods.net/showthread.php?t=274828)

mikasonwar 11-15-2015 13:51

Check flags help
 
Hi guys i wanna make myself a plugin that gives a deagle armor and some nades to a certain flag , but i want to do it myself , and i think i can do it but the thing is i don't know how to check the flag (and determinate it) already searched for it but only confused myself further... would appreciate if it was written with the sdktools but if written in amdx please give a little explanation between the sdktools & amdx ^^

~started learning today

Thanks ahead for the help guys ^^

http://1.bp.blogspot.com/-VIZ4bPbsOU...6387-jon-o.jpg

wickedd 11-15-2015 14:49

Re: Check flags help
 
PHP Code:

public not_imporantid )
{
    if( 
is_user_aliveid ) && ( get_user_flagsid ) & ADMIN_RCON ) ) 
    {
        
give_itemid"weapon_deagle" )
    }


get_user_flags
Admin level constants

mikasonwar 11-15-2015 15:09

Re: Check flags help
 
Quote:

Originally Posted by wickedd (Post 2363498)
PHP Code:

public not_imporantid )
{
    if( 
is_user_aliveid ) && ( get_user_flagsid ) & ADMIN_RCON ) ) 
    {
        
give_itemid"weapon_deagle" )
    }


get_user_flags
Admin level constants

any way to modify armor? thanks ahead!

wickedd 11-15-2015 15:23

Re: Check flags help
 
Yes there is, search the forum because there's many examples on how to do it. Or just type armor in the search box in one of the links I posted.

CodingIsHard 11-17-2015 11:43

Re: Check flags help
 
If you have questions, check API. For beginners it may take some time to understand it (personal experience).

Your question has an answer in cstrike.inc.

PHP Code:

enum CsArmorType
{
    
CS_ARMOR_NONE 0,      // no armor
    
CS_ARMOR_KEVLAR 1,    // body vest only
    
CS_ARMOR_VESTHELM 2,  // vest and helmet
}; 

^ The third argument for
Spoiler


All times are GMT -4. The time now is 18:04.

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