Raised This Month: $ Target: $400
 0% 

restric some commands


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ch3cker
Veteran Member
Join Date: Jun 2005
Location: Deutschland / Baden-Würt
Old 05-04-2006 , 10:45   restric some commands
Reply With Quote #1

hi guys
i want to restrict attack1, attack2, team_say, say and drop to this task:

Code:
public stopperson() {       remove_task(454500)     new nextmap[32]     get_cvar_string("amx_nextmap",nextmap,31)     if (read_data(1) == floatround(get_cvar_float("mp_roundtime") * 60.0))     {         set_hudmessage(255, 255, 0, -1.0, 0.08, 1, 6.0, 6.0, 1.0, 1.0, 17)         show_hudmessage(0,"Mapwechsel zu %s",nextmap)         client_cmd(0,"speak ^"loading environment on to your computer^"")         client_cmd(0,"+showscores")         server_cmd("sv_maxspeed 0.0")         server_cmd("mp_buytime 0.0")         set_task(5.0,"mapchange")         blind()     } }

but i dont know how to make this so can someone help me plz ??
__________________
SORRY 4 MY BAD ENGLISH
ch3cker is offline
SubStream
Veteran Member
Join Date: Aug 2005
Location: USA
Old 05-10-2006 , 09:14  
Reply With Quote #2

I wrote a plugin that does this a few weeks ago so you don't need to write one, but since ur drop function is different you can probably learn whatever you need to from looking at my code.

Restrict Commands has 41 commands you can block using an in-game menu including the ones you want restricted. Just give credit for stuff you use from my plugin which you did not write or things which helped you learn how to do something. Happy fragging
SubStream is offline
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 05:02.


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