Raised This Month: $ Target: $400
 0% 

Anyone Could Help?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
oxygen935
Veteran Member
Join Date: Jun 2012
Location: Athens, Greece
Old 02-19-2013 , 13:48   Anyone Could Help?
Reply With Quote #1

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

Last edited by oxygen935; 02-19-2013 at 13:58.
oxygen935 is offline
Send a message via Skype™ to oxygen935
Kard1nal
Senior Member
Join Date: Dec 2012
Location: Russia
Old 02-19-2013 , 14:21   Re: Anyone Could Help?
Reply With Quote #2

Player model

PHP Code:
client_cmd(index"model ModelName"
__________________
Sorry for my English, I'm Russian.
Kard1nal is offline
Send a message via Skype™ to Kard1nal
oxygen935
Veteran Member
Join Date: Jun 2012
Location: Athens, Greece
Old 02-19-2013 , 14:28   Re: Anyone Could Help?
Reply With Quote #3

Quote:
Originally Posted by Kard1nal View Post
Player model

PHP Code:
client_cmd(index"model ModelName"
Error: Undefined symbol "index" on line 396
plz help...
oxygen935 is offline
Send a message via Skype™ to oxygen935
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 02-19-2013 , 14:30   Re: Anyone Could Help?
Reply With Quote #4

You need to adapt it to your code. index is the client's id
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
oxygen935
Veteran Member
Join Date: Jun 2012
Location: Athens, Greece
Old 02-19-2013 , 14:31   Re: Anyone Could Help?
Reply With Quote #5

how can i adapted?
P.S.:i'm learning man!

Last edited by oxygen935; 02-19-2013 at 14:32. Reason: ps added
oxygen935 is offline
Send a message via Skype™ to oxygen935
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 02-19-2013 , 14:33   Re: Anyone Could Help?
Reply With Quote #6

Where is the rest of your code?
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
oxygen935
Veteran Member
Join Date: Jun 2012
Location: Athens, Greece
Old 02-19-2013 , 14:39   Re: Anyone Could Help?
Reply With Quote #7

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"
    }

oxygen935 is offline
Send a message via Skype™ to oxygen935
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 02-19-2013 , 14:39   Re: Anyone Could Help?
Reply With Quote #8

Use id instead of index
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
oxygen935
Veteran Member
Join Date: Jun 2012
Location: Athens, Greece
Old 02-19-2013 , 14:40   Re: Anyone Could Help?
Reply With Quote #9

okayyy thanks a lot, any help with change the model of weapons?
oxygen935 is offline
Send a message via Skype™ to oxygen935
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 02-19-2013 , 14:42   Re: Anyone Could Help?
Reply With Quote #10

Search, there are plugins that do it already and you can learn from them
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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