if(dini_Exists(bancheck)) { ClearChatbox(playerid, 10); if(!strcmp(dini_Get(bancheck,"BanName"),name,true)) { SCM(playerid, COLOR_NICERED,"=======================================BANNED ======================================"); SCM(playerid, COLOR_WHITE,"This ip adress is banned."); COLOR_NICERED,"=======================================BAN INFO====================================="); format(msg2,sizeof(msg2),"Name of account is banned from this ip %s: %s",playersip, dini_Get(bancheck,"BanName")); SCM(playerid, COLOR_WHITE,msg2); format(msg2,sizeof(msg2),"Banned by: %s",dini_Get(bancheck,"BannedBy")); SCM(playerid, COLOR_WHITE,msg2); format(msg2,sizeof(msg2),"Date of ban: %s",dini_Get(bancheck,"BanDate")); SCM(playerid, COLOR_WHITE,msg2); format(msg2,sizeof(msg2),"Reason of ban: %s",dini_Get(bancheck,"BanReason")); SCM(playerid, COLOR_WHITE,msg2);
Use INI_Int etc. instead of dini_Get, and i don't know of any way to check with "dini_Exists" for y_ini, but you should just use fexist for that.
I would recommend reading some y_ini tutorials though. |
if(dini_Exists(bancheck))
if(fexist(UserPath(playerid)))