Raised This Month: $ Target: $400
 0% 

Models Menu


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
yagami
Senior Member
Join Date: Jan 2021
Old 04-12-2022 , 00:50   Re: Models Menu
Reply With Quote #1

Quote:
Originally Posted by fysiks View Post
This should be fairly simple depending on how you want to set/determine the sex of the models that you want to show. You only needed to add one additional parameter to the ModelInfo enumeration instead of the two that you added:

PHP Code:
enum _:ModelInfo
{
    
Name[32],
    
CsTeams:Team,
    
Sex

Then, you need to define "Male" and "Female":

PHP Code:
enum {
    
Male,
    
Female

Then, you need to change the condition in the menu building function to also check for the sex of the model. Either in addition to the team check or you can change entirely to a sex check depending on how you want it to work.

I would probably just implement it with the sex check against a constant just to make sure that that part works as expected.

PHP Code:
g_eModels[i][Sex] == Female 
Then, you can add more complex functionality for determining how to know which sex to show.
I still have a hard time doing this myself.
if it was a simple menu I can even make a menu easily but as the skins are within the const it is being difficult
could you give me some examples i'm still learning
yagami 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:20.


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