AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   restric some commands (https://forums.alliedmods.net/showthread.php?t=27985)

ch3cker 05-04-2006 10:45

restric some commands
 
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 ??

SubStream 05-10-2006 09:14

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


All times are GMT -4. The time now is 05:02.

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