[FilterScript] 0Admin - Sophisticated Administration System. [WHEN PLAYER LEAVES BUG FIXED]
#21

awesome! good job zh3r0 !
Reply
#22

Finally released. Gonna test it soon
Reply
#23

Nice
Reply
#24

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
Reply
#25

Looks nice.
Reply
#26

Wow EPIC RELEASE dude 9.4/10
Reply
#27

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
Reply
#28

I only need 1 word to describe this.


Awesome.
Reply
#29

Awesome Zh3r0 !
Reply
#30

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

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
Reply
#32

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.
Reply
#33

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?
Reply
#34

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!
Reply
#35

Great Work! GJ 10/10


I like this scipt.


Si BafTa in continuare in romaneste
Reply
#36

not so bad... that a basic FS
Reply
#37

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...
Reply
#38

Nice Script
Reply
#39

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

0 you are not 0, you are 1
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)