Quantcast

Jump to content

» «
Photo

Player model always male?

1 reply to this topic
NOLABaby8732
  • NOLABaby8732

    Player Hater

  • Members
  • Joined: 06 Feb 2012

#1

Posted 26 June 2013 - 11:29 PM

How do you tell if the current players model is a female or male? no matter what model i have IS_CHAR_MALE returns true.

this is my model chaning script:
CODE
CheckModelLoad(MODEL_F_Y_STRIPPERC02);
WAIT(100);
CHANGE_PLAYER_MODEL(GET_PLAYER_ID(), MODEL_F_Y_STRIPPERC02);
WAIT(500);
MARK_MODEL_AS_NO_LONGER_NEEDED(MODEL_F_Y_STRIPPERC02);


IDK if that needs to somehow update your ped attributes or what. Someplease help.

Thank you in advance

EDIT: BTW this is SCOCL

HadesOfGTA
  • HadesOfGTA

    Player Hater

  • Members
  • Joined: 25 Jun 2013

#2

Posted 28 June 2013 - 09:20 PM

I am not familiar with SCOCL, however, if I were to do this in C++ I would simply write my own function to check. Try writing a function that returns a boolean value, with one argument that takes in the Ped/Player in question.

Inside this function define an array that contains all male players, or all female. only do one.. male or female.

Define a variable that holds the player/ped current model

Loop through the array checking if the model of player is equal to any in the array

If not, then the player is the opposite of the sex you defined in the array.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users