Quote:
Originally Posted by TnTSCS
|
yes it has
make sure to run the
smac_client.smx aswell
____________________
public Event_PlayerChangeName(Handle:event, const String:name[], bool:dontBroadcast)
{
new userid = GetEventInt(event, "userid");
new client = GetClientOfUserId(userid);
if (IS_CLIENT(client) && IsClientInGame(client) && !IsFakeClient(client))
{
// Expire this detection after 10 seconds.
g_iNameChanges[client]++;
CreateTimer(10.0, Timer_DecreaseCount, userid);
if (g_iNameChanges[client] >= 5)
{
if (SMAC_CheatDetected(client) == Plugin_Continue)
{
SMAC_LogAction(client, "was kicked for name change spam.");
KickClient(client, "%t", "SMAC_CommandSpamKick");
__________________