Raised This Month: $32 Target: $400
 8% 

Edition plugin! Ask for tag help


Post New Thread Reply   
 
Thread Tools Display Modes
TheSpaniard
Senior Member
Join Date: Jul 2017
Location: Hell
Old 10-08-2017 , 11:59   Re: Edition plugin! Ask for tag help
Reply With Quote #11

Quote:
Originally Posted by FreezerPT View Post
Nop bro, i compile and whe i enter on the server nothing appens!
You have to enter "/tag" (without quotes) in say to access the menu.
Fixed some bugs too use the main code.
__________________
And I Am Back.

Last edited by TheSpaniard; 10-08-2017 at 12:13.
TheSpaniard is offline
FreezerPT
Senior Member
Join Date: Mar 2017
Location: 127.0.0.1
Old 10-08-2017 , 12:14   Re: Edition plugin! Ask for tag help
Reply With Quote #12

Quote:
Originally Posted by TheSpaniard View Post
You have to enter "/tag" (without quotes) in say to access the menu.
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 


Last edited by FreezerPT; 10-08-2017 at 12:15.
FreezerPT is offline
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 #13

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
FreezerPT
Senior Member
Join Date: Mar 2017
Location: 127.0.0.1
Old 10-08-2017 , 12:20   Re: Edition plugin! Ask for tag help
Reply With Quote #14

Quote:
Originally Posted by TheSpaniard View Post
See the edit.
Pls poste a new code! That Works

Last edited by FreezerPT; 10-08-2017 at 12:20.
FreezerPT is offline
Ayman Khaled
Senior Member
Join Date: Mar 2017
Location: Palestine
Old 10-08-2017 , 13:06   Re: Edition plugin! Ask for tag help
Reply With Quote #15

Quote:
Originally Posted by TheSpaniard View Post
See the edit.
what is this o.O ?
tag = register_cvar("tag", "[WFM]", ADMIN_ADMIN)
plus you can use client_cmd without this stock.
__________________
Ayman Khaled is offline
TheSpaniard
Senior Member
Join Date: Jul 2017
Location: Hell
Old 10-08-2017 , 13:11   Re: Edition plugin! Ask for tag help
Reply With Quote #16

Quote:
Originally Posted by Ayman Khaled View Post
what is this o.O ?
tag = register_cvar("tag", "[WFM]", ADMIN_ADMIN)
plus you can use client_cmd without this stock.
I was testing it but client_cmd doesn't work steam added a feature to block it. Can you spot the mistake in my code cause i tried many times but this doesnt work.
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

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 
plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_clcmd("say /tag""tagmenu")
    
register_clcmd("say /tags""tagmenu")
    
tag register_cvar("tag""[WFM]")
}
public 
name(id

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


public 
tagmenu(id
{
    new 
Menu menu_create("\rWant to use our tag?^n[Tag Your Nick]""showmenu"
    
menu_additem(Menu"\wYes""1"0
    
menu_additem(Menu"\wNo""2"0
    
menu_display(idMenu
    return 
PLUGIN_CONTINUE

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 

This Changes the name to s
__________________
And I Am Back.

Last edited by TheSpaniard; 10-08-2017 at 13:12.
TheSpaniard is offline
FreezerPT
Senior Member
Join Date: Mar 2017
Location: 127.0.0.1
Old 10-08-2017 , 14:10   Re: Edition plugin! Ask for tag help
Reply With Quote #17

Quote:
Originally Posted by TheSpaniard View Post
I was testing it but client_cmd doesn't work steam added a feature to block it. Can you spot the mistake in my code cause i tried many times but this doesnt work.
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

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 
plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_clcmd("say /tag""tagmenu")
    
register_clcmd("say /tags""tagmenu")
    
tag register_cvar("tag""[WFM]")
}
public 
name(id

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


public 
tagmenu(id
{
    new 
Menu menu_create("\rWant to use our tag?^n[Tag Your Nick]""showmenu"
    
menu_additem(Menu"\wYes""1"0
    
menu_additem(Menu"\wNo""2"0
    
menu_display(idMenu
    return 
PLUGIN_CONTINUE

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 

This Changes the name to s
This code is equal at the first! Bro this do anything! I want a code that change the Name, and like this exemple! "Do you want you our TAG" Player say: "YES" Now his name is TAG Player, and whe his go to another server, for other community his name go with tha like TAG Player
__________________
FreezerPT is offline
FreezerPT
Senior Member
Join Date: Mar 2017
Location: 127.0.0.1
Old 10-08-2017 , 14:10   Re: Edition plugin! Ask for tag help
Reply With Quote #18

Quote:
Originally Posted by Ayman Khaled View Post
what is this o.O ?
tag = register_cvar("tag", "[WFM]", ADMIN_ADMIN)
plus you can use client_cmd without this stock.
This code is equal at the first! Bro this do anything! I want a code that change the Name, and like this exemple! "Do you want you our TAG" Player say: "YES" Now his name is TAG Player, and whe his go to another server, for other community his name go with tha like TAG Player
__________________
FreezerPT is offline
Ayman Khaled
Senior Member
Join Date: Mar 2017
Location: Palestine
Old 10-08-2017 , 14:32   Re: Edition plugin! Ask for tag help
Reply With Quote #19

Write normally, we are not blind.
You need just to change his name , and still as it was after he disconnect ?
__________________
Ayman Khaled is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 10-08-2017 , 14:37   Re: Edition plugin! Ask for tag help
Reply With Quote #20

Have you tried set user info name ? Also using client cmd to change the name works fine
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 10-08-2017 at 14:37.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
Reply


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 19:58.


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