What do you mean can you be more specific ? or maybe make a tut like you did for disable/enable only with more packets and poop ..
by the way you mean this function ?
Code:
ZGetGame()->m_pMyCharacter->SetHP(0);
If you do, what do i put in the () ?? if i want it to make it change by whatever the player wants
Code:
ZGetGame()->m_pMyCharacter->SetHP("%d" || "%s" || "%i");
what to use im not sure ..
Thanks anyway.
ik that, thanks for helping, but what i also need is the set hp parameter and set ap parameter, which im not sure how to make, thanks anyway
OFF TOPIC :
im using iGunz website, and it dosent work in chrome any fix ?
EDIT : i have been working on it, and i am trying to build this code in ZChat_Cmds.cpp
Code:
void sethp(const char* line, const int argc, char **const argv)
{
if (argc < 4)
{
ZChatOutput("^2Please enter a player name and a value of hp and ap !", ZChat::CMT_SYSTEM);
return;
}
float newhp = 0;
float newap = 0;
char* szhpnum = argv[1];
char* szapnum = argv[2];
char* szTargetName = argv[3];
newhp = szhpnum;
newhp = szapnum;
ZGetGame()->m_pMyCharacter->SetHP(newhp);
ZGetGame()->m_pMyCharacter->SetAP(newap);
ZChatOutput("^2HP and AP succsessfully changed !", ZChat::CMT_SYSTEM);
}
Now, i know that its immpossible to convert a flaot to a character, but i dont know what to do any ideas ?