Gpci banning
#4

Right now all I see is you are comparing the gpci to a file path string. Which is always true. And you don't check if the file exists.

Код:
new zSerial[128], serialfile[128], pName[MAX_PLAYER_NAME], info[128];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
gpci(playerid, zSerial, 128);
format(serialfile,128,"GPCI/%s.txt",zSerial);

if(fexist(serialfile)) {
	format(info,128,"[SEC]:%s was kicked.[Reason: Hash Banned]",pName);
	ABroadCast(0xFF0000FF, info, 2) && Kick(playerid);
	return true;
}
Reply


Messages In This Thread
Gpci banning - by faff - 13.03.2016, 03:26
Re: Gpci banning - by AdmBot - 13.03.2016, 09:02
Re: Gpci banning - by faff - 13.03.2016, 09:23
Re: Gpci banning - by iPLEOMAX - 13.03.2016, 11:33
Re: Gpci banning - by faff - 13.03.2016, 13:01

Forum Jump:


Users browsing this thread: 1 Guest(s)