Raised This Month: $ Target: $400
 0% 

Change letters in a SayText hook


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
shavit
AlliedModders Donor
Join Date: Dec 2011
Location: Israel
Old 08-31-2012 , 18:45   Change letters in a SayText hook
Reply With Quote #1

Hey there!
I made an SayHook:
PHP Code:
public SayHook()
{
    new 
client read_data(1);
    new 
message[128];
    
read_data(4message128);

    if(
Cool[client])
    {
        
    }

Now I need to change some letters. [Lets say that I want to change any A in the hook to B]
I have no idea how it works on AMX Mod X. Only in SourceMod.
Thanks!

Edit: Found myself
PHP Code:
replace(message128"a""b"); 
__________________
retired

Last edited by shavit; 08-31-2012 at 18:47.
shavit 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 08:12.


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