Vice City: Multiplayer

Server Development => Scripting and Server Management => Topic started by: FinchDon on Sep 06, 2015, 02:56 AM

Title: Staff System
Post by: FinchDon on Sep 06, 2015, 02:56 AM
Well I am tired to go in Database again and again so i want Can i make admin command which can do like this

adminlist then in account table if player lvl is above from 2 he show in adminlist command


Note( I am using Fuzzie Account System )
Title: Re: Staff System
Post by: KAKAN on Sep 06, 2015, 03:23 AM
Write it in a notepad or make a command like
else if ( cmd =="adminlist")
{
EchoMessage("Level 2:");
EchoMessage("Players");
}
It would be easier than ...
Title: Re: Staff System
Post by: FinchDon on Sep 06, 2015, 03:46 AM
lol i can make like that

if ( cmd == "adminlist" )
{
Message( "Owner Finch" );
Message( "CoOwner ZUBI" );
}

Not like that Auto like from queries of Accounts

Like if ( player.Level > 2 ) Message( "admins "  + player + " like that
Title: Re: Staff System
Post by: KAKAN on Sep 06, 2015, 04:38 AM
What do u think, that will give the level of the online players, I'll soon try to make a query for it
Title: Re: Staff System
Post by: Debian on Sep 06, 2015, 07:05 AM
 Create a string which holds players with level higher than 1 so that it will grab all players with level > 1 in one line. Select level from database and run a loop by making it read a next row by using  GetSQLNextRow  terminate when there are no more rows remaining then create a message to show admin list to the players.

Updated
Title: Re: Staff System
Post by: KAKAN on Sep 06, 2015, 07:50 AM
I never heard about GetSQLnextRow, any examples would be really useful..
Title: Re: Staff System
Post by: FinchDon on Sep 06, 2015, 07:54 AM
Example?
Title: Re: Staff System
Post by: Debian on Sep 06, 2015, 08:17 AM
http://liberty-unleashed.co.uk/VCWiki/Scripting/Squirrel/Functions/SQLite/GetSQLNextRow
Title: Re: Staff System
Post by: MacTavish on Sep 07, 2015, 07:41 AM
Haha this system is already made by me month ago i would share it when i got time
Title: Re: Staff System
Post by: KAKAN on Sep 07, 2015, 07:45 AM
Thanks, I too need it!
Title: Re: Staff System
Post by: FinchDon on Sep 07, 2015, 09:34 AM
Thanks @Kusanagi
Title: Re: Staff System
Post by: MacTavish on Sep 07, 2015, 11:51 AM
actually i made a totally separate system for stafflist a table some function and queries that automatic checks and update admin level on player join because i got many problems from checking the level from account table when the table has 500+ accounts registered

Title: Re: Staff System
Post by: KAKAN on Sep 07, 2015, 12:10 PM
Oh! Nice way tho :P