Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Female and Male rules


L0lz
 Share

Recommended Posts

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 If

How 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

Function GetPlayerGender(index)

    gets the players gender 1 = female, 0 = male
    example: if getplayergender(index) = 1 then

It'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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...