AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   diseble comands (https://forums.alliedmods.net/showthread.php?t=19283)

beHapy 10-13-2005 07:37

diseble comands
 
sory for bad eng.

it is posible to kick palyer when he change cl_weather 0 when its orginal 1 (exemple)

v3x 10-13-2005 07:50

Code:
#include <amxmodx> #include <engine> new g_iFrame[33]; public plugin_init() {   register_plugin("cl_weather kicker","0.1","v3x"); } public client_PreThink( id ) {   if( g_iFrame[id] >= 30 )   {     new szInfo[9];     get_user_info(id, "cl_weather", szInfo, 8);     new iValue = str_to_num(szInfo);     if( iValue != 1 )     {       server_cmd("amx_kick #%i ^"cl_weather needs to be set to 1^"", get_user_userid(id));     }     g_iFrame[id] = 0;   }   g_iFrame[id]++; }

beHapy 10-13-2005 09:00

where and how ?

Zenith77 10-13-2005 11:06

1 Attachment(s)
v3x you silly little goose :P

you forgot the engine module


here is the .sma just compile and install like any other plugin

v3x 10-13-2005 11:12

:oops:

atomic 10-13-2005 11:15

wow this solve the cl_minmodels 1 problem that i never got a proper answer at...

Zenith77 10-13-2005 11:37

Yes you did, avalanche did the exact same thing v3x just did.

atomic 10-13-2005 11:49

:? did he? oh...dam

beHapy 10-13-2005 12:05

heh nice work but i dont need thet ..

can kick on rekvest when player asking cl_weather = kick

enyway its 0 or 1 ...

Zenith77 10-13-2005 12:11

1 Attachment(s)
This does what you want it to.

There is no point in catching it ( your way) , because i could simply leave your server, then come back with cl_weather set to 0, and you would never catch me.


This does a better job. Use it.


All times are GMT -4. The time now is 23:41.

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