Advertisement
supfrezze

Untitled

Dec 11th, 2019
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.88 KB | None | 0 0
  1. auto cfilter = CHudChat::ChatFilters::CHAT_FILTER_NONE;
  2. if (Tabs.Config == 0 && zgui::button("load", { 50,20 })) {
  3. if (g_pEngine->IsInGame() && g_pEngine->IsConnected()) g_ChatElement->ChatPrintf(0, cfilter, " \x02[deathrow] \x01""config loaded"" ");
  4. g_Config->Load();
  5. }
  6. else if (Tabs.Config == 1 && zgui::button("load", { 50,20 })) {
  7. if (g_pEngine->IsInGame() && g_pEngine->IsConnected()) g_ChatElement->ChatPrintf(0, cfilter, " \x02[deathrow] \x01""config loaded"" ");
  8. g_Config->Load2();
  9. }
  10. else if (Tabs.Config == 2 && zgui::button("load", { 50,20 })) {
  11. if (g_pEngine->IsInGame() && g_pEngine->IsConnected()) g_ChatElement->ChatPrintf(0, cfilter, " \x02[deathrow] \x01""config loaded"" ");
  12. g_Config->Load3();
  13. }
  14. else if (Tabs.Config == 3 && zgui::button("load", { 50,20 })) {
  15. if (g_pEngine->IsInGame() && g_pEngine->IsConnected()) g_ChatElement->ChatPrintf(0, cfilter, " \x02[deathrow] \x01""config loaded"" ");
  16. g_Config->Load4();
  17. }
  18.  
  19. if (Tabs.Config == 0 && zgui::button(" save", { 50,20 })) {
  20. if (g_pEngine->IsInGame() && g_pEngine->IsConnected()) g_ChatElement->ChatPrintf(0, cfilter, " \x02[deathrow] \x01""config saved"" ");
  21. g_Config->Save();
  22. }
  23. else if (Tabs.Config == 1 && zgui::button(" save", { 50,20 })) {
  24. if (g_pEngine->IsInGame() && g_pEngine->IsConnected()) g_ChatElement->ChatPrintf(0, cfilter, " \x02[deathrow] \x01""config saved"" ");
  25. g_Config->Save2();
  26. }
  27. else if (Tabs.Config == 2 && zgui::button(" save", { 50,20 })) {
  28. if (g_pEngine->IsInGame() && g_pEngine->IsConnected()) g_ChatElement->ChatPrintf(0, cfilter, " \x02[deathrow] \x01""config saved"" ");
  29. g_Config->Save3();
  30. }
  31. else if (Tabs.Config == 3 && zgui::button(" save", { 50,20 })) {
  32. if (g_pEngine->IsInGame() && g_pEngine->IsConnected()) g_ChatElement->ChatPrintf(0, cfilter, " \x02[deathrow] \x01""config saved"" ");
  33. g_Config->Save4();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement