You are viewing our Forum Archives. To view or take place in current topics click here.
SHOWKEYBOARD Dvar Editor Nice For Menu
Posted:

SHOWKEYBOARD Dvar Editor Nice For MenuPosted:

Cider
  • Challenger
Status: Offline
Joined: Jun 25, 201311Year Member
Posts: 146
Reputation Power: 7
Status: Offline
Joined: Jun 25, 201311Year Member
Posts: 146
Reputation Power: 7
CREDITS ==
KYZA for showing this was possible

Me for putting then together

to call this use this: CustomMapName(i); put that where your dvar's go


now here's the actual code!

void CustomMapName(int client)
{
XOVERLAPPED Overlapped;
WCHAR HUDText[512];
char HUDBuffer[512];
char ctag[512];
char printlol[512];
ZeroMemory(&Overlapped, sizeof(Overlapped));
XShowKeyboardUI(client, VKBD_DEFAULT, L"", L"Custom Map Name", L"EXAMPLE = ^***** ^****** ^3H4X ^6y0", HUDText, 512, &Overlapped );
while(!XHasOverlappedIoCompleted(&Overlapped))
Sleep(100);
wcstombs(HUDBuffer, HUDText, 512);
sprintf(ctag, "s ui_mapname \"%s\"", HUDBuffer);
sprintf(printlol, "c \"Map Set To: %s\"", HUDBuffer);
SV(client, 1, ctag);
SV(client, 1, printlol);
}

------------------------------------------
Call it like this - CustomProMod(i);

void CustomProMod(int client)
{
XOVERLAPPED Overlapped;
WCHAR HUDText[512];
char HUDBuffer[512];
char ctag[512];
char printlol[512];
ZeroMemory(&Overlapped, sizeof(Overlapped));
XShowKeyboardUI(client, VKBD_DEFAULT, L"", L"Custom ProMod", L"Default = 0 Kewl = 8\nTroll = 620", HUDText, 512, &Overlapped );
while(!XHasOverlappedIoCompleted(&Overlapped))
Sleep(100);
wcstombs(HUDBuffer, HUDText, 512);
sprintf(ctag, "s cg_gun_x \"%s\"", HUDBuffer);
sprintf(printlol, "c \"ProMod To: %s\"", HUDBuffer);
SV(client, 1, ctag);
SV(client, 1, printlol);
}

-------------------------------------------------------------
Call Like This SprintSpeedEdit(i);
-------------------------------------------------------------

void SprintSpeedEdit(int client)
{
XOVERLAPPED Overlapped;
WCHAR HUDText[512];
char HUDBuffer[512];
char ctag[512];
char printlol[512];
ZeroMemory(&Overlapped, sizeof(Overlapped));
XShowKeyboardUI(client, VKBD_DEFAULT, L"", L"Custom Speed Editor", L" 0 - 9999", HUDText, 512, &Overlapped );
while(!XHasOverlappedIoCompleted(&Overlapped))
Sleep(100);
wcstombs(HUDBuffer, HUDText, 512);
sprintf(ctag, "s player_sprintSpeedScale \"%s\"", HUDBuffer);
sprintf(printlol, "c \"Sprint Set To: %s\"", HUDBuffer);
SV(client, 1, ctag);
SV(client, 1, printlol);
}

void MOTDEditFTW(int client)
{
XOVERLAPPED Overlapped;
WCHAR HUDText[512];
char HUDBuffer[512];
char ctag[512];
char printlol[512];
ZeroMemory(&Overlapped, sizeof(Overlapped));
XShowKeyboardUI(client, VKBD_DEFAULT, L"", L"^1 Red\n^2 Green\n^3 Yellow\n^4 DArK Blue\n^5 Cyan\n^6 Hot Pink\n^7 White\n^0 Black", L"Have fun", HUDText, 512, &Overlapped );
while(!XHasOverlappedIoCompleted(&Overlapped))
Sleep(100);
wcstombs(HUDBuffer, HUDText, 512);
sprintf(ctag, "s motd \"%s\"", HUDBuffer);
sprintf(printlol, "c \"Motd Set To: %s\"", HUDBuffer);
SV(client, 1, ctag);
SV(client, 1, printlol);
}



void KnifeRangeEdit(int client)
{
XOVERLAPPED Overlapped;
WCHAR HUDText[512];
char HUDBuffer[512];
char ctag[512];
char printlol[512];
ZeroMemory(&Overlapped, sizeof(Overlapped));
XShowKeyboardUI(client, VKBD_DEFAULT, L"", L"Custom Knife Editor", L"Between 0 and 99999", HUDText, 512, &Overlapped );
while(!XHasOverlappedIoCompleted(&Overlapped))
Sleep(100);
wcstombs(HUDBuffer, HUDText, 512);
sprintf(ctag, "s player_MeleeRange \"%s\"", HUDBuffer);
sprintf(printlol, "c \"Knife Set To: %s\"", HUDBuffer);
SV(client, 1, ctag);
SV(client, 1, printlol);
}





Note: there will be more added soon so give me some idea's

if you need help my skype is: xcrememods


Last edited by Cider ; edited 1 time in total
#2. Posted:
ImTreyZ
  • Ladder Climber
Status: Offline
Joined: Apr 26, 201212Year Member
Posts: 365
Reputation Power: 16
Status: Offline
Joined: Apr 26, 201212Year Member
Posts: 365
Reputation Power: 16
you can do pretty much everything with it
like custom give weapon.
but there are two ways to do it.
1. is typing in the name of the gun like "defaultweapon_mp"
but the problem is that the most people doesnt really know the names of it.
Thats why there is a second way to do it.
2. is just typing in the number of the weapon.
But for that you need to convert the char to a integer.
But if you know how the G_SpeedEditor or the Jump_height Editor works...then you are probably able to figuare it out ;)
#3. Posted:
Botch
  • TTG Senior
Status: Offline
Joined: Aug 31, 201212Year Member
Posts: 1,553
Reputation Power: 65
Status: Offline
Joined: Aug 31, 201212Year Member
Posts: 1,553
Reputation Power: 65
No credits to KYZA for (at least releasing) this method?
#4. Posted:
Cider
  • Challenger
Status: Offline
Joined: Jun 25, 201311Year Member
Posts: 146
Reputation Power: 7
Status: Offline
Joined: Jun 25, 201311Year Member
Posts: 146
Reputation Power: 7
Botch wrote No credits to KYZA for (at least releasing) this method?
i added all the creditsxD
#5. Posted:
hacksorce
  • Challenger
Status: Offline
Joined: Aug 17, 201212Year Member
Posts: 132
Reputation Power: 8
Status: Offline
Joined: Aug 17, 201212Year Member
Posts: 132
Reputation Power: 8
Or you can have it return a value and not need to make countless unless methods
char[] CustomProMod(int client,char messagetext)
{
XOVERLAPPED Overlapped;
char leBuffer[512];
char text[256]
char ctag[512];
char printlol[512];
ZeroMemory(&Overlapped, sizeof(Overlapped));
XShowKeyboardUI(client, VKBD_DEFAULT, L"", L messagetext, text, 512, &Overlapped );
while(!XHasOverlappedIoCompleted(&Overlapped))
Sleep(100);
wcstombs(leBuffer, text, 512);
return lebuffer
}

Coded on phone so might have syntax errors in it.
#6. Posted:
Cider
  • Challenger
Status: Offline
Joined: Jun 25, 201311Year Member
Posts: 146
Reputation Power: 7
Status: Offline
Joined: Jun 25, 201311Year Member
Posts: 146
Reputation Power: 7
hacksorce wrote Or you can have it return a value and not need to make countless unless methods
char[] CustomProMod(int client,char messagetext)
{
XOVERLAPPED Overlapped;
char leBuffer[512];
char text[256]
char ctag[512];
char printlol[512];
ZeroMemory(&Overlapped, sizeof(Overlapped));
XShowKeyboardUI(client, VKBD_DEFAULT, L"", L messagetext, text, 512, &Overlapped );
while(!XHasOverlappedIoCompleted(&Overlapped))
Sleep(100);
wcstombs(leBuffer, text, 512);
return lebuffer
}

Coded on phone so might have syntax errors in it.
yes hacksource that is true.
#7. Posted:
-RghXpLobby-
  • New Member
Status: Offline
Joined: Jul 05, 201311Year Member
Posts: 7
Reputation Power: 0
Status: Offline
Joined: Jul 05, 201311Year Member
Posts: 7
Reputation Power: 0
Nice man keep up the good work!!
#8. Posted:
Cider
  • Challenger
Status: Offline
Joined: Jun 25, 201311Year Member
Posts: 146
Reputation Power: 7
Status: Offline
Joined: Jun 25, 201311Year Member
Posts: 146
Reputation Power: 7
-RghXpLobby- wrote Nice man keep up the good work!!
lol, thanks for the comment man.
#9. Posted:
ImJtagModz
  • Junior Member
Status: Offline
Joined: Jan 07, 201311Year Member
Posts: 98
Reputation Power: 5
Status: Offline
Joined: Jan 07, 201311Year Member
Posts: 98
Reputation Power: 5
Just Letting You Know. No One Deserves Credits Because If Anyone. It Should Be Xbox For The Function Of XShowKeyboardUI :3. Also i believe i made the clan-tag one but meh
Jump to:
You are viewing our Forum Archives. To view or take place in current topics click here.