Any solution or help - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Any solution or help (
/showthread.php?tid=208844)
Any solution or help -
Mr.Stranger - 09.01.2011
How to make a system when a player kick/ban a player it will record the kicks/bans. For example
Admin Michael kicked Thomas [REASON: NONE] Total Kicks : 1
Admin Michael kicked Luis [REASON: NONE] Total Kicks : 2
Admin Michael kicked seppy [REASON: NONE] Total Kicks : 3
Something like this
Re: Any solution or help -
Outcast - 09.01.2011
Everytime you /kick somone you can make it increase the value by 1 stored in a .ini file. I can't script it but you can do it with Dimi. Make it when you /kick to first increase the value by 1 and then to read it. Sorry, I'm still a newbie at all this.
Re: Any solution or help -
Mr.Stranger - 09.01.2011
no problem kreso932. I have already done that. Not works
Re: Any solution or help -
Alex_Valde - 09.01.2011
You will need to save it with something like dini, y_ini ,SII, whatever and make when you call a command kick/ban something like kicks++, bans++ and then save it.
Not too hard.
Re: Any solution or help -
Mr.Stranger - 09.01.2011
well it will show only if a player relog in server
Re: Any solution or help -
JaTochNietDan - 09.01.2011
I don't know what you want...like they said, store it in a file using dini or y_ini, and then read it when you want to show it. For example:
pawn Код:
// Kick command increase the amount of kicks
dini_IntSet("ServerStats.ini","TotalKicks",dini_Int("ServerStats.ini","TotalKicks") + 1);
// Show kicks...
format(string,sizeof(string),"%s was kicked by admin %s, Total Kicks: %d",name[playerid],name[id],dini_Int("ServerStats.ini","TotalKicks"));
SendClientMessageToAll(string,COLOR_WHITE);
How else can we help?
Re: Any solution or help -
Toreno - 09.01.2011
You can make a simple stock using fread, io_write..
Re: Any solution or help -
Mr.Stranger - 09.01.2011
Quote:
Originally Posted by JaTochNietDan
I don't know what you want...like they said, store it in a file using dini or y_ini, and then read it when you want to show it. For example:
pawn Код:
// Kick command increase the amount of kicks dini_IntSet("ServerStats.ini","TotalKicks",dini_Int("ServerStats.ini","TotalKicks") + 1);
// Show kicks... format(string,sizeof(string),"%s was kicked by admin %s, Total Kicks: %d",name[playerid],name[id],dini_Int("ServerStats.ini","TotalKicks")); SendClientMessageToAll(string,COLOR_WHITE);
How else can we help?
|
Thankz it helped me alot