Raised This Month: $ Target: $400
 0% 

Kick player message error


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
pentakill
Member
Join Date: Oct 2014
Old 07-25-2019 , 06:53   Kick player message error
Reply With Quote #1

PHP Code:
public _expulsar(id)
{
    new 
Tid g_iTarget[id]
    static 
szReason[1024]
    
read_args(szReasoncharsmax(szReason))
    
remove_quotes(szReason)
    
    
ColorChat(0GREY"^04[wS] ^01Player: ^04%s ^03kicked ^01by: ^04%s. ^01Reason: ^04%s^03."szName[Tid], szName[id], szReason)
    
    
format(szReasoncharsmax(szReason), "Kicked by %s^nReason: %s"szName[id], szReason)
    
server_cmd("kick #%d ^"%s^""get_user_userid(Tid), szReason)
    
    return 
PLUGIN_HANDLED

The mod nickname that appears when the player is kicked on the server is right, but on the client side when he is kicked the mod nickname is wrong all the time (hooks another player name)
I hook the name on server connect and info changed, and in all my other plugins it works fine

Last edited by pentakill; 07-25-2019 at 06:53.
pentakill is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 07-25-2019 , 07:18   Re: Kick player message error
Reply With Quote #2

Show how you're "hooking" the names.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
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 17:28.


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