Last edited by Shadi Wakeem; 23-09-16 at 08:11 PM.
ZGameInput.cpp
go to "bool ZGameInput::OnEvent(MEvent* pEvent)" and add "rvector PlayerPosHotKey;" above
find case VK_NUMPAD1
add
if (strstr(ZGetGameClient()->GetStageName(), "[TELE]")){
PlayerPosHotKey = pMyCharacter->GetPosition();
}
find case VK_NUMPAD2
add
if (strstr(ZGetGameClient()->GetStageName(), "[TELE]")){
pMyCharacter->SetPosition(PlayerPosHotKey);
}
can you make a runnable that has the tele mode in it cause i dont know how to use c++ please and thanks for replying at my request :*
Last edited by Shadi Wakeem; 14-05-16 at 02:17 PM.
Unfortunately I do not have any clean source
it worked finally thanks so much you're the best !!!!!!
Last edited by Shadi Wakeem; 18-05-16 at 12:25 PM.
man iget this error
d:\Gunz\Gunz\Gunz 1.5 Repack by Jur13n #1 (Edited)\Source\Gunz\ZGameInput.cpp(100): error C3861: 'PlayerPosHotKey': identifier not found, even with argument-dependent lookup
d:\Gunz\Gunz\Gunz 1.5 Repack by Jur13n #1 (Edited)\Source\Gunz\ZGameInput.cpp(94): error C2065: 'PlayerPosHotKey' : undeclared identifier
it's not working for me too in the edited source ... @iFinn please help
below " switch (pEvent->nKey){ "
case VK_NUMPAD1:{
if (strstr(ZGetGameClient()->GetStageName(), "[TELE]")){
PlayerPosHotKey = pMyCharacter->GetPosition();
}
}
return true;
case VK_NUMPAD2:{
if (strstr(ZGetGameClient()->GetStageName(), "[TELE]")){
pMyCharacter->SetPosition(PlayerPosHotKey);
}
}
return true;
Didn't work :(
i build the source but when i go in game nothing happens ... @iFinn
@Abdo Khaled We had a problem, when it creates a room, automatically writes all texts changes to tiny in room name
change [TELE] to [tele] in source
if not work, just seeing ...
case VK_NUMPAD1:{
If (strstr (strlwr (ZGetGameClient ()-> GetStageName ()), "[tele]")){
PlayerPosHotKey = pMyCharacter->GetPosition();
ZChatOutput(MCOLOR(255,0,0),"Pos Saved");
}
}
return true;
case VK_NUMPAD2:{
If (strstr (strlwr (ZGetGameClient ()-> GetStageName ()), "[tele]")){
pMyCharacter->SetPosition(PlayerPosHotKey);
ZChatOutput(MCOLOR(255,0,0), "Pos Loaded");
}//no room tag test
}
return true;
ifinn give me that put it
Last edited by Abdo Khaled; 09-08-16 at 09:30 PM.