L0lz Posted August 25, 2008 Author Share Posted August 25, 2008 So I created a new hair style for the Cosmic Warrior Class, and I wanna make a Scripted Item that goes something like…> Function Check_Gender(Male,Female)> If Check_Gender = Male> Then Call SetPlayerSprite(Index, 20)> Else> If Check_Gender = Female> Then Call PlayerMsg(Index, "You are not a Male", WHITE)> End If> End IfHow would I go about making a function that checks the gender? Does this have to be source edited? Do I have to define a Variable or something? O-o Link to comment Share on other sites More sharing options...
Zuleloan Posted August 25, 2008 Share Posted August 25, 2008 isn't there a command that does that? Link to comment Share on other sites More sharing options...
Bobosk Posted August 25, 2008 Share Posted August 25, 2008 Function GetPlayerGender(index) gets the players gender 1 = female, 0 = male example: if getplayergender(index) = 1 thenIt's already coded in… not sure if it works though, since i haven't really had a reason to use it Link to comment Share on other sites More sharing options...
L0lz Posted August 25, 2008 Author Share Posted August 25, 2008 Oh, I'll try it and see if it works. I was so close in the function name XD. It didn't work, X_X. It seems I have to script the fuction but I dont know where to start. Link to comment Share on other sites More sharing options...
balliztik1 Posted August 27, 2008 Share Posted August 27, 2008 It should work. A gender of 0 is male and 1 is female. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now