SA-MP Forums Archive
Host problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Host problem (/showthread.php?tid=532819)



Host problem - meitaredri - 20.08.2014

Well I need your help guys !, when I banned someone in my private server and then Unban him - WORK.

When I banned some one in the HOST , and then Unban him - Not working.

For some reason I just need to click "save" on the ini file and it's work.

So my question is , there is a way to save a HOST file with the PAWN ?

Please !




Re: Host problem - rymax99 - 20.08.2014

You make absolutely no sense here, please explain further.


Re: Host problem - meitaredri - 20.08.2014

Alright i'll try , the problem is so simple.. when I /ban someone it's okay.. BUT when I Unban him ,it's make me wired problem , the problem not in the /unban or in the /ban the problem it's that the host not saving the information, and I need to go into the PLAYER.INI , and "save" it , then it's work.. and really un ban the player,

I need to know how to make the host save the information I give him.


Re: Host problem - xF4Life - 20.08.2014

Using BanEx? or another ban system?


Re: Host problem - meitaredri - 20.08.2014

Quote:
Originally Posted by xF4Life
Посмотреть сообщение
Using BanEx? or another ban system?
The problem not in the Ban system , it is the host problem ! , for example when I unban..

"Banned = 0;"
it's put it on the player file , but it is not saving it , I need to go to the host and click "save" then the player unbanned.


Re: Host problem - Guest4390857394857 - 20.08.2014

Show us your ban cmd.


Re: Host problem - xF4Life - 20.08.2014

Try this:
Код:
CMD:unban(playerid,params[]) {
	new str[50], User[50], name[MAX_PLAYER_NAME];
        GetPlayerName(playerid,name,sizeof(name));
	if(sscanf(params, "s[50]", User)) return SendClientMessage(playerid, -1, "[Info]: /Unban {Name}");
	format(str,sizeof(str),"/Bans/%s.ini", User);
	return dUserSetINT(name).("Banned",0);
}



Re: Host problem - meitaredri - 20.08.2014

Quote:
Originally Posted by xF4Life
Посмотреть сообщение
Using BanEx? or another ban system?
Quote:
Originally Posted by xF4Life
Посмотреть сообщение
Try this:
Код:
CMD:unban(playerid,params[]) {
	new str[50], User[50], name[MAX_PLAYER_NAME];
        GetPlayerName(playerid,name,sizeof(name));
	if(sscanf(params, "s[50]", User)) return SendClientMessage(playerid, -1, "[Info]: /Unban {Name}");
	format(str,sizeof(str),"/Bans/%s.ini", User);
	return dUserSetINT(name).("Banned",0);
}
This is my unban command , http://pastebin.com/EcNGVtdb
I still don't think the unban command is the problem , but you guys know batter then me that is for sure.


Re: Host problem - meitaredri - 23.08.2014

Help please..