Raised This Month: $ Target: $400
 0% 

Limiting spectator modes


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
karar
Junior Member
Join Date: Dec 2007
Old 12-19-2007 , 20:09   Limiting spectator modes
Reply With Quote #1

I want to limite spectator mode on my server to:

- Firsts person + Team View only
- Locked Chase cam + Team only

and restrict rest of views.. i tried to make my own plugin for this.. using this:

Code:
#include <amxmod>

public plugin_init() {
//register_clcmd("spec_mode 1", "cmdBlock") //Locked Chase cam

//Free Chase cam
register_clcmd("spec_mode 2", "cmdBlock")

//Free Look
register_clcmd("spec_mode 3", "cmdBlock")

//register_clcmd("spec_mode 4", "cmdBlock") //First Person

//Free overview
register_clcmd("spec_mode 5", "cmdBlock")

//Chase overview
register_clcmd("spec_mode 6", "cmdBlock")
}
public cmdBlock(id)
{
return PLUGIN_HANDLED;
}
but this doesnt work... if i set commands like say etc.. they are very well blocked using this code, but using spec_mode is not blocked. i can still give this command on console to change mode or even use spectator menu or spacebar to change views.

any help plz?
karar is offline
 



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 11:06.


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