Hello guys, I'm new at coding and was wondering how to make a command for the 5165 source which enables you to have unlimited stamina (For GMs only). Thanks.
This is wut I have did so far...
I dunno where to define InfiniteStamina.
#EDIT
Okay I've tried doing this. I went to Character.cs and put this above if (Action == 250)
And went back and changed the Chat.cs thing to
Is it okay to do it like this??
This is wut I have did so far...
Code:
if (Cmd[0] == "/gmstamina")
{
if (!InfiniteStamina)
{
InfiniteStamina = true;
}
else
{
InfiniteStamina = false;
}
}
#EDIT
Okay I've tried doing this. I went to Character.cs and put this above if (Action == 250)
Code:
if (InfiniteStamina)
Stamina = 100;
Code:
if (Cmd[0] == "/gmstamina")
{
if (!GC.MyChar.InfiniteStamina)
{
GC.MyChar.InfiniteStamina = true;
}
else
{
GC.MyChar.InfiniteStamina = false;
}
}