25.02.2017, 02:03
The script doesn't kick me while it have the same "serial" saved into SerialBans.txt file
// ONPLAYERCONNECT
// ONPLAYERCONNECT
Код:
if(!fexist("SerialBans.txt")) return 1; new serialid[164]; gpci(playerid, serialid, sizeof(serialid)); new File:sfile = fopen("SerialBans.txt", io_read); if(sfile) { new banstr[164]; while(fread(sfile, banstr)) { if(!strcmp(banstr, serialid)) { SendClientMessage(playerid, 0x6EF83CFF, "blabla"); SetTimerEx("kick",100, false, "i", playerid); } } fclose(sfile); }