25.07.2016, 08:48
Title.
Code:
what appears:
Code:
PHP код:
/* ============================================================================= */
forward playerConnectBan1(playerid);
public playerConnectBan1(playerid) {
if(cache_num_rows()) {
new admin[25], reason[256], time[256], date[256];
cache_get_field_content(0, "Admin", admin);
cache_get_field_content(0, "Reason", reason);
cache_get_field_content(0, "Time", time);
cache_get_field_content(0, "Date", date);
ShowPlayerDialog(playerid, 1337, DIALOG_STYLE_MSGBOX, "{6f757d}Syndicate Roleplay {FFFFFF}-> {6f757d}Banned", sprintf("{FFFFFF}You have been banned from {6f757d}Syndicate Roleplay{FFFFFF}.\n\n\
{6f757d}-> {FFFFFF}Admin: %s\n{6f757d}-> {FFFFFF}Reason: %s\n{6f757d}-> {FFFFFF}Time: %s{6f757d} - {FFFFFF}%s\n\nPlease take a screenshot ({6f757d}F8{FFFFFF}) of this dialog - you will not get unbanned without a screenshot.\
", admin, reason, time, date), "Close", "");
SetTimerEx("kickPlayer", 1000, false, "d", playerid);
} else {
new query[144]; mysql_format(connection, query, sizeof(query), "SELECT * FROM accounts WHERE Username = '%s'", Name(playerid)); mysql_tquery(connection, query, "playerConnect1", "d", playerid);
}
return 1;
}