Guest User

Untitled

a guest
Nov 19th, 2017
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. new querystring[300];
  2. new PlayerIP[16];
  3. GetPlayerIp(id, PlayerIP, 16);
  4. new years,month,day,hour,minute;
  5. getdate(years, month, day);
  6. gettime(hour, minute);
  7. 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));
  8. mysql_function_query(connectionHandle,querystring,false,"SendQuery","");
  9. SetTimerEx("DelayedKick", 1000, false, "d", id);
Advertisement
Add Comment
Please, Sign In to add comment