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

[ANY] Spectator Switch


Post New Thread Reply   
 
Thread Tools Display Modes
GrO
Veteran Member
Join Date: Jun 2010
Location: Poland
Old 06-11-2015 , 20:42   Re: [ANY] Spectator Switch
Reply With Quote #11

Quote:
Originally Posted by RedSword View Post
Nuooooooooooooooooooooooooo

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:

Spoiler


The plugin is moving to spec properly, but it isn't suiciding the client, thus the rounds in CSS may be exploited by some players.
This is the issue:

https://forums.alliedmods.net/showth...10#post1801810

...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


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:

https://forums.alliedmods.net/showth...=79904?t=79904

...a part of it's code

Spoiler


Can anyone help fixing it?

Last edited by GrO; 06-11-2015 at 20:49. Reason: ...forgot to add my changes.
GrO is offline
Moezen
Junior Member
Join Date: Feb 2015
Old 10-01-2015 , 11:35   Re: [ANY] Spectator Switch
Reply With Quote #12

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
Moezen is offline
Moezen
Junior Member
Join Date: Feb 2015
Old 10-03-2015 , 11:25   Re: [ANY] Spectator Switch
Reply With Quote #13

Quote:
Originally Posted by skinheadxtreme View Post
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 ?
Moezen is offline
RedSword
SourceMod Plugin Approver
Join Date: Mar 2006
Location: Quebec, Canada
Old 10-03-2015 , 18:18   Re: [ANY] Spectator Switch
Reply With Quote #14

@HSFighter, I missed that, you should add the following :

Code:
LoadTranslations("common.phrases");
@ OnPluginStart ; see the comment

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).

Red
__________________
My plugins :
Red Maze
Afk Bomb
RAWR (per player/rounds Awp Restrict.)
Kill Assist
Be Medic

You can also Donate if you appreciate my work

Last edited by RedSword; 10-03-2015 at 18:21.
RedSword is offline
Moezen
Junior Member
Join Date: Feb 2015
Old 10-18-2015 , 04:13   Re: [ANY] Spectator Switch
Reply With Quote #15

Quote:
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
Moezen is offline
Bad Cold Man
Senior Member
Join Date: Apr 2014
Old 11-18-2015 , 07:20   Re: [ANY] Spectator Switch
Reply With Quote #16

It is possible to allow the command !afk only to terrorists (zombies)? For zombie server.
__________________
Bad Cold Man is offline
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Old 11-18-2015 , 07:46   Re: [ANY] Spectator Switch
Reply With Quote #17

Quote:
Originally Posted by Bad Cold Man View Post
It is possible to allow the command !afk only to terrorists (zombies)? For zombie server.
Of course and is very easy to do it. I will do it when I come to home

EDIT: he was more faster
__________________
Veteran Coder -> Activity channel
Coding on CS2 and taking paid and free jobs.

Contact: Steam, Telegram or discord ( franug ).

You like my work? +Rep in my steam profile comments or donate.


Last edited by Franc1sco; 11-18-2015 at 08:58.
Franc1sco is offline
Send a message via MSN to Franc1sco
Reply


Thread Tools
Display Modes

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 15:43.


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