Raised This Month: $ Target: $400
 0% 

VIP menu help !


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Christjanno12
Junior Member
Join Date: Mar 2013
Old 03-08-2013 , 16:18   VIP menu help !
Reply With Quote #1

Hey i have thiss vipmenu , and anyone can help me how i can add , a tag VIP into scoreboard if i press TAB , and also how i add Vip model ,i want vip have agent smith model , please help .
//------------------------------------------------------------------------------------------//
#include <amxmodx>
#include <fun>
#include <cstrike>
#include <engine>


#define PLUGIN "Joodikute Dr"
#define VERSION "1.0"
#define AUTHOR "janno"


new bool:has_used[33]


public plugin_init()
{
register_clcmd( "say /vipmenu", "VIPMenu" );
register_clcmd( "say_team /vipmenu", "VIPMenu" );


register_logevent("event_new_round", 2, "1=Round_Start")
}


public VIPMenu( id )
{
if(!has_used[id])
{
if(get_user_flags(id) & ADMIN_LEVEL_H)
{
new vip_menu = menu_create( "Joodikute VIP Menu", "menu_handler" );
menu_additem( vip_menu, "125 HP+100Armor", "1", 0 );
menu_additem( vip_menu, "Granaadid", "2", 0 );
menu_additem( vip_menu, "Gravity", "3", 0);
menu_additem( vip_menu, "Kiirus", "4", 0);
menu_additem( vip_menu, "Deagle", "5", 0);
menu_additem( vip_menu, "awp", "6", 0);

menu_setprop( vip_menu, MPROP_EXIT, MEXIT_ALL );
menu_display( id, vip_menu, 0 );
}
else
{
client_print(id, print_chat, "[Joodikute DR] Ainult VIPid saavad kasutada VIP menu.")
}
}
else
{
client_print(id, print_chat, "[Joodikute DR] Sa juba kasutasid VIP menu see round.")
}
}


public menu_handler( id, menu, item )
{
if( item == MENU_EXIT )
{
menu_destroy( menu );
return PLUGIN_HANDLED;
}
new data[6], iName[64];
new access, callback;

menu_item_getinfo( menu, item, access, data,6, iName, 63, callback );
new key = str_to_num( data );
switch( key )
{
case 1:
{
if( is_user_alive( id ) )
{
set_user_health( id, 255 ); //määrab elud 255
set_user_armor( id, 100 ); //määrab armori 100
}
}
case 2:
{
if( is_user_alive( id ) )
{
give_item( id, "weapon_hegrenade" )
give_item( id, "weapon_flashbang" )
give_item( id, "weapon_flashbang" )
give_item( id, "weapon_smokegrenade" )
}
}
case 3:
{
if( is_user_alive( id ) )
{
set_user_gravity( id, 0.7 );
}
}
case 4:
{
if(is_user_alive(id))
{
set_user_maxspeed(id, 400.0);
}
}

case 5:
{
if(is_user_alive(id))
{
give_item( id, "weapon_deagle" );
give_item(id,"ammo_50ae") // Desert Eagle Ammo
give_item(id,"ammo_50ae") // Desert Eagle Ammo
give_item(id,"ammo_50ae") // Desert Eagle Ammo
give_item(id,"ammo_50ae") // Desert Eagle Ammo
}
}
case 6:
{
if(is_user_alive(id))
{
give_item( id, "weapon_awp" );
give_item(id,"ammo_50ae") // Desert awp Ammo
}
}
}
//---------------------------------------------//


has_used[id] = true;
menu_destroy( menu );

return PLUGIN_HANDLED;
}


public event_new_round()
arrayset(has_used, false, 33)
Christjanno12 is offline
scrapy
Junior Member
Join Date: Aug 2012
Location: Portugal
Old 03-08-2013 , 16:25   Re: VIP menu help !
Reply With Quote #2

search, all of that vip benefits are in the forum...

scoreboard i don't think is possible, because of the bomb. I saw a lot of threads and all without the correct answer
__________________
Newbie With Desires For Learning
scrapy is offline
Unkolix
Veteran Member
Join Date: Sep 2012
Old 03-08-2013 , 16:33   Re: VIP menu help !
Reply With Quote #3

Quote:
Originally Posted by scrapy View Post
search, all of that vip benefits are in the forum...

scoreboard i don't think is possible, because of the bomb. I saw a lot of threads and all without the correct answer
The VIP tag in scoreboard is available for all player, but only CT can see it. Search VIP SCOREBOARD in forums.

About the models, you can look at some other VIP plugins.

About your message, next time attach the .sma file or use CODE or PHP tags.
Unkolix 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 21:42.


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