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

Need help with code


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SpikeRed
Junior Member
Join Date: Nov 2019
Old 11-29-2019 , 12:33   Need help with code
Reply With Quote #1

Hello i input on my server a plugin with levels and the plugin add to my chat prefix and modifing the say now i cant gag players on server here is code

What i need to do here to can use again gag comand ?

Quote:
public fw_SayCmd(id) {
if(bPrefix) {
new szName[33], szArgs[192], szPrefix[16];
get_user_name(id, szName, charsmax(szName));
read_args(szArgs, charsmax(szArgs));
remove_quotes(szArgs);
if(!is_user_alive(id))
szPrefix = "*DEAD* ";
ColorChat(0, TEAM_COLOR, "^1%s^4[ Level: %i ]^3 %s^1 : %s", szPrefix, iLevels[id], szName, szArgs);
return PLUGIN_HANDLED;
}
return PLUGIN_CONTINUE;
}

Here is my full sma: https://justpaste.it/4myxb

Last edited by SpikeRed; 11-29-2019 at 12:35.
SpikeRed is offline
LearninG
Senior Member
Join Date: Apr 2019
Location: Iran
Old 11-29-2019 , 13:07   Re: Need help with code
Reply With Quote #2

you should check if user is not gagged before printing chat , you need to register a simple native in gag plugin and return the value of array ( example : g_is_ggaged[id] ) to check if user is gagged in chat prefix plugin.
LearninG is offline
SpikeRed
Junior Member
Join Date: Nov 2019
Old 11-29-2019 , 13:09   Re: Need help with code
Reply With Quote #3

Quote:
Originally Posted by LearninG View Post
you should check if user is not gagged before printing chat , you need to register a simple native in gag plugin and return the value of array ( example : g_is_ggaged[id] ) to check if user is gagged in chat prefix plugin.
can u do this i dont know how to do it.
https://forums.alliedmods.net/showthread.php?t=101937 im using this gag plugin

Last edited by SpikeRed; 11-29-2019 at 13:11.
SpikeRed is offline
SpikeRed
Junior Member
Join Date: Nov 2019
Old 11-29-2019 , 20:27   Re: Need help with code
Reply With Quote #4

Quote:
Originally Posted by LearninG View Post
you should check if user is not gagged before printing chat , you need to register a simple native in gag plugin and return the value of array ( example : g_is_ggaged[id] ) to check if user is gagged in chat prefix plugin.
My friend help me thank you for suggestion.
https://forums.alliedmods.net/showth...00#post2675000
SpikeRed 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 03:03.


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