Advertisement
Guest User

rofl

a guest
May 6th, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.65 KB | None | 0 0
  1. forward CheckOBPWCrackTimerIP(playerid, opferip[128]);
  2. public CheckOBPWCrackTimerIP(playerid, opferip[128])
  3. {
  4. new numrows, numfields, query[128], pID[35], String[256];
  5. cache_get_data(numrows, numfields, dbhandle);
  6. if(numrows == 1)
  7. {
  8. format(query, sizeof(query),"SELECT id FROM computer WHERE ip='%s'", opferip);
  9. cache_get_field_content(0,"besitzer", pID, dbhandle, sizeof(pID));
  10. SpamChat(playerid, 19);
  11. format(String, sizeof(String)," ** Du hast das Online-Banking Passwort von %s erfolgreich gecrackt!", pID);
  12. SendClientMessage(playerid, COLOR_GRAU, String);
  13. format(String, sizeof(String),"ADMMSG: %s hat das Online-Banking Passwort von %s gehackt!", PlayerName(playerid), pID);
  14. SendAdminMessage(String);
  15.  
  16. format(query, sizeof(query),"SELECT id FROM benutzer WHERE username='%s'", pID);
  17. new endid;
  18. for(new i=0; i<MAX_PLAYERS; i++)
  19. {
  20. if(!strcmp(PlayerName(i), pID, false))
  21. {
  22. endid = i;
  23. }
  24. else {
  25. continue;
  26. }
  27. }
  28. mysql_tquery(dbhandle, query,"OBPWSpielerZeigen","ii", playerid, endid);
  29. return 1;
  30. }
  31. else {
  32. return 1;
  33. }
  34. }
  35.  
  36. foward OBPWSpielerZeigen(playerid, pID);
  37. public OBPWSpielerZeigen(playerid, pID)
  38. {
  39. new numrows, numfields;
  40. cache_get_data(numrows, numfields, dbhandle);
  41. if(numrows == 1)
  42. {
  43. new finpw[76], String[256];
  44. cache_get_field_content(0,"onlinebankingpasswort", finpw, dbhandle, sizeof(finpw));
  45. format(String, sizeof(String)," ** Das Online-Banking-Passwort von %s lautet: %s", PlayerName(pID), finpw);
  46. SpamChat(playerid, 19);
  47. SendClientMessage(playerid, COLOR_GRAU, String);
  48. return 1;
  49. }
  50. else {
  51. return 1;
  52. }
  53. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement