SA-MP Forums Archive
[FilterScript] GAdmin v2 - Integrated form with many new features (0.3.7 R2-1+ only) - 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] GAdmin v2 - Integrated form with many new features (0.3.7 R2-1+ only) (/showthread.php?tid=585036)

Pages: 1 2 3 4 5 6


Re: GAdmin v2 - Integrated form with many new features (0.3.7 R2-1+ only) - Jensenn - 16.09.2015

Quote:
Originally Posted by Gammix
Посмотреть сообщение
This FS is only meant for the latest SAMP version i.e. 0.3.7 R2-1 which is the updated one. Where as the plugins, it works with both latest or a level low of upgraded plugins, Includes as well.

I doubt you have the latest versions, if so do compile it before running it.

@Jensenn: The jail time is already in minutes, i guess!
No help pls -_-


Re: GAdmin v2 - Integrated form with many new features (0.3.7 R2-1+ only) - Gammix - 17.09.2015

Quote:
Originally Posted by Jensenn
Посмотреть сообщение
No help pls -_-
Oh sorry sir, i got this wrong. Actually the time is in seconds.

You can multiply them with 60. For example, you want maximum time to be 10 hours(10 * 60 * 60) and minimum to be 1 minute(60).

The timer works on seconds so your code would be:
pawn Код:
if(time > 10 * 60 * 60 || time < 60)
The first check is for maximum and the second for minimum.


Re: GAdmin v2 - Integrated form with many new features (0.3.7 R2-1+ only) - fahlevy - 17.09.2015

Quote:
Originally Posted by Gammix
Посмотреть сообщение
This FS is only meant for the latest SAMP version i.e. 0.3.7 R2-1 which is the updated one. Where as the plugins, it works with both latest or a level low of upgraded plugins, Includes as well.

I doubt you have the latest versions, if so do compile it before running it.

@Jensenn: The jail time is already in minutes, i guess!
last time in skype you told me that is you use old plugin.
and i think you fixed now. thank you .


Re: GAdmin v2 - Integrated form with many new features (0.3.7 R2-1+ only) - Jensenn - 17.09.2015

Quote:
Originally Posted by Gammix
Посмотреть сообщение
Oh sorry sir, i got this wrong. Actually the time is in seconds.

You can multiply them with 60. For example, you want maximum time to be 10 hours(10 * 60 * 60) and minimum to be 1 minute(60).

The timer works on seconds so your code would be:
pawn Код:
if(time > 10 * 60 * 60 || time < 60)
The first check is for maximum and the second for minimum.
ty


Re: GAdmin v2 - Integrated form with many new features (0.3.7 R2-1+ only) - Excips - 07.10.2015

This the best admin system I have ever used.

You may add offline stats view feature.


Re: GAdmin v2 - Integrated form with many new features (0.3.7 R2-1+ only) - Gammix - 15.10.2015

Update 2.3.3:
- Fixes K/D ratio bug
- Adds account validity check in BAN commands
- Validity check in /search command
- Fixes player connected time bug

Thanks SecretBoss for reporting these.

Everything is fixed, don't expect new features in future from me.


Re: GAdmin v2 - Integrated form with many new features (0.3.7 R2-1+ only) - AlexandreAymanito - 15.10.2015

Good Job Bro , Nice Admin System


Re: GAdmin v2 - Integrated form with many new features (0.3.7 R2-1+ only) - jlalt - 15.10.2015

Good Job +Rep


Re: GAdmin v2 - Integrated form with many new features (0.3.7 R2-1+ only) - SecretBoss - 15.10.2015

Well, I think that your new function won't fix your problem because you didn't define hours, minutes, seconds in function for example when you get the time the system will get 0 0 0 (I think)

Код:
PlayerConnectedTime(playerid, &hours, &minutes, &seconds)
{
	new connected_time = NetStats_GetConnectedTime(playerid);
	new CurrentTime[3];

	CurrentTime[2] = (connected_time / 1000) % 60;
	CurrentTime[1] = (connected_time / (1000 * 60)) % 60;
	CurrentTime[0] = (connected_time / (1000 * 60 * 60));

	new SavedTime[3];
	SavedTime[2] = SQL::GetIntEntry(""PLAYERS_TABLE"", "seconds", "id", User[playerid][id]);
	SavedTime[1] = SQL::GetIntEntry(""PLAYERS_TABLE"", "minutes", "id", User[playerid][id]);
	SavedTime[0] = SQL::GetIntEntry(""PLAYERS_TABLE"", "hours", "id", User[playerid][id]);

	new TotalTime[3];
	TotalTime[2] = CurrentTime[2] + SavedTime[2];
	TotalTime[1] = CurrentTime[1] + SavedTime[1];
	TotalTime[0] = CurrentTime[0] + SavedTime[0];
	if (TotalTime[2] >= 60)
	{
	    TotalTime[2] = 0;
	    TotalTime[1]++;

	    if (TotalTime[1] >= 60)
	    {
	        TotalTime[1] = 0;
	        TotalTime[2]++;
	    }
	}

	return true;
}
should sth like this

Код:
PlayerConnectedTime(playerid, &hours, &minutes, &seconds)
{
	new connected_time = NetStats_GetConnectedTime(playerid);
	new CurrentTime[3];
	
	CurrentTime[2] = (connected_time / 1000) % 60;
	CurrentTime[1] = (connected_time / (1000 * 60)) % 60;
	CurrentTime[0] = (connected_time / (1000 * 60 * 60));
	
	new key = DB::RetrieveKey(gGlobal[s_usertable], "username", ReturnPlayerName(playerid));
	new SavedTime[3];
	if(key != DB::INVALID_KEY)
	{
		SavedTime[2] = DB::GetIntEntry(gGlobal[s_usertable], key, "seconds");
		SavedTime[1] = DB::GetIntEntry(gGlobal[s_usertable], key, "minutes");
		SavedTime[0] = DB::GetIntEntry(gGlobal[s_usertable], key, "hours");
	}
	
	new TotalTime[3];
	TotalTime[2] = CurrentTime[2] + SavedTime[2];
	TotalTime[1] = CurrentTime[1] + SavedTime[1];
	TotalTime[0] = CurrentTime[0] + SavedTime[0];
	if (TotalTime[2] >= 60)
	{
	    TotalTime[2] = 0;
	    TotalTime[1]++;
	    
	    if (TotalTime[1] >= 60)
	    {
	        TotalTime[1] = 0;
	        TotalTime[2]++;
	    }
	}
	
	seconds = TotalTime[2];
	minutes = TotalTime[1];
	hours = TotalTime[0];
	return true;
}
But I am not so sure

- EDIT -

I just tested what I said and gives normal times instead of 0 0 0 that it used to give before edit


Re: GAdmin v2 - Integrated form with many new features (0.3.7 R2-1+ only) - AnthonyDaBestt - 23.11.2015

Nice one


Re: GAdmin v2 - Integrated form with many new features (0.3.7 R2-1+ only) - SpikY_ - 13.12.2015

So here i found another bug:
with /reports Command.

See these pictures
Before the Report:


And after the Report:


You see? the report is at last in which it should be at 1st place.
and yeah if i report more than twice, then in reports log. 1 reports repeats in all the number.


Re: GAdmin v2 - Integrated form with many new features (0.3.7 R2-1+ only) - Gammix - 14.12.2015

Quote:
Originally Posted by SpikY_
Посмотреть сообщение
So here i found another bug:
with /reports Command.

See these pictures
Before the Report:


And after the Report:


You see? the report is at last in which it should be at 1st place.
and yeah if i report more than twice, then in reports log. 1 reports repeats in all the number.
There will be a new update (v2.4) which will be fixing such issues and also some new features. The database library will be shifted to YourSQL. And there will be option to recover passwords through emails now.

Update will be available as soon as possible.


Re: GAdmin v2 - Integrated form with many new features (0.3.7 R2-1+ only) - Gammix - 16.01.2016

Update v2.4.0: Please read the Installation section if you are new to installing such filterscripts.
Please read the Features section if you want to know details or difference between older versions.


Re: GAdmin v2 - Integrated form with many new features (0.3.7 R2-1+ only) - Bolex_ - 17.01.2016

Nice ill take some cmds from here :P


Re: GAdmin v2 - Integrated form with many new features (0.3.7 R2-1+ only) - F1N4L - 17.01.2016

It is showing some warnings regarding your include "yoursql.inc" when compiling the gamemode.

Quote:

gadmin.pwn(199) : warning 213: tag mismatch
gadmin.pwn(202) : warning 213: tag mismatch
gadmin.pwn(58 : warning 213: tag mismatch
gadmin.pwn(1505) : warning 213: tag mismatch
gadmin.pwn(1522) : warning 213: tag mismatch
gadmin.pwn(1539) : warning 213: tag mismatch
gadmin.pwn(1556) : warning 213: tag mismatch
gadmin.pwn(2491) : warning 213: tag mismatch




Re: GAdmin v2 - Integrated form with many new features (0.3.7 R2-1+ only) - Gammix - 17.01.2016

Quote:
Originally Posted by F1N4L
Посмотреть сообщение
It is showing some warnings regarding your include "yoursql.inc" when compiling the gamemode.
Sorry, please re-download "yoursql.inc" since i made an update.

https://github.com/Gammix/SAMP-YourSQL


Re: GAdmin v2 - Integrated form with many new features (0.3.7 R2-1+ only) - F1N4L - 17.01.2016

Quote:
Originally Posted by Gammix
Посмотреть сообщение
Sorry, please re-download "yoursql.inc" since i made an update.

https://github.com/Gammix/SAMP-YourSQL
Thx for help!


Re: GAdmin v2 - Integrated form with many new features (0.3.7 R2-1+ only) - SpikY_ - 18.01.2016

Does this version include the fix of reports command?


Re: GAdmin v2 - Integrated form with many new features (0.3.7 R2-1+ only) - Gammix - 18.01.2016

Quote:
Originally Posted by SpikY_
Посмотреть сообщение
Does this version include the fix of reports command?
Yes and few other glitches, i guess.


Re: GAdmin v2 - Integrated form with many new features (0.3.7 R2-1+ only) - markparker12 - 19.01.2016

Nice Gamix!! Your new GAdmin update will surely rock!