o.o I really don't think you want to put that flag; thought I don't think it's dangerous...
The description in the api@GetCommandFlags makes me believe you can really put FCVAR_* flags there. Any reason in particular ?
Also, you might want to remove FCVAR_REPLICATED of your version ConVar, as it can produce error in the client's console (no real need to update; but I'd change that if you ever update your plugin again; for this and your other smoke plugin).
Beside that plugin is simple and seems good, approved.
Red
I've tried to implement your advices, but I don't know C++ and I'm not sure, if I did everything right.
That's, what I did:
...this is the part of Spectator Switch, that doesn't work for me for alive players on my server (this part will be probably obsolete, if my below request will be possible):
Spoiler
Code:
public Action:Move(target, args){
if (!CheckClient(target)) return Plugin_Handled;
//move the player to the spectator
if (GetClientTeam(target) != 1)
{
ChangeClientTeam(target, 1);
ForcePlayerSuicide(target);
}
return Plugin_Handled;
}
My little request is to make this plugin using Command_Spec (referring to client's console spectate command probably?) the same way this plugin does:
Hmm i was wondering if you had to enter the fullname or just parts of it cause there are times it wont actually register the name for whatever reason. It would be really helpful
L 04/20/2015 - 17:14:19: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 04/20/2015 - 17:14:19: [SM] Native "ReplyToCommand" reported: Language phrase "No matching client" not found
L 04/20/2015 - 17:14:19: [SM] Displaying call stack trace for plugin "spectatorswitch.smx":
L 04/20/2015 - 17:14:19: [SM] [0] Line 103, G:\Dropbox\Gameserver\SM Scripting\include\commandfilters.inc::ReplyTo TargetError()
L 04/20/2015 - 17:14:19: [SM] [1] Line 198, G:\Dropbox\Gameserver\SM Scripting\include\helpers.inc::FindTarget()
L 04/20/2015 - 17:14:19: [SM] [2] Line 95, G:\Dropbox\Gameserver\SM Scripting\spectatorswitch.sp::Command_Move()
I get the same errors, are you experiencing crashes ?
And you should also remove FCVAR_REPLICATED, as it can produce errors in client console (when trying to change the convar value, as it isn't really replicated in client).
Could not find steamerrorreporter binary. Any minidumps will be uploaded in-processWatchDog! Server took too long to process (probably infinite loop).
Host_Error: WatchdogHandler called - server exiting.
L 10/17/2015 - 23:52:26: Engine error: Host_Error: WatchdogHandler called - server exiting.
This is the error i keep receiving when i run the plugin