Raised This Month: $ Target: $400
 0% 

Changing szRejectReason in FM_ClientConnect


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
PRoSToTeM@
Veteran Member
Join Date: Jan 2010
Location: Russia, Ivanovo
Old 07-01-2014 , 12:17   Changing szRejectReason in FM_ClientConnect
Reply With Quote #1

I'm trying to change szRejectReason ClientConnect, but in fact it does not change. How I can change it?
PHP Code:
#include <amxmodx>
#include <fakemeta>

#pragma ctrlchar    '\'

public plugin_init() {
    
register_forward(FM_ClientConnect"ClientConnect_Pre"false);
}

public 
ClientConnect_Pre(const iClient, const pszName[], const pszAddress[], szRejectReason[128]) {
    
szRejectReason[0] = 'A';
    
szRejectReason[1] = 'c';
    
szRejectReason[2] = 'c';
    
szRejectReason[3] = 'e';
    
szRejectReason[4] = 's';
    
szRejectReason[5] = 's';
    
szRejectReason[6] = ' ';
    
szRejectReason[7] = 'd';
    
szRejectReason[8] = 'e';
    
szRejectReason[9] = 'n';
    
szRejectReason[10] = 'i';
    
szRejectReason[11] = 'e';
    
szRejectReason[12] = 'd';
    
szRejectReason[13] = '\0';
    
    
forward_return(FMV_CELLtrue);
    
    return 
FMRES_SUPERCEDE;

__________________
PRoSToTeM@ is offline
Send a message via ICQ to PRoSToTeM@ Send a message via Skype™ to PRoSToTeM@
 



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 21:11.


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