Raised This Month: $44 Target: $400
 11% 

Requst Edite Sma


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
mohanad_2022
Member
Join Date: Jan 2022
Location: Palestine
Old 09-22-2022 , 07:29   Requst Edite Sma
Reply With Quote #1

Hello Everyone

i have this sma which give a model for Special players

but when i add it to zp 4.3 fix6a mod , i find the admin and the player on the same skine of the defult one of the mod , not changed , except in case if i turned the player from zm or survivur or sniper to Human , in that case the player will get the skine which i choosed on the sma file

and when the new round starting , the skine back defult as the mod settings

so plz i hope one help me to fix that problem
i just want the skine of the player which i attack on the sma to be applied at the players when they join the server and when they be sniper or survivur and saved to every round and evry map , without resting


one last thing : if someone could link this sma with a cfg file , i will thank you so much , i tried but fail everytime

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <hamsandwich>
#include <zombieplague>

#define PLUGIN "Change models"
#define VERSION "1.1"
#define AUTHOR "NaDa"

new const g_szModels[][][] =
{
    {
"Player1""zp_Player1"},
    {
"Player2""zp_Player2"}
}

const 
g_iMaxModels sizeof g_szModels

new Trie:g_iModels

new g_szName[33][32]

public 
plugin_precache()
{
    new 
iszParam[32], szText[100]
    
    for(
0sizeof g_szModelsi++)
    {
        
formatex(szParamcharsmax(szParam), "%s"g_szModels[i][1])
        
formatex(szTextcharsmax(szText), "models/player/%s/%s.mdl"szParamszParam)
        
        
precache_model(szText)
    }
}

public 
plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
RegisterHam(Ham_Spawn"player""Fw_PlayerSpawn_Post"1)
    
    
g_iModels TrieCreate()
    
    for(new 
ig_iMaxModelsi++)
        
TrieSetString(g_iModelsg_szModels[i][0], g_szModels[i][1])
}

public 
client_putinserver(id)
{
    
get_user_name(idg_szName[id], 31)
}

public 
Fw_PlayerSpawn_Post(id)
{
    if(!
is_user_alive(id))
        return 
HAM_IGNORED
    
    update_model
(id)
    return 
HAM_IGNORED
}

public 
zp_user_humanized_post(id)
{
    
update_model(id)
}

update_model(id)
{
    new 
szModel[32]
    
    if(
TrieGetString(g_iModelsg_szName[id], szModelcharsmax(szModel)))
        
zp_override_user_model(idszModel)

mohanad_2022 is offline
Nutu_
AlliedModders Donor
Join Date: Mar 2016
Location: Germany
Old 09-22-2022 , 14:26   Re: Requst Edite Sma
Reply With Quote #2

zp mode has already settings for player models in zombieplague.ini! you dont have to use another plugin, just change the models on .ini file, also there is admin model as well
__________________
a simple act of caring creates an endless ripple.
Nutu_ is offline
mohanad_2022
Member
Join Date: Jan 2022
Location: Palestine
Old 09-22-2022 , 16:32   Re: Requst Edite Sma
Reply With Quote #3

Quote:
Originally Posted by Nutu_ View Post
zp mode has already settings for player models in zombieplague.ini! you dont have to use another plugin, just change the models on .ini file, also there is admin model as well
i know my friend but that will only give admins with allotted Flag the admin skine

but this sma give models for Only the people you want and in the ways you assign them , like if i want add skine for youtuber or donaters or owner , like that
mohanad_2022 is offline
Old 09-23-2022, 09:39
AnimalMonster
This message has been deleted by AnimalMonster. Reason: Nvm
Nutu_
AlliedModders Donor
Join Date: Mar 2016
Location: Germany
Old 09-24-2022 , 10:50   Re: Requst Edite Sma
Reply With Quote #4

then try to put your plugin above zombie plague plugin in plugins.ini
__________________
a simple act of caring creates an endless ripple.
Nutu_ is offline
mohanad_2022
Member
Join Date: Jan 2022
Location: Palestine
Old 09-24-2022 , 15:10   Re: Requst Edite Sma
Reply With Quote #5

Quote:
Originally Posted by Nutu_ View Post
then try to put your plugin above zombie plague plugin in plugins.ini
i did , but no way
mohanad_2022 is offline
Reply


Thread Tools
Display Modes

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 09:59.


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