Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- new querystring[300];
- new PlayerIP[16];
- GetPlayerIp(id, PlayerIP, 16);
- new years,month,day,hour,minute;
- getdate(years, month, day);
- gettime(hour, minute);
- mysql_format(connectionHandle, querystring, 300, "INSERT INTO `bans` (`Vardas`, `IP-Adress`, `Priezastis`, `Tipas`, `GaliojimoPabaiga`) VALUES ('%e', '%e', '%s (%s) [%d-%0d-%0d %0d:%0d ]', '1', '%i');", Vardas(id),PlayerIP,reason,Vardas(playerid),years,month,day,hour,minute,gettime() + (time * 3600));
- mysql_function_query(connectionHandle,querystring,false,"SendQuery","");
- SetTimerEx("DelayedKick", 1000, false, "d", id);
Advertisement
Add Comment
Please, Sign In to add comment