Raised This Month: $ Target: $400
 0% 

Can't find string in buffer


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
eyal282
Veteran Member
Join Date: Aug 2011
Old 07-15-2017 , 06:44   Can't find string in buffer
Reply With Quote #1

PHP Code:

/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "FuckTheSchool ( Eyal282 )"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)

    
register_message(get_user_msgid("SayText"), "message_SayText");
}

public 
message_SayText(msgidsomethingid)
{    
    
// 1 = id, 2 = Contains Terrorist or Spectator if team chat, 3 = message sent.
    
new Message[256], PerhapsTeam[100];
    
    
get_msg_arg_string(2PerhapsTeam99);
    
get_msg_arg_string(4Messagecharsmax(Message));

    
    new 
bool:TeamChat;
    
    if(
containi(PerhapsTeam"Terr") != -1)
    {
        
TeamChat true;
        
        
client_print(idprint_chat"BOIII");
    }
    
    else
        
client_print(idprint_chatPerhapsTeam);

Output:

Code:
(Terrorist)  :

Last edited by eyal282; 07-15-2017 at 06:44.
eyal282 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 23:11.


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