SA-MP Forums Archive
[FilterScript] 0Admin - Sophisticated Administration System. [WHEN PLAYER LEAVES BUG FIXED] - 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: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] 0Admin - Sophisticated Administration System. [WHEN PLAYER LEAVES BUG FIXED] (/showthread.php?tid=255513)

Pages: 1 2 3 4


Re: 0Admin - Sophisticated Administration System. (130+ CMDS, VIP, ANTI, TOP, RANKS) - [RsM]XpLoD - 16.05.2011

awesome! good job zh3r0 !


Re: 0Admin - Sophisticated Administration System. (130+ CMDS, VIP, ANTI, TOP, RANKS) - CraZy_KiLLaH - 16.05.2011

Finally released. Gonna test it soon


Re: 0Admin - Sophisticated Administration System. (130+ CMDS, VIP, ANTI, TOP, RANKS) - Lazy_Duck - 16.05.2011

Nice


Re: 0Admin - Sophisticated Administration System. (130+ CMDS, VIP, ANTI, TOP, RANKS) - Zh3r0 - 16.05.2011

Quote:
Originally Posted by [KO]KillerThriller
View Post
New LuxAdmin? :b
Indeed it is! How you noticed? :O


@ OBSERVADOR I found what the problem was. I was using an %s without any data.

I will release another version with the bug fixes, but still if you want to solve it, do it yourself.


Replace all the code inside #if UPDATE_TOP_ALWAYS == true


with this:
pawn Code:
#if UPDATE_TOP_ALWAYS == true
                    new DBResult: R1;

                    format(Query, sizeof(Query), "SELECT `Key` FROM `Top` WHERE `Name` = \'%s\'", Name(Player));
                    R1 = DB::Query(_DB, Query);

                    if(R1)
                    {
                        if(DB::Valid(R1))
                        {
                            DB::Free(R1);
                            format(Query, sizeof(Query), "UPDATE `Top` SET `Kills` = \'%d\', `Ratio` = \'%.3f\' WHERE `Name` = \'%s\'", inputtext[0],  (Float:P_DATA[Player][Kills] / Float:P_DATA[Player][Deaths]), Name(Player));
                            DB::Query(_DB, Query);
                        }
                        else
                        {
                            DB::Free(R1);
                            format(Query, sizeof(Query), "INSERT INTO `Top` (`Name`, `Deaths`,`Ratio`) VALUES(\'%s\',\'%d\',\'%.3f\')",Name(Player), inputtext[0], (Float:P_DATA[Player][Kills] / Float:P_DATA[Player][Deaths]));
                            DB::Query(_DB, Query);
                        }
                    }
                #endif


Lines: 7931 - 7984


Re: 0Admin - Sophisticated Administration System. (130+ CMDS, VIP, ANTI, TOP, RANKS) - vyper - 16.05.2011

Looks nice.


Re: 0Admin - Sophisticated Administration System. (130+ CMDS, VIP, ANTI, TOP, RANKS) - Michael@Belgium - 16.05.2011

Wow EPIC RELEASE dude 9.4/10


Re: 0Admin - Sophisticated Administration System. (130+ CMDS, VIP, ANTI, TOP, RANKS) - OBSERVADOR - 17.05.2011

Quote:
Originally Posted by Zh3r0
View Post
Indeed it is! How you noticed? :O


@ OBSERVADOR I found what the problem was. I was using an %s without any data.

I will release another version with the bug fixes, but still if you want to solve it, do it yourself.


Replace all the code inside #if UPDATE_TOP_ALWAYS == true


with this:
pawn Code:
#if UPDATE_TOP_ALWAYS == true
                    new DBResult: R1;

                    format(Query, sizeof(Query), "SELECT `Key` FROM `Top` WHERE `Name` = \'%s\'", Name(Player));
                    R1 = DB::Query(_DB, Query);

                    if(R1)
                    {
                        if(DB::Valid(R1))
                        {
                            DB::Free(R1);
                            format(Query, sizeof(Query), "UPDATE `Top` SET `Kills` = \'%d\', `Ratio` = \'%.3f\' WHERE `Name` = \'%s\'", inputtext[0],  (Float:P_DATA[Player][Kills] / Float:P_DATA[Player][Deaths]), Name(Player));
                            DB::Query(_DB, Query);
                        }
                        else
                        {
                            DB::Free(R1);
                            format(Query, sizeof(Query), "INSERT INTO `Top` (`Name`, `Deaths`,`Ratio`) VALUES(\'%s\',\'%d\',\'%.3f\')",Name(Player), inputtext[0], (Float:P_DATA[Player][Kills] / Float:P_DATA[Player][Deaths]));
                            DB::Query(_DB, Query);
                        }
                    }
                #endif


Lines: 7931 - 7984
Thanks Soo much


I\'ll do it


Re: 0Admin - Sophisticated Administration System. (130+ CMDS, VIP, ANTI, TOP, RANKS) - ViruZZzZ_ChiLLL - 17.05.2011

I only need 1 word to describe this.


Awesome.


Re: 0Admin - Sophisticated Administration System. (130+ CMDS, VIP, ANTI, TOP, RANKS) - IstuntmanI - 17.05.2011

Awesome Zh3r0 !


Re: 0Admin - Sophisticated Administration System. (130+ CMDS, VIP, ANTI, TOP, RANKS) - jejemonerz123 - 19.05.2011

OMG Zh3r0 its a admin system please add /report :P


Re: 0Admin - Sophisticated Administration System. (130+ CMDS, VIP, ANTI, TOP, RANKS) - Zh3r0 - 19.05.2011

Quote:
Originally Posted by jejemonerz123
View Post
OMG Zh3r0 its a admin system please add /report :P
OMG Jeje!! Add it for yourself if you want it so badly , OMGOMGOMGOMG


Re: 0Admin - Sophisticated Administration System. (130+ CMDS, VIP, ANTI, TOP, RANKS) - [NoV]LaZ - 19.05.2011

Quote:
Originally Posted by Zh3r0
View Post
OMG Jeje!! Add it for yourself if you want it so badly , OMGOMGOMGOMG
He pointed a major flaw in your \'admin\' system, the lack of a system for your players to report cheaters. It\'s much more useful that other commands (cookies?...) designed to abuse and not admin your server properly.


Re: 0Admin - Sophisticated Administration System. (130+ CMDS, VIP, ANTI, TOP, RANKS) - geerdinho8 - 31.05.2011

A few questions:


- How to use adminchat?

- How to use vipchat?

- How to give someone admin?

- How to give someone VIP?

- How to change your name?


Re: 0Admin - Sophisticated Administration System. (130+ CMDS, VIP, ANTI, TOP, RANKS) - [KO]KillerThriller - 01.06.2011

Quote:
Originally Posted by Zh3r0
View Post
Indeed it is! How you noticed? :O


@ OBSERVADOR I found what the problem was. I was using an %s without any data.

I will release another version with the bug fixes, but still if you want to solve it, do it yourself.


Replace all the code inside #if UPDATE_TOP_ALWAYS == true


with this:
pawn Code:
#if UPDATE_TOP_ALWAYS == true
                    new DBResult: R1;

                    format(Query, sizeof(Query), "SELECT `Key` FROM `Top` WHERE `Name` = \'%s\'", Name(Player));
                    R1 = DB::Query(_DB, Query);

                    if(R1)
                    {
                        if(DB::Valid(R1))
                        {
                            DB::Free(R1);
                            format(Query, sizeof(Query), "UPDATE `Top` SET `Kills` = \'%d\', `Ratio` = \'%.3f\' WHERE `Name` = \'%s\'", inputtext[0],  (Float:P_DATA[Player][Kills] / Float:P_DATA[Player][Deaths]), Name(Player));
                            DB::Query(_DB, Query);
                        }
                        else
                        {
                            DB::Free(R1);
                            format(Query, sizeof(Query), "INSERT INTO `Top` (`Name`, `Deaths`,`Ratio`) VALUES(\'%s\',\'%d\',\'%.3f\')",Name(Player), inputtext[0], (Float:P_DATA[Player][Kills] / Float:P_DATA[Player][Deaths]));
                            DB::Query(_DB, Query);
                        }
                    }
                #endif


Lines: 7931 - 7984
I ment, like it\'s not an edit, like everyone thought lux admin was the best, now this beats luxadmin.

So i said "new luxadmin?" xD!


Re: 0Admin - Sophisticated Administration System. (130+ CMDS, VIP, ANTI, TOP, RANKS) - [RSL]PoLicE - 17.06.2011

Great Work! GJ 10/10


I like this scipt.


Si BafTa in continuare in romaneste


Re : 0Admin - Sophisticated Administration System. (130+ CMDS, VIP, ANTI, TOP, RANKS) - TheDarkWolf18 - 20.07.2011

not so bad... that a basic FS


Re: Re : 0Admin - Sophisticated Administration System. (130+ CMDS, VIP, ANTI, TOP, RANKS) - Zh3r0 - 20.07.2011

Quote:
Originally Posted by TheDarkWolf18
View Post
not so bad... that a basic FS
It ain\'t no basic, lol:O


@DRIFT_HUNTER, I don\'t know what crashes it, so can\'t solve it...The script behaves brilliantly on Windows..but on Linux...bah...


Re: 0Admin - Sophisticated Administration System. [WHEN PLAYER LEAVES BUG FIXED] - flameartist - 07.08.2011

Nice Script



Re: 0Admin - Sophisticated Administration System. [WHEN PLAYER LEAVES BUG FIXED] - Zh3r0 - 07.08.2011

Quote:
Originally Posted by flameartist
View Post
Nice Script
Why did you post my signature lol


Re: 0Admin - Sophisticated Administration System. [WHEN PLAYER LEAVES BUG FIXED] - ylleron - 07.08.2011

0 you are not 0, you are 1