AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   minmodel plugin (https://forums.alliedmods.net/showthread.php?t=11600)

XxKpAznGuyxX 03-24-2005 05:51

minmodel plugin
 
ok I want to make a plugins that whenever players come to my server (which has chicken mod rebirth) I want then to have cl_minmodels disabled, This is what I have so far by copying knekter Fix Client V0.2

Code:
#include <amxmodx> public plugin_init() {     register_plugin("minmodels", "0.1", "XxKpAznGuYxX")     register_cvar("sv_fix", "1")     register_cvar("sv_minmodels", "0") } public client_putinserver(id) {     if(get_cvar_num("sv_fix")) {         new minmodels         minmodels = get_cvar_num("sv_minmodels")         console_cmd(id, "cl_minmodels %i", minmodels)     } }

I tried it on myself but it doesn't work maybe its because I have immunity? but if thats not it I please help me

XxKpAznGuyxX 03-24-2005 13:33

anyone know? I'm not good at scripting so Please Help me :cry: :cry: :cry: :cry:

XxAvalanchexX 03-24-2005 13:34

The only thing I could suggest is to try changing console_cmd to client_cmd, although I don't know much about the difference.


All times are GMT -4. The time now is 09:54.

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