very odd fix required
This commit is contained in:
parent
275245d6ab
commit
874bc4e7ca
@ -1855,7 +1855,7 @@ public Action Command_AdminSpray(int client, int argc)
|
||||
ForceSpray(client, iTargets[i], false);
|
||||
}
|
||||
|
||||
PrintToChat(client, "\x01\x04[SprayManager]\x01 Sprayed \x04%s\x01's spray(s).", sTargetName);
|
||||
PrintToChat(client, "\x01\x04[SprayManager]\x01 Sprayed \x04%s\x01 spray(s).", sTargetName);
|
||||
|
||||
return Plugin_Handled;
|
||||
}
|
||||
@ -1870,33 +1870,33 @@ public Action Command_AdminSpray(int client, int argc)
|
||||
|
||||
public Action Command_SprayBan(int client, int argc)
|
||||
{
|
||||
if (argc < 2)
|
||||
{
|
||||
ReplyToCommand(client, "[SprayManager] Usage: sm_sprayban <target> <time> <reason:optional>");
|
||||
return Plugin_Handled;
|
||||
}
|
||||
if (argc < 2)
|
||||
{
|
||||
ReplyToCommand(client, "[SprayManager] Usage: sm_sprayban <target> <time> <reason:optional>");
|
||||
return Plugin_Handled;
|
||||
}
|
||||
|
||||
int iTarget;
|
||||
char sTarget[32];
|
||||
char sLength[32];
|
||||
char sReason[32];
|
||||
int iTarget;
|
||||
char sTarget[32];
|
||||
char sLength[32];
|
||||
char sReason[32];
|
||||
|
||||
GetCmdArg(1, sTarget, sizeof(sTarget));
|
||||
GetCmdArg(2, sLength, sizeof(sLength));
|
||||
GetCmdArg(1, sTarget, sizeof(sTarget));
|
||||
GetCmdArg(2, sLength, sizeof(sLength));
|
||||
|
||||
if (argc > 2)
|
||||
GetCmdArg(3, sReason, sizeof(sReason));
|
||||
if (argc > 2)
|
||||
GetCmdArg(3, sReason, sizeof(sReason));
|
||||
|
||||
if ((iTarget = FindTarget(client, sTarget)) <= 0)
|
||||
return Plugin_Handled;
|
||||
if ((iTarget = FindTarget(client, sTarget)) <= 0)
|
||||
return Plugin_Handled;
|
||||
|
||||
if (!SprayBanClient(client, iTarget, StringToInt(sLength), sReason))
|
||||
return Plugin_Handled;
|
||||
if (!SprayBanClient(client, iTarget, StringToInt(sLength), sReason))
|
||||
return Plugin_Handled;
|
||||
|
||||
ShowActivity2(client, "\x01\x04[SprayManager] ", "\x01Spray banned \x04%N", iTarget);
|
||||
LogAction(client, iTarget, "\"%L\" spray banned \"%L\" (Hash: \"%s\")", client, iTarget, g_sSprayHash[iTarget]);
|
||||
ShowActivity2(client, "\x01\x04[SprayManager] ", "\x01Spray banned \x04%N", iTarget);
|
||||
LogAction(client, iTarget, "\"%L\" spray banned \"%L\" (Hash: \"%s\")", client, iTarget, g_sSprayHash[iTarget]);
|
||||
|
||||
return Plugin_Handled;
|
||||
return Plugin_Handled;
|
||||
}
|
||||
|
||||
public Action Command_SprayUnban(int client, int argc)
|
||||
|
Loading…
Reference in New Issue
Block a user