Raised This Month: $51 Target: $400
 12% 

[HELP] Catch camera mode text


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Depresie
Veteran Member
Join Date: Nov 2013
Old 11-18-2017 , 16:35   [HELP] Catch camera mode text
Reply With Quote #1

Any idea how can i catch camera mode messages in TextMsg?
PHP Code:
register_message(get_user_msgid("TextMsg"), "hook_message_event_text"
I want to catch the following and block them
Code:
"Free Look"
"First Person"
Been trying, doesn't work
PHP Code:
public hook_message_event_text(iMessageiDestiPlayer)
{
    new 
szMessage[32]
    
get_msg_arg_string(2szMessagecharsmax(szMessage))

    if(
equal(szMessage"#Free_Look") || equal(szMessage"#First Person"))
    {
        return 
PLUGIN_HANDLED
    
}
    return 
PLUGIN_CONTINUE

__________________

Last edited by Depresie; 11-18-2017 at 16:35.
Depresie is offline
bakir123
Senior Member
Join Date: Jan 2015
Location: Palestine, Hebron
Old 11-19-2017 , 13:40   Re: [HELP] Catch camera mode text
Reply With Quote #2

try this


PHP Code:
if(equal(szMessage"#Spec_Mode1") || equal(szMessage"#Spec_Mode2")) 
bakir123 is offline
Send a message via Skype™ to bakir123
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 07:55.


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