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

How to detect player changeteam or model?


Post New Thread Reply   
 
Thread Tools Display Modes
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 06-12-2023 , 10:13   Re: How to detect player changeteam or model?
Reply With Quote #11

Code:
#include amxmodx #define charsmin -1 new const filter[][] = {"jointeam", "joinclass", "model"} public client_command(client_index) {     if(is_user_connected(client_index))     {         new szArg[MAX_USER_INFO_LENGTH];         new szArgCmd[MAX_RESOURCE_PATH_LENGTH + MAX_RESOURCE_PATH_LENGTH], szArgCmd1[MAX_RESOURCE_PATH_LENGTH + MAX_RESOURCE_PATH_LENGTH];         read_args(szArg, charsmax(szArg));         read_argv(0,szArgCmd, charsmax(szArgCmd));         read_argv(1,szArgCmd1, charsmax(szArgCmd1));         for(new s;s < sizeof filter;s++)         if(containi(szArgCmd,filter[s]) != charsmin)         {             server_print "^n^n%n tried console command %s %s^n^n",client_index, szArgCmd, szArgCmd1             client_print 0, print_chat, "%n tried console command %s %s",client_index, szArgCmd, szArgCmd1             client_cmd 0, "spk ^"buttons/blip1.wav^""         }     }     return PLUGIN_CONTINUE; }
__________________

Last edited by DJEarthQuake; 06-19-2023 at 10:35.
DJEarthQuake is offline
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 19:13.


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