[FilterScript] GAdmin v2 - Integrated form with many new features (0.3.7 R2-1+ only)
#41

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 -_-
Reply
#42

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

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

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

This the best admin system I have ever used.

You may add offline stats view feature.
Reply
#46

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

Good Job Bro , Nice Admin System
Reply
#48

Good Job +Rep
Reply
#49

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

Nice one
Reply
#51

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

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

Update v2.4.0:
  • New interface and design.
  • Quiet improved code with good optimization.
  • Fixed BAN system.
  • New player commands: /givegun, /givemoney, /top10 etc.
  • Removed unecessary commands and code
  • Now works on YourSQL from EasyDB.
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.
Reply
#54

Nice ill take some cmds from here :P
Reply
#55

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

Reply
#56

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

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

Does this version include the fix of reports command?
Reply
#59

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

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


Forum Jump:


Users browsing this thread: 13 Guest(s)