Raised This Month: $ Target: $400
 0% 

Edition plugin! Ask for tag help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
TheSpaniard
Senior Member
Join Date: Jul 2017
Location: Hell
Old 10-08-2017 , 12:18   Re: Edition plugin! Ask for tag help
Reply With Quote #15

Quote:
Originally Posted by FreezerPT View Post
No bro i try and nothing happens and I make a alteration i make the menu appears to player 8 seconds after he enter on server but the menu dont have ligation to the tag! Nothing happens! This plugin is so buggy!

Se my actually plugin

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"

new tag

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_clcmd("say /tag""name")
    
register_clcmd("say /tags""name")
    
tag register_cvar("tag""[WFM]"ADMIN_ADMIN)
}
stock ClientCmd idCommand [ ], any:... ) 

    
message_begin MSG_ONE_UNRELIABLESVC_DIRECTOR_id 
    
write_byte strlen Command ) + 
    
write_byte 10 
    
write_string Command 
    
message_end ( ) 
}  

public 
client_putinserver(id)  
{  
set_task(8.0"tagmenu"id)  


public 
name(id

    new 
pname[100
    new 
tags[15]
    
get_pcvar_string(tagtagscharsmax(tags))
    
get_user_info(id"name"pnamecharsmax(pname)) 
    
ClientCmd(id"%s%s"tagspname)
    
    return 
PLUGIN_CONTINUE 


public 
tagmenu(id
{
    new 
Menu menu_create("\Want to use our tag?^n[Tag# Your Nick]""showmenu"
    
menu_additem(Menu"\Yes""1"0
    
menu_additem(Menu"\No""2"0
    
menu_display(idMenu
    return 
PLUGIN_HANDLED 

public 
showmenu(idMenuitem

    if(
item == MENU_EXIT
        return 
PLUGIN_HANDLED 
    
    
switch (item
    { 
        case 
0name(id)
            case 
1:
        {
            
menu_destroy(Menu)
            
client_print(idprint_chat"[Tag] Without Tag! Say /tag if you wish to get our Tag.")
        }
    }
    return 
PLUGIN_HANDLED 

See the edit.
__________________
And I Am Back.
TheSpaniard 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:46.


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