Raised This Month: $ Target: $400
 0% 

Check flags help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
mikasonwar
Junior Member
Join Date: Sep 2015
Old 11-15-2015 , 13:51   Check flags help
Reply With Quote #1

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 ^^


Last edited by mikasonwar; 11-15-2015 at 13:56. Reason: AMDX forum... didnt see...
mikasonwar is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 11-15-2015 , 14:49   Re: Check flags help
Reply With Quote #2

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

get_user_flags
Admin level constants
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.

Last edited by wickedd; 11-15-2015 at 14:54.
wickedd is offline
mikasonwar
Junior Member
Join Date: Sep 2015
Old 11-15-2015 , 15:09   Re: Check flags help
Reply With Quote #3

Quote:
Originally Posted by wickedd View Post
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!
__________________
How 2 code?
mikasonwar is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 11-15-2015 , 15:23   Re: Check flags help
Reply With Quote #4

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.
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
CodingIsHard
Junior Member
Join Date: Jul 2015
Old 11-17-2015 , 11:43   Re: Check flags help
Reply With Quote #5

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

Last edited by CodingIsHard; 11-17-2015 at 11:45.
CodingIsHard is offline
Reply


Thread Tools
Display Modes

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 18:04.


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