13.03.2016, 03:26
Hello guys,
I'm scripting a GPCI ban system for someone. (Extra on the regular ban system)
I've used this part of code to check if he is GPCI banned.. (This is from OnPlayerConnect)
But it kicks players even if his GPCI isn't in the GPCI map.
At the moment there is no GPCI saved in the GPCI map but it still kicks every player.
This is the code to save GPCI's:
I hope somebody can help me!
Best of luck
I'm scripting a GPCI ban system for someone. (Extra on the regular ban system)
I've used this part of code to check if he is GPCI banned.. (This is from OnPlayerConnect)
Код:
new zSerial[128], serialfile[128], pName[MAX_PLAYER_NAME], info[128]; GetPlayerName(playerid, pName, MAX_PLAYER_NAME); format(serialfile,128,"GPCI/%s.txt",zSerial); format(info,128,"[SEC]:%s was kicked.[Reason: Hash Banned]",pName); gpci(playerid, zSerial, 128); if(strcmp(zSerial,serialfile)) ABroadCast(0xFF0000FF, info, 2) && Kick(playerid);
At the moment there is no GPCI saved in the GPCI map but it still kicks every player.
This is the code to save GPCI's:
Код:
stock BanGPCI(playerid) { gpci(playerid, pSerial, 128); new file[128]; format(file,128,"GPCI/%s.txt",pSerial); if(!fexist(file)) fcreate(file); return 0; }
Best of luck