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

Only Admin Plays


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Admin Commands       
S34Qu4K3
Veteran Member
Join Date: Jan 2010
Location: Galicia
Old 04-29-2010 , 10:36   Only Admin Plays
Reply With Quote #1

Only Admin Plays

:.Description.:
This (useless) plugin allows you to decide whether only admins can play or everyone can play

:.CVARS.:
amx_onlyadmin_plays (1//Enable the plugin; 0//Disables the plugin) Default: 1
amx_onlyadmin_plays_restrictmode" "1" (Restriction Mode 1: Kill; 2: Spectator; 3: Unassigned; 4: Kick; Default= 1)

:.Changelog.:

1.0-First Release
1.1-Restricmode
2.0- Code Optimization, now check is_user_alive and if the player have a team (Thanks ExolenT)
More Languages (Thanks claudiuhks)

:.Notes.:
Access level required for play: ADMIN_KICK

.:To Do:.
Set the access level through cvar (can someone help me?)

Attached Files
File Type: sma Get Plugin or Get Source (only_admin_plays.sma - 765 views - 2.0 KB)
File Type: txt onlyadminplays.txt (560 Bytes, 174 views)
__________________

- ASM2SMA: Experimental AMXX Assembly encoder

- Defuse Bar Fix

Quote:
Originally Posted by Arkshine
I DON'T WANT TO SEE NOOOOOOOOOOOOOOO AHHHHH. MY EYES ARE ALREADY HURT.

Last edited by S34Qu4K3; 05-01-2010 at 09:57.
S34Qu4K3 is offline
papyrus_kn
Senior Member
Join Date: Feb 2009
Location: Bulgaria
Old 04-29-2010 , 11:57   Re: Only Admin Plays
Reply With Quote #2

http://forums.alliedmods.net/showthread.php?t=121719

read all posts
__________________
papyrus_kn is offline
Send a message via Skype™ to papyrus_kn
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 04-29-2010 , 12:01   Re: Only Admin Plays
Reply With Quote #3

amx_mode 2 win
__________________
xPaw is offline
S34Qu4K3
Veteran Member
Join Date: Jan 2010
Location: Galicia
Old 04-29-2010 , 12:07   Re: Only Admin Plays
Reply With Quote #4

OMFG

New Version Uploaded
-Now yo can select the restriction mode
__________________

- ASM2SMA: Experimental AMXX Assembly encoder

- Defuse Bar Fix

Quote:
Originally Posted by Arkshine
I DON'T WANT TO SEE NOOOOOOOOOOOOOOO AHHHHH. MY EYES ARE ALREADY HURT.

Last edited by S34Qu4K3; 04-29-2010 at 12:16.
S34Qu4K3 is offline
kanatzu
Veteran Member
Join Date: Oct 2007
Location: Sweden
Old 04-29-2010 , 14:00   Re: Only Admin Plays
Reply With Quote #5

Quote:
Originally Posted by xPaw View Post
amx_mode 2 win
Haha
__________________




Quote:
Originally Posted by wrecked_ View Post
Stop saying words before I sodomize you with a cucumber.
kanatzu is offline
Send a message via MSN to kanatzu
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 04-29-2010 , 14:02   Re: Only Admin Plays
Reply With Quote #6

Code:
client_PreThink
Awesome.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
S34Qu4K3
Veteran Member
Join Date: Jan 2010
Location: Galicia
Old 04-29-2010 , 15:24   Re: Only Admin Plays
Reply With Quote #7

Quote:
Originally Posted by ConnorMcLeod View Post
Code:
client_PreThink
Awesome.
Why? At the first time I use Ham_Spawn, but I decide to use PreThink
__________________

- ASM2SMA: Experimental AMXX Assembly encoder

- Defuse Bar Fix

Quote:
Originally Posted by Arkshine
I DON'T WANT TO SEE NOOOOOOOOOOOOOOO AHHHHH. MY EYES ARE ALREADY HURT.

Last edited by S34Qu4K3; 04-29-2010 at 15:28.
S34Qu4K3 is offline
#8 SickneSS
BANNED
Join Date: Sep 2008
Location: Here
Old 04-29-2010 , 18:24   Re: Only Admin Plays
Reply With Quote #8

Quote:
Originally Posted by S34Qu4K3 View Post
This (useless) plugin ...


#8 SickneSS is offline
Send a message via MSN to #8 SickneSS Send a message via Skype™ to #8 SickneSS
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 04-29-2010 , 18:42   Re: Only Admin Plays
Reply With Quote #9

It's not even worth pointing out the dozens of errors you made.
You can already do this with amx_mode 2.
Yes, amx_mode 2 only kicks, but that's all that's necessary.

If you think your plugin could serve a purpose to a good amount of people, then ask how to fix it and I will point out (almost) everything wrong with it.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 04-29-2010 , 18:42   Re: Only Admin Plays
Reply With Quote #10

prethink is called hundred times per second...
Also, use amx_mode is enough.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Reply



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 04:34.


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