Raised This Month: $51 Target: $400
 12% 

Help For Vip models


Post New Thread Reply   
 
Thread Tools Display Modes
asdfdsdf
AlliedModders Donor
Join Date: Aug 2010
Location: Belgium
Old 12-31-2013 , 10:52   Re: Help For Vip models
Reply With Quote #11

Both of them xD the second does do change the models when u open the menu and choose a model but the models doesnt stay for the whole map
asdfdsdf is offline
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 12-31-2013 , 11:01   Re: Help For Vip models
Reply With Quote #12

Maybe the Zombie Mod overrides it.
__________________
Kia is offline
Catastrophe
Veteran Member
Join Date: Jul 2012
Location: somewhere between narnia
Old 01-01-2014 , 03:23   Re: Help For Vip models
Reply With Quote #13

make a new array g_model[33]

Then is :-
PHP Code:
case 1
        { 
            if(!
zp_get_user_zombie(id) && is_user_alive (id)) 
            { 
                
zp_override_user_model(id"favip_hitman"
                
ColorChat(idGREY"%s ^3You succesfully Changed Your^4 VIP Model"g_szVipPrefix)  
                
g_model[id] == favip_hitman
            

            new 
szName[33
            
get_user_name(idszName32
            
ColorChat(0GREY"%s ^3%s ^4 Activated ^3His Vip Model"g_szVipPrefixszName
             
            if(
zp_get_user_zombie(id) && is_user_alive (id)) 
            { 
                
ColorChat(idGREY"%s You need to be a Human to choose this ^4 Model"g_szVipPrefix
            } 
                 
        } 
Do this in all the cases just add "g_model[id] == <model name of the case>" where the model is set... like i did...

And on fw_spawn just use

PHP Code:
if(g_model[id] > )
{
zp_override_user_model(id"%s"g_model[id]) 

If this doesnt work dont worry.... its not as easy as it looks.... post the full code here (i mean the entire code.... from includes to the last line) and ill fix it .... (Full code cuz it needs to reset a lot of variables and set a default (0) value when no model is selected....
__________________
You will find everything u need :-
Catastrophe is offline
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 01-01-2014 , 04:12   Re: Help For Vip models
Reply With Quote #14

He told me that he actual code is working now, but the Mod itself always resets the model when you spawn.

I suggest to hook when you get infected and then set the model instead of setting it at spawn.
__________________
Kia is offline
Catastrophe
Veteran Member
Join Date: Jul 2012
Location: somewhere between narnia
Old 01-01-2014 , 04:38   Re: Help For Vip models
Reply With Quote #15

Or just hook it after a few seconds of respawn.... since wants it for humans... hooking it after infection... doesnt make sense.....
__________________
You will find everything u need :-
Catastrophe is offline
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 01-01-2014 , 05:20   AW: Re: Help For Vip models
Reply With Quote #16

Quote:
Originally Posted by Catastrophe View Post
Or just hook it after a few seconds of respawn.... since wants it for humans... hooking it after infection... doesnt make sense.....
Not all Models are for Humans (e. g. Terminator Model (see last menu item)).
He should hook when the state changes (Human <-> Zombie).
__________________
Kia is offline
Catastrophe
Veteran Member
Join Date: Jul 2012
Location: somewhere between narnia
Old 01-01-2014 , 09:50   Re: Help For Vip models
Reply With Quote #17

its the same time (state change) when zp over rides default modes i.e zm model <--> human model... so its the best to set tasks of 2-3 seconds after state change..
__________________
You will find everything u need :-
Catastrophe is offline
asdfdsdf
AlliedModders Donor
Join Date: Aug 2010
Location: Belgium
Old 01-01-2014 , 19:06   Re: Help For Vip models
Reply With Quote #18

Ok mate thx i will try your way lets see if it works if not i will send you the full code on private message grtz
asdfdsdf is offline
TheDS1337
Veteran Member
Join Date: Jun 2012
Old 01-04-2014 , 08:52   Re: Help For Vip models
Reply With Quote #19

I already made a vip model plugin, search in my thread and use it or take it as an example
TheDS1337 is offline
FreemaNNNN
Junior Member
Join Date: Jan 2014
Old 01-05-2014 , 13:53   Re: Help For Vip models
Reply With Quote #20

that may exist in zp60
FreemaNNNN 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 12:48.


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