Raised This Month: $ Target: $400
 0% 

Ta giving error. Why?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
NovinhoFDR
New Member
Join Date: Dec 2014
Old 06-09-2015 , 22:16   Ta giving error. Why?
Reply With Quote #1

Code:
#include <amxmodx>
#include <fakemeta>
#include <cstrike>
#include <amxmisc>

#define PLUGIN_NAME "Mix Menu"
#define PLUGIN_VERSION "2.00"
#define PLUGIN_AUTHOR "Noviinhoo"

public plugin_init()
{
register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR)
register_clcmd( "say /skin","Menu")
register_clcmd( "say_team /skin","Menu")
}

public Menu(id)
{
new menu = menu_create("\w[Menu Desativar Skin's By \rNoviinhoo]:", "Menu1_Funcoes")

menu_additem(menu, "\wATIVAR", "1", ADMIN_LEVEL_H)
menu_additem(menu, "\yDESATIVAR", "2", ADMIN_LEVEL_H)

menu_setprop(menu, MPROP_EXIT, MEXIT_ALL)

menu_display(id, menu, 0)
}
public Menu1_Funcoes(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,5, iName, 63, callback);

new key = str_to_num(data)

switch(key)
{
case 1:{
server_cmd ("cl_minmodels 1"); 
client_print(id, print_chat, "[SKIN] just activate admin skins! By: [N]oviinhoo[O]")

menu_destroy(menu)
}
case 2:{
client_print(id, print_chat, "[SKIN] just enable admin skins! By: [N]oviinhoo[O]")
server_cmd ("cl_minmodels 0");
}
return PLUGIN_HANDLED
If someone able to find the error, put the correct plugin for me here. Thank you!
__________________
[N]oviinhoo[O] @ThunderGames
NovinhoFDR is offline
 



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 20:06.


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