Raised This Month: $ Target: $400
 0% 

How to make these commands to user level h


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
alien100
Member
Join Date: May 2010
Location: Finland
Old 05-16-2011 , 16:03   How to make these commands to user level h
Reply With Quote #1

Hello, how to make these 2 to user level h

and with gravity like player van use it only 5 seconds per round

HTML Code:
public GravityCMD(id)
{
    if(!NoGravity[id])
    {
          set_user_gravity(id, 0.70);	  
	client_print(id, print_chat, "[VIP] Gravity changed.")
          NoGravity[id] = true;
    }
    else
    {
          set_user_gravity(id, 0.80);
	 client_print(id, print_chat, "[VIP] Gravity changed.")
          NoGravity[id] = false;
     }
}

public Ham_UseButton( iEnt, iAttacker, Float:fDamage, Float:vDirection[3], TraceHandle, iDamageBits ) {
        dllfunc(DLLFunc_Use, iEnt, iAttacker) 
}
__________________

Last edited by alien100; 05-18-2011 at 16:44.
alien100 is offline
Send a message via MSN to alien100 Send a message via Skype™ to alien100
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-17-2011 , 02:09   Re: How to make these commands to user level h
Reply With Quote #2

Hint: (get_user_flags(player_entity_index) & ADMIN_LEVEL_H) returns true when the player has flag "t". If you mean flag "h" from users.ini then change ADMIN_LEVEL_H to ADMIN_CFG.
__________________
fysiks is offline
alien100
Member
Join Date: May 2010
Location: Finland
Old 05-18-2011 , 05:03   Re: How to make these commands to user level h
Reply With Quote #3

hmm i don't understandt
__________________
alien100 is offline
Send a message via MSN to alien100 Send a message via Skype™ to alien100
Aykay
Senior Member
Join Date: Jul 2009
Location: Australia
Old 05-18-2011 , 06:18   Re: How to make these commands to user level h
Reply With Quote #4

amx_addadmin "name" "t" when they're in the server.
__________________

Aykay is offline
Send a message via MSN to Aykay
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-18-2011 , 14:04   Re: How to make these commands to user level h
Reply With Quote #5

Quote:
Originally Posted by alien100 View Post
hmm i don't understandt
PHP Code:
if( (get_user_flags(player_entity_index) & ADMIN_LEVEL_H) )
{
    
// player_entity_index has flag "t", let them do stuff

Quote:
Originally Posted by Aykay View Post
amx_addadmin "name" "t" when they're in the server.
That has nothing to do with his question.
__________________
fysiks is offline
alien100
Member
Join Date: May 2010
Location: Finland
Old 05-19-2011 , 10:02   Re: How to make these commands to user level h
Reply With Quote #6

hmm.... // error 017: undefined symbol "player_entity_index"
__________________
alien100 is offline
Send a message via MSN to alien100 Send a message via Skype™ to alien100
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 05-19-2011 , 14:08   Re: How to make these commands to user level h
Reply With Quote #7

Quote:
Originally Posted by alien100 View Post
hmm.... // error 017: undefined symbol "player_entity_index"
It's an example.
Understand it to apply it to your code, instead of copy/pasting.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Reply



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


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