Raised This Month: $51 Target: $400
 12% 

Vip Bunny hop


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
alicx
BANNED
Join Date: Mar 2013
Location: Tunisia
Old 04-14-2013 , 09:50   Vip Bunny hop
Reply With Quote #1

hello friends,
i need help with this plugin
i have compiled it but it don't work :(
help me please
Quote:

#include <amxmodx>
#include <engine>
#include <hamsandwich>
#include <VIPSystem>

#define PLUGIN "Admin AutoBhop"
#define VERSION "1.0"
#define AUTHOR "Alicx"

new g_bAlive[33]
new g_bAdmin[33]

public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)

RegisterHam(Ham_Player_Jump, "player", "Player_Jump")

register_event("Health", "Check_Alive", "b")
register_event("ResetHUD", "Check_Alive", "b")
}

public client_putinserver(id)
{
g_bAlive[id] = false
g_bAdmin[id] = get_user_flags(id) & VIP_FLAG_C
}

public Check_Alive(id)
{
g_bAlive[id] = is_user_alive(id)
}

public Player_Jump(id)
{
if( g_bAlive[id] && g_bAdmin[id] )
{
static iOldButtons ; iOldButtons = entity_get_int(id, EV_INT_oldbuttons)
if( iOldButtons & IN_JUMP )
{
entity_set_int(id, EV_INT_oldbuttons, iOldButtons & ~IN_JUMP)
return HAM_HANDLED
}
}
return HAM_IGNORED
}
the include of vip:
Quote:
/* Access flags */
#define VIP_FLAG_ALL 0 // Any flag
#define VIP_FLAG_A (1<<0) // Flag "a"
#define VIP_FLAG_B (1<<1) // Flag "b"
#define VIP_FLAG_C (1<<2) // Flag "c"
#define VIP_FLAG_D (1<<3) // Flag "d"
#define VIP_FLAG_E (1<<4) // Flag "e"
#define VIP_FLAG_F (1<<5) // Flag "f"
#define VIP_FLAG_G (1<<6) // Flag "g"
#define VIP_FLAG_H (1<<7) // Flag "h"
#define VIP_FLAG_I (1<<8) // Flag "i"
#define VIP_FLAG_J (1<<9) // Flag "j"
#define VIP_FLAG_K (1<<10) // Flag "k"
#define VIP_FLAG_L (1<<11) // Flag "l"
#define VIP_FLAG_M (1<<12) // Flag "m"
#define VIP_FLAG_N (1<<13) // Flag "n"
#define VIP_FLAG_O (1<<14) // Flag "o"
#define VIP_FLAG_P (1<<15) // Flag "p"
#define VIP_FLAG_Q (1<<16) // Flag "q"
#define VIP_FLAG_R (1<<17) // Flag "r"
#define VIP_FLAG_S (1<<18) // Flag "s"
#define VIP_FLAG_T (1<<19) // Flag "t"
#define VIP_FLAG_U (1<<20) // Flag "u"
#define VIP_FLAG_V (1<<21) // Flag "v"
#define VIP_FLAG_W (1<<22) // Flag "w"
#define VIP_FLAG_X (1<<23) // Flag "x"
#define VIP_FLAG_Y (1<<24) // Flag "y"
#define VIP_FLAG_Z (1<<25) // Flag "z"
/* Returns 1 if player is VIP, otherwise 0 */
native VSGetUserVip(id)
/* Returns 1 if player have a flag, otherwise 0 */
native VSGetVipFlag(id, flag)
/* Returns flags the player as sum of bits */
native VSGetVipFlags(id)
/* Register new item
Parameters:
name - item name
flag - access flag
Returns:
id of item
*/
native VSRegisterItem(name[], flag)
/* Returns 1 if the privilege is enabled, otherwise 0 */
native VSGetItemState(id)
/* Activate the privilege on the menu */
native VSEnableItem(id)
/* Disables the privilege of the menu */
native VSDisableItem(id)
/* Sets the privileges name of the menu */
native VSSetItemName(id, name[])
/* Called when the player has chosen an element */
forward VSItemSelected(id, itemid)
/* Called when a VIP connects */
forward VSVipConnect(id)
/* Called when player opening menu */
forward VSOpeningMenu(id)

Last edited by alicx; 04-14-2013 at 09:52.
alicx is offline
Send a message via MSN to alicx Send a message via Skype™ to alicx
joshknifer
Veteran Member
Join Date: Jun 2011
Location: Denver, CO
Old 04-15-2013 , 12:28   Re: Vip Bunny hop
Reply With Quote #2

This may be easier. Just update for your VIP flag:
https://forums.alliedmods.net/showthread.php?t=211428
__________________
joshknifer is offline
Send a message via Skype™ to joshknifer
alicx
BANNED
Join Date: Mar 2013
Location: Tunisia
Old 04-15-2013 , 12:56   Re: Vip Bunny hop
Reply With Quote #3

Quote:
Originally Posted by joshknifer View Post
This may be easier. Just update for your VIP flag:
https://forums.alliedmods.net/showthread.php?t=211428
thanks but ConnorMc has helped me
but now i need help with this :
https://forums.alliedmods.net/showthread.php?t=213507
if you can help me
alicx is offline
Send a message via MSN to alicx Send a message via Skype™ to alicx
joshknifer
Veteran Member
Join Date: Jun 2011
Location: Denver, CO
Old 04-15-2013 , 13:26   Re: Vip Bunny hop
Reply With Quote #4

Search next time:
https://forums.alliedmods.net/showth...light=free+vip
__________________
joshknifer is offline
Send a message via Skype™ to joshknifer
alicx
BANNED
Join Date: Mar 2013
Location: Tunisia
Old 04-15-2013 , 13:52   Re: Vip Bunny hop
Reply With Quote #5

Quote:
Originally Posted by joshknifer View Post
thanks but i found it but i don't knew how to chage the flags :'(
look i use a differnet include
alicx is offline
Send a message via MSN to alicx Send a message via Skype™ to alicx
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 00:50.


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