Lately I've been trying to make a force party hack on KoemV2. I've made it like, when Player Appear -> write his name to text file and his ID. Then send the ID I want to force. But when I do this it just says "The character is not connected or not in range."
Anyideas why this happen? Although it was working when was just PlayerAppear then send to the AppearedPlayer.
have you tried this?
PacketSend(0x2c,"bd",1,Player[i].PID);
I have got this working, but when I read PlayerID from text file it doesn't work.
@thekingisback It's different from server to other, and what could you need it for ?;o
make a map,
std::map<int,std::string> Force_m;
then you can either search for the playerid -> Force_m.find(PID);
or you can search for the name and get the PID then ->
for(std::map<int,std::string>::iterator it = Force_m.begin(); it != Force_m.end();++it)
if(it->second == "Your name") it->first; //it->first is your PID then.