AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Anyone Could Help? (https://forums.alliedmods.net/showthread.php?t=208964)

oxygen935 02-19-2013 13:48

Anyone Could Help?
 
Hello everyone,

I would like if it's possible to change the player models BUT without cstrike.inc(with engine) but could you help me with this??(i mean what are the commands etc... i don't have so experience to read and understand the include)

Also i'd like to learn a way to change the weapon models...

All of them i'd like to change them NOT via another plugin(e.g. Player Models or GHW Weapons Replacement) because they causes reliable channel overflow.... and kicks everyone in my server...

Thanks in advance,
Oxygen

Kard1nal 02-19-2013 14:21

Re: Anyone Could Help?
 
Player model

PHP Code:

client_cmd(index"model ModelName"


oxygen935 02-19-2013 14:28

Re: Anyone Could Help?
 
Quote:

Originally Posted by Kard1nal (Post 1897747)
Player model

PHP Code:

client_cmd(index"model ModelName"


Error: Undefined symbol "index" on line 396
plz help...

YamiKaitou 02-19-2013 14:30

Re: Anyone Could Help?
 
You need to adapt it to your code. index is the client's id

oxygen935 02-19-2013 14:31

Re: Anyone Could Help?
 
how can i adapted?
P.S.:i'm learning man!

YamiKaitou 02-19-2013 14:33

Re: Anyone Could Help?
 
Where is the rest of your code?

oxygen935 02-19-2013 14:39

Re: Anyone Could Help?
 
PHP Code:

#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>

#define PLUGIN "Vip Model"
#define VERSION "1.0"
#define AUTHOR "OxYgEn"

#define VIP_FLAG ADMIN_LEVEL_H


public plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
RegisterHam(Ham_Spawn"player""player_spawn"1)
}

public 
plugin_precache
{
    
precache_model("models/player/gp_vip/gp_vip.mdl")
}

public 
player_spawn(id)
{
    if(
get_user_flags(id) & VIP_FLAG)
    {
        
client_cmd(index"model gp_vip"
    }



YamiKaitou 02-19-2013 14:39

Re: Anyone Could Help?
 
Use id instead of index

oxygen935 02-19-2013 14:40

Re: Anyone Could Help?
 
okayyy thanks a lot, any help with change the model of weapons?

YamiKaitou 02-19-2013 14:42

Re: Anyone Could Help?
 
Search, there are plugins that do it already and you can learn from them


All times are GMT -4. The time now is 21:38.

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