Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- forward CheckOBPWCrackTimerIP(playerid, opferip[128]);
- public CheckOBPWCrackTimerIP(playerid, opferip[128])
- {
- new numrows, numfields, query[128], pID[35], String[256];
- cache_get_data(numrows, numfields, dbhandle);
- if(numrows == 1)
- {
- format(query, sizeof(query),"SELECT id FROM computer WHERE ip='%s'", opferip);
- cache_get_field_content(0,"besitzer", pID, dbhandle, sizeof(pID));
- SpamChat(playerid, 19);
- format(String, sizeof(String)," ** Du hast das Online-Banking Passwort von %s erfolgreich gecrackt!", pID);
- SendClientMessage(playerid, COLOR_GRAU, String);
- format(String, sizeof(String),"ADMMSG: %s hat das Online-Banking Passwort von %s gehackt!", PlayerName(playerid), pID);
- SendAdminMessage(String);
- format(query, sizeof(query),"SELECT id FROM benutzer WHERE username='%s'", pID);
- new endid;
- for(new i=0; i<MAX_PLAYERS; i++)
- {
- if(!strcmp(PlayerName(i), pID, false))
- {
- endid = i;
- }
- else {
- continue;
- }
- }
- mysql_tquery(dbhandle, query,"OBPWSpielerZeigen","ii", playerid, endid);
- return 1;
- }
- else {
- return 1;
- }
- }
- foward OBPWSpielerZeigen(playerid, pID);
- public OBPWSpielerZeigen(playerid, pID)
- {
- new numrows, numfields;
- cache_get_data(numrows, numfields, dbhandle);
- if(numrows == 1)
- {
- new finpw[76], String[256];
- cache_get_field_content(0,"onlinebankingpasswort", finpw, dbhandle, sizeof(finpw));
- format(String, sizeof(String)," ** Das Online-Banking-Passwort von %s lautet: %s", PlayerName(pID), finpw);
- SpamChat(playerid, 19);
- SendClientMessage(playerid, COLOR_GRAU, String);
- return 1;
- }
- else {
- return 1;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement