Raised This Month: $ Target: $400
 0% 

Need HELP with one plugin please help me


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
andrius2006x
Junior Member
Join Date: Oct 2007
Old 10-02-2007 , 15:14   Need HELP with one plugin please help me
Reply With Quote #1

Sory for my bad english but I wrote a amxx plugin and this plugin works fine but when I wroting that plugin I wroting that the plugin can use only admins who have admin flag t ADMIN_LEVEL_H but this plugin is using by anyone in my server.

Please help me to recode this plugin.
Please recode this plugin that this plugin can use only people ho is in users.ini and have a user flag t ADMIN_LEVEL_H .

Here is the code.

Code:
 
#include <amxmodx>
#include <amxmisc>
#include <fun>
#include <cstrike>
#define vipmenu_mygtukai (1<<0)|(1<<1)|(1<<2)|(1<<3)|(1<<4)|(1<<5)|(1<<6)|(1<<7)|(1<<8)|(1<<9)
public plugin_modules()
{
require_module("fun")
require_module("cstrike")
}
public plugin_init()
{
register_clcmd( "vipmenu","vipumenu_1")
register_menucmd(register_menuid("vipmenu"), vipmenu_mygtukai, "rodomasmenu_1")
register_plugin("VIP's Privileges", "1.0", "Andriusxxx")
register_dictionary("vips.txt")
register_concmd("vip_awp","vips_awp",ADMIN_LEVEL_H,"Duoda Awp ir sarvus")
register_concmd("vip_he","vipshe",ADMIN_LEVEL_H,"Nusipirkti granate")
register_concmd("vip_fb","vipsfb",ADMIN_LEVEL_H,"Nusipirkti flashbang")
register_concmd("vip_sg","vipssg",ADMIN_LEVEL_H,"Nusipirkti smoke puff")
register_concmd("vip_emka","vipsemka",ADMIN_LEVEL_H,"Nusipirkti m4a1 ginkla")
register_concmd("vip_sig","vips_sig",ADMIN_LEVEL_H,"Nusipirkti sig550 ginkla")
register_concmd("vip_ak","vips_ak",ADMIN_LEVEL_H,"Nusipirkti ak47 ginkla")
register_concmd("vip_deagle","vips_deagle",ADMIN_LEVEL_H,"Nusipirkti desert eagle ginkla")
register_concmd("vip_armor","vips_armor",ADMIN_LEVEL_H,"Nusipirkti sarvus")
}
public vipumenu_1(id) {
show_menu(id, vipmenu_mygtukai, "1: Jusu Pasiulymas^n2: Gauti Awp ir Armor^n3: Gauti HE Granata^n4: Gauti FlashBang^n5: Gauti SmokePuff granata^n6: Gauti emke^n7: Gauti sig550/Aug^n8: Gauti ak47 automata^n9: Gauti Deagle^n0: Gauti Armor^n^n", -1, "vipmenu") // Rodomas menu
}
public rodomasmenu_1(id, key) {
 
switch (key) {
case 0: { //Nera turinio pasiulymas
 
}
case 1: { client_cmd(id,"vip_awp")
 
}
case 2: { client_cmd(id,"vip_he") 
 
}
case 3: { client_cmd(id,"vip_fb") 
 
}
case 4: { client_cmd(id,"vip_sg") 
 
}
case 5: { client_cmd(id,"vip_emka") 
 
}
case 6: { client_cmd(id,"vip_sig") 
 
}
case 7: { client_cmd(id,"vip_ak") 
 
}
case 8: { client_cmd(id,"vip_deagle") 
 
}
case 9: client_cmd(id,"vip_armor") 
}
return PLUGIN_HANDLED 
}
 
public vips_armor(admin_index)
{
new adminname[32]
get_user_name(admin_index,adminname,32)
give_item(admin_index,"item_kevlar")
give_item(admin_index,"item_assaultsuit")
return PLUGIN_CONTINUE
 
}
public vips_deagle(admin_index)
{
new adminname[32]
get_user_name(admin_index,adminname,32)
 
give_item(admin_index,"weapon_deagle")
give_item(admin_index,"ammo_50ae")
give_item(admin_index,"ammo_50ae")
give_item(admin_index,"ammo_50ae")
give_item(admin_index,"ammo_50ae")
give_item(admin_index,"ammo_50ae")
give_item(admin_index,"ammo_50ae")
return PLUGIN_CONTINUE
 
}
public vips_ak(admin_index)
{
new adminname[32]
get_user_name(admin_index,adminname,32)
 
give_item(admin_index,"weapon_ak47")
give_item(admin_index,"ammo_762nato")
give_item(admin_index,"ammo_762nato")
give_item(admin_index,"ammo_762nato")
return PLUGIN_CONTINUE
 
}
 
public vips_sig(admin_index)
{
new adminname[32]
get_user_name(admin_index,adminname,32)
 
give_item(admin_index,"weapon_sig550")
give_item(admin_index,"ammo_556nato")
give_item(admin_index,"ammo_556nato")
give_item(admin_index,"ammo_556nato")
give_item(admin_index,"weapon_aug")
give_item(admin_index,"ammo_556nato")
give_item(admin_index,"ammo_556nato")
give_item(admin_index,"ammo_556nato")
return PLUGIN_CONTINUE
 
}
public vips_awp(admin_index)
{
new adminname[32]
get_user_name(admin_index,adminname,32)
 
give_item(admin_index,"weapon_awp")
give_item(admin_index,"ammo_338magnum")
give_item(admin_index,"ammo_338magnum")
give_item(admin_index,"ammo_338magnum")
give_item(admin_index,"item_kevlar")
give_item(admin_index,"item_assaultsuit")
 
return PLUGIN_CONTINUE
}
public vipsemka(admin_index)
{
new adminname[32]
get_user_name(admin_index,adminname,32)
 
give_item(admin_index,"weapon_m4a1")
give_item(admin_index,"ammo_556nato")
give_item(admin_index,"ammo_556nato")
give_item(admin_index,"ammo_556nato")
return PLUGIN_CONTINUE
}
public vipshe(admin_index)
{
new adminname[32]
get_user_name(admin_index,adminname,32)
 
give_item(admin_index,"weapon_hegrenade")
give_item(admin_index,"ammo_hegrenade")
 
return PLUGIN_CONTINUE
}
public vipsfb(admin_index)
{
new adminname[32]
get_user_name(admin_index,adminname,32)
 
give_item(admin_index,"weapon_flashbang")
give_item(admin_index,"ammo_flashbang")
give_item(admin_index,"ammo_flashbang")
 
return PLUGIN_CONTINUE
}
public vipssg(admin_index)
{
new adminname[32]
get_user_name(admin_index,adminname,32)
 
give_item(admin_index,"weapon_smokegrenade")
give_item(admin_index,"ammo_smokegrenade")
 
return PLUGIN_CONTINUE
}
I try very more codes but with all off my try's i have got always erorrs
I Spend very much time on this plugin Please someone help me to code this plugin.
I want recode this plugin that only users with ADMIN_LEVEL_H can use this menu.
I hope you get my wish
Good luck and thanks for help.
andrius2006x is offline
 


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 16:15.


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