AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   model change (https://forums.alliedmods.net/showthread.php?t=24501)

AAleaderNik 02-24-2006 16:47

model change
 
to have my server make everyone see this model like on the uwc3 mod when you turn into that one monster thing that jumps
what am i missing or what wrong here

#include <amxmodx>
#include <engine>
#include <amxmisc>

public plugin_init()
{
register_plugin("Model basis","1.0","AANik")
register_event("Resethud","setplayermodel","b e")
register_cvar("custmodel_on", "1")
return PLUGIN_CONTINUE
}

public plugin_precache()
{
precache_model("models/player/arctic/arctic.mdl")
return PLUGIN_CONTINUE
}

public switchmodel(id)
{
if(get_cvar_num("custmodel_on") == 1) (

switchmodel(id)
)
}

Twilight Suzuka 02-24-2006 19:03

Repost using more descriptive title and tags.


All times are GMT -4. The time now is 20:26.

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