AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Need help with code (https://forums.alliedmods.net/showthread.php?t=319980)

SpikeRed 11-29-2019 12:33

Need help with code
 
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

LearninG 11-29-2019 13:07

Re: Need help with code
 
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.

SpikeRed 11-29-2019 13:09

Re: Need help with code
 
Quote:

Originally Posted by LearninG (Post 2674951)
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

SpikeRed 11-29-2019 20:27

Re: Need help with code
 
Quote:

Originally Posted by LearninG (Post 2674951)
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


All times are GMT -4. The time now is 02:44.

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