Raised This Month: $32 Target: $400
 8% 

Skin by name


Post New Thread Reply   
 
Thread Tools Display Modes
GaBy96
Member
Join Date: Oct 2012
Location: Spain
Old 01-10-2019 , 12:28   Re: Skin by name
Reply With Quote #11

Quote:
Originally Posted by vulcaNN View Post
Hi, do you want to plugin change player or weapon skin?
For player model.


Quote:
Originally Posted by Nutu_ View Post
Gaby: but I can not figure out how to make models for the players.
wait, what do you mean, you want to put models for player or to make your own models..
I do not want to create them. I want to name a personalized skin that just protects the player with that name. But this through a config cvar does not have to change the source every time.
__________________

We have over 400 skins on weapons and 5 types for hands!
Costumes for players!
New style for Top15 and stats!
Kill marks, molotov!
And many more are waiting for you to play!
GaBy96 is offline
Send a message via Skype™ to GaBy96
vulcaNN
Junior Member
Join Date: Dec 2018
Old 01-10-2019 , 13:35   Re: Skin by name
Reply With Quote #12

Hi, I made this plugin for you I hope it is working and hope you like it if you have it work leave message. You just have to change the models you want and add on the server...

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <hamsandwich>

new g_model_1[32],
g_model_2[32],
g_model_3[32],
g_model_4[32],
g_model_5[32],
g_model_6[32]

public 
plugin_init()
{
    
register_plugin("Player Model Menu""""vulcaNN")
    
    
RegisterHam(Ham_Spawn"player""ShowModel"1)
    
    
register_clcmd("say /player""Menu")
    
register_clcmd("say_team /player""Menu")
}

public 
client_connect(id)
{
    
g_model_1[id] = false
    g_model_2
[id] = false
    g_model_3
[id] = false
    g_model_4
[id] = false
    g_model_5
[id] = false
    g_model_6
[id] = false
}

public 
client_disconnect(id)
{
    
g_model_1[id] = false
    g_model_2
[id] = false
    g_model_3
[id] = false
    g_model_4
[id] = false
    g_model_5
[id] = false
    g_model_6
[id] = false
}

public 
plugin_precache()
{
    
precache_generic("models/player/Player_1/Player_1.mdl")
    
precache_generic("models/player/Player_2/Player_2.mdl")
    
precache_generic("models/player/Player_3/Player_3.mdl")
    
precache_generic("models/player/Player_4/Player_4.mdl")
    
precache_generic("models/player/Player_5/Player_5.mdl")
    
precache_generic("models/player/Player_6/Player_6.mdl")
}

public 
ShowModel(id)
{
    if(!
is_user_alive(id))
        return;
        
    if(
g_model_1[id] == true)
    {
        
cs_set_user_model(id"Player_1")
    }
    else if(
g_model_2[id] == true)
    {
        
cs_set_user_model(id"Player_2")
    }
    else if(
g_model_3[id] == true)
    {
        
cs_set_user_model(id"Player_3")
    }
    else if(
g_model_4[id] == true)
    {
        
cs_set_user_model(id"Player_4")
    }
    else if(
g_model_5[id] == true)
    {
        
cs_set_user_model(id"Player_5")
    }
    else if(
g_model_6[id] == true)
    {
        
cs_set_user_model(id"Player_6")
    }
}

public 
Menu(id)
{
    new 
iMenu menu_create("\r[ Select Name ]^nMenu Player Model""sub_Menu")
    
    
menu_additem(iMenu"\wName Model #1""1"0)
    
menu_additem(iMenu"\wName Model #2""2"0)
    
menu_additem(iMenu"\wName Model #3""3"0)
    
menu_additem(iMenu"\wName Model #4""4"0)
    
menu_additem(iMenu"\wName Model #5""5"0)
    
menu_additem(iMenu"\wName Model #6""6"0)
    
    
menu_setprop(iMenuMPROP_EXITNAME"\wExit")
    
menu_display(idiMenu0)
}

public 
sub_Menu(idmenuitem)
{
    if(
item == MENU_EXIT)
    {
        
menu_destroy(menu)
        return 
PLUGIN_HANDLED
    
}
    
    switch(
item)
    {
        case 
0:
        {
            
g_model_1[id] = true
            g_model_2
[id] = false
            g_model_3
[id] = false
            g_model_4
[id] = false
            g_model_5
[id] = false
            g_model_6
[id] = false
        
}
        case 
1:
        {
            
g_model_1[id] = false
            g_model_2
[id] = true
            g_model_3
[id] = false
            g_model_4
[id] = false
            g_model_5
[id] = false
            g_model_6
[id] = false
        
}
        case 
2:
        {
            
g_model_1[id] = false
            g_model_2
[id] = false
            g_model_3
[id] = true
            g_model_4
[id] = false
            g_model_5
[id] = false
            g_model_6
[id] = false
        
}
        case 
3:
        {
            
g_model_1[id] = false
            g_model_2
[id] = false
            g_model_3
[id] = false
            g_model_4
[id] = true
            g_model_5
[id] = false
            g_model_6
[id] = false
        
}
        case 
4:
        {
            
g_model_1[id] = false
            g_model_2
[id] = false
            g_model_3
[id] = false
            g_model_4
[id] = false
            g_model_5
[id] = true
            g_model_6
[id] = false
        
}
        case 
5:
        {
            
g_model_1[id] = false
            g_model_2
[id] = false
            g_model_3
[id] = false
            g_model_4
[id] = false
            g_model_5
[id] = false
            g_model_6
[id] = true
        
}
    }
    
ShowModel(id)
    return 
PLUGIN_HANDLED

By: vulcaNN

Last edited by vulcaNN; 01-10-2019 at 13:36.
vulcaNN is offline
GaBy96
Member
Join Date: Oct 2012
Location: Spain
Old 01-10-2019 , 13:41   Re: Skin by name
Reply With Quote #13

Thanks a lot vulcaNN, but I'm looking for something like "Players Models 1.3.1" but I can put models and names not just on steam id or ip.

Sorry if I was not very explicit but I did not know how to explain it exactly.
__________________

We have over 400 skins on weapons and 5 types for hands!
Costumes for players!
New style for Top15 and stats!
Kill marks, molotov!
And many more are waiting for you to play!

Last edited by GaBy96; 01-10-2019 at 13:44.
GaBy96 is offline
Send a message via Skype™ to GaBy96
vulcaNN
Junior Member
Join Date: Dec 2018
Old 01-10-2019 , 14:02   Re: Skin by name
Reply With Quote #14

On Good Anything and just send message in private.
vulcaNN is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 01-10-2019 , 14:02   Re: Skin by name
Reply With Quote #15

Quote:
Originally Posted by GaBy96 View Post
Thanks a lot vulcaNN, but I'm looking for something like "Players Models 1.3.1" but I can put models and names not just on steam id or ip.

Sorry if I was not very explicit but I did not know how to explain it exactly.
What's wrong with using steam id?
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
GaBy96
Member
Join Date: Oct 2012
Location: Spain
Old 01-10-2019 , 14:07   Re: Skin by name
Reply With Quote #16

Quote:
Originally Posted by Natsheh View Post
What's wrong with using steam id?
Not everyone has steam id
__________________

We have over 400 skins on weapons and 5 types for hands!
Costumes for players!
New style for Top15 and stats!
Kill marks, molotov!
And many more are waiting for you to play!
GaBy96 is offline
Send a message via Skype™ to GaBy96
Natsheh
Veteran Member
Join Date: Sep 2012
Old 01-10-2019 , 14:14   Re: Skin by name
Reply With Quote #17

Quote:
Originally Posted by GaBy96 View Post
Not everyone has steam id
Yes everyone has a steamid...?
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
Mordekay
Squirrel of Fortune
Join Date: Apr 2006
Location: Germany
Old 01-10-2019 , 14:28   Re: Skin by name
Reply With Quote #18

Quote:
Originally Posted by Natsheh View Post
Yes everyone has a steamid...?
Said the one who has a non-steam server himself
__________________

Mordekay is offline
Nutu_
AlliedModders Donor
Join Date: Mar 2016
Location: Germany
Old 01-10-2019 , 17:27   Re: Skin by name
Reply With Quote #19

it doesnt matter if he has a non-steam server himself, everyone has a steam id as forum rules says,
also you can put a model on flag 'X' and give that flag to the person you want
__________________
a simple act of caring creates an endless ripple.
Nutu_ is offline
Mordekay
Squirrel of Fortune
Join Date: Apr 2006
Location: Germany
Old 01-10-2019 , 18:39   Re: Skin by name
Reply With Quote #20

The forum rule says that non-steam is not supported. Only steam-clients have a steam-id, all others have fake-id's.
__________________

Mordekay 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 23:41.


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