Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- new ip[16];
- GetPlayerIp(playerid, ip, sizeof(ip));
- format(strx, sizeof strx, "SELECT * FROM `bans` WHERE `nick` = '%s' OR `ip` = '%s'", GetPlayerNick(playerid), ip), mysql_query(strx), mysql_debug(1);
- mysql_store_result();
- mysql_debug(0);
- if(mysql_num_rows() != 0) {
- new
- param[256],
- nick[30],
- admin[30],
- date[80],
- ipa[30],
- id[12],
- reason[100];
- mysql_debug(1);
- mysql_fetch_row(param, "|");
- sscanf(param, "is[30]s[30]s[80]s[30]s[100]", id, nick, ipa, date, admin, reason);
- format(bstrx, sizeof bstrx, ""JasnoZielony"Zostałeś zbanowany na tym serwerze\n"Niebieski"Nick: "Bialy"%s\n"Niebieski"IP: "Bialy"%s\n"Niebieski"Data: "Bialy"%s\n"Niebieski"Admin: "Bialy"%s\n"Niebieski"Powód: "Bialy"%s\n\n"Czerwony""ADRES"", GetPlayerNick(playerid), ip, date, admin, reason);
- InfoBox(playerid, bstrx, ""Zloty"Masz bana cwelu.");
- kickEx(playerid);
- mysql_free_result();
- mysql_debug(0);
- return 0;
- }
- // mysql_free_result(); // nie wiem, czy to w ogóle jest potrzebne, w razie czego odkomentuj
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement