PDA

View Full Version : [FilterScript] [FS] Cales **Awesome-Administration** v1.5 !!Major Bug fix!!


PinkFloydLover
03/04/2008, 09:23 AM
Hello everyone i am releasing my new Adminastration system :mrgreen:

Credits:
Kyeman's spectate filterscript ( i am using 1 command from it )
wikitmp.sa-mp.com

Features:

this admin system has some chat logs and all of that stuff. heres the logs:

chat logs
commands
connects
disconnects
Kicks
reports
spawns
PMs


Also admins have commands like /seePMs which will show the private messages to admins and also commands like /seeCMDs which will obviosly show commands to admins

Jail players and they can't use commands while jailed.

a antiminigun system. so if someone types /antiminigun it checks every 5 seconds if a player has a minigun if somone has got a minigun it will remove his weapons and send a message to all admins saying "%s is using a minigun and has had his weapons ressetted"...


it also has good register/login commands :), when you register a file gets created in the scriptfiles/users folder here is an example of what mine would display ;)

Password=test
Level=mylevel
IP=127.0.0.1
TimesMuted=7
TimesJailed=1
TimesKicked=1
DayRegistered 1
MonthRegistered 3
YearRegistered 2008
Deaths = 2
Kills = 12313131313131311423435647787686352452


that is just an example of my file.
when you connect you automatically get all your stats which you had when you where last on
including deaths & kills + otherstuff

Commands:

/mute
/umute
/slap
/muteall
/unmuteall
/kick
/weather
/setmoney
/explodeall");
/akill
/ban
/healall
/armourall
/goto
/get
/freeze
/giveweapon
/eject");
/(un)lockrcon
/jail
/sethealth
/getcar
/gmx
/unfreeze
/setarmour
/ejectall");
/rain
/foggy
/sandstorm
/bluesky
/stormy
/givemoney
/setskin
/startclock");
/warn
/setwanted
/explode
/akillall
/unloadfs
/loadfs
/removecash
/stopclock");
/giveallweapon
/setkills
/setdeaths
/changemode
/skydiveall
/skydive
/stopallclock");
/jetpack
/antiminigun
/force
/forceall
/carhealth
/ann
/say
/ssay
/startallclock
/settime
/colour
/spec
/specoff
/kickall
/carcolour
/god
/godoff
/godcar
/godcaroff
/gravity
/setallhealth

Making yourself admin
There are 2 ways of making yourself admin.

1. Go on. register disconnect then go into your scriptfiles/Awesomeadmin/users folder and click on your name and change the level from 0 to 10

2. Go on, register, log into rcon, then type /setlevel [id] [level].

Bugs
v1.0
somtimes the /setkills and /setdeaths don't work And the register and login system somtimes crashes >>[FIXED]
v1.5
Not sure, if you find any mention it

Download:

-------------------------------------------------------------
v1.0 << not recommended

MediaFire = http://www.mediafire.com/?x1pvc9bjmzn

SendSpace = http://www.sendspace.com/file/xrenz9
-------------------------------------------------------------
v1.5 << Recommended

SendSpace (http://www.sendspace.com/file/bbm1ze)

RapidShare (http://rapidshare.com/files/104978906/AwesomeAdmin.rar.html)

MediaFire (http://www.mediafire.com/?l11ttvtwjyn)
-------------------------------------------------------------

ChangeLog:
v1.0
First release

v1.5
Major bug fix with /register and /login command (once you register and disconnect then login it would crash)
also fixed the /setdeaths and /setkills so it now saves it to a file and reads it again when you connect ;)

Mirrors accepted :D
And also if you guys have any requests just ask, i will probebly add them in ;)

aleksandra
03/04/2008, 10:36 AM
Very nice! keep working =)

PinkFloydLover
03/04/2008, 11:07 AM
Very nice! keep working =)

thanks 8)

PinkFloydLover
03/04/2008, 11:21 AM
ok but i don't have #pragma tabsize 0 in this script

PinkFloydLover
03/04/2008, 11:28 AM
when i compile i get no indentation warnings, and i dont even have a #pragma tabsize 0 in my script, what are you talking about?

PinkFloydLover
03/04/2008, 11:53 AM
this is the /muteall command copyed from the axact script you downloaded


if(strcmp(cmd,"/muteall",true) == 0)
{
new tmp[128];
if(gPlayerLogged[playerid] == 0)
{
SendClientMessage(playerid,COLOR_BRIGHTRED,"Please login before you use this command!");
return 1;
}
if(PlayerInfo[playerid][Level] <= 2)
{
SendClientMessage(playerid,COLOR_RED,"You have to be Level 3 to use this command!");
return 1;
}
for(new i=0;i<MAX_PLAYERS;i++)
{
if(IsPlayerConnected(i))
{
tmp = strtok(cmdtext, idx);
new string[128];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
format(string,sizeof(string)," * You have all been muted by Admin %s",name);
SendClientMessageToAll(COLOR_YELLOW,string);
PlayerInfo[i][Muted] = 1;
}
}
return 1;
}

P1nd3r
03/04/2008, 02:02 PM
Sounds good to me, may be your best FS. ;)

ALEXALEX303
03/04/2008, 03:32 PM
A download LINK Please

kaisersouse
03/04/2008, 03:34 PM
A download LINK Please

No link because it has errors/warnings and until those are fixed it cant be released

Warriors_Tornado
03/04/2008, 06:33 PM
i dont see download link
its removed
please give another mirror

[KeE]V8MANIAC
03/04/2008, 07:01 PM
i dont see download link
its removed
please give another mirror


Please, read the whole topic and you will understand why it's not avaliable.

PinkFloydLover
04/04/2008, 03:17 AM
it should be ready by tomorrow.. sorry guys

[KeE]V8MANIAC
04/04/2008, 03:47 AM
I need sombody that can run my script on there server.. PM me if you want to

Send you a PM with info, I'm testing it now.

PinkFloydLover
04/04/2008, 02:14 PM
Ok sorry guys but its now ready for download. please report any bugs and also im running out of ideas so if you want something in it. just mention it i will prbebly add it

dacads
04/04/2008, 02:21 PM
Yo nice script, i've been looking for a new Admin FS :)

PinkFloydLover
04/04/2008, 02:52 PM
Dacads ]
Yo nice script, i've been looking for a new Admin FS :)

thanks alot 8)

Killerkid
04/04/2008, 03:20 PM
You need to a hash system for your passwords.
The indentation is still bad :s.

PinkFloydLover
04/04/2008, 03:38 PM
I decided not to put a password_hash because I think there useless, and if a player forgets their password I can just check it and tell them.

it compiles with no indentation. It's just in a straight line, but in the next version I will fix the "indentation problems".

mabako
04/04/2008, 04:13 PM
I decided not to put a password_hash because I think there useless, and if a player forgets their password I can just check it and tell them.

it compiles with no indentation. It's just in a straight line, but in the next version I will fix the "indentation problems".


and if someone uses a password everywhere, you got his password for all his accounts, eh?

weedarr
04/04/2008, 04:42 PM
Well mabye that person isnt stupid and uses different passwords?

WeeDarr

[KeE]V8MANIAC
04/04/2008, 07:11 PM
I decided not to put a password_hash because I think there useless, and if a player forgets their password I can just check it and tell them.

it compiles with no indentation. It's just in a straight line, but in the next version I will fix the "indentation problems".


and if someone uses a password everywhere, you got his password for all his accounts, eh?


And if someone type "t/login password" in any admin system and everybody see his password, everybody got his password for all his accounts? Don't think it work like that.
I would simply ignore such a mistake.

Zh3r0
04/04/2008, 07:15 PM
Nice man you got an awesome administration filterscript ;) good work cale

PinkFloydLover
05/04/2008, 02:56 AM
Nice man you got an awesome administration filterscript ;) good work cale

thanks man :D

PinkFloydLover
05/04/2008, 05:32 AM
Version 1.5 is out now!! Please Download!!

Updates:

* Fixed the register and login feature (It now doesn't crash when you log in )

* Fixed the /setdeaths and /setkills command for admins (it now saves the stats to a file and reads it when you log on)

[ETP]Blazer[L]
06/04/2008, 01:02 AM
Hey, awsome script, trying this admin system, in place of Ladmin. Though I have a question what is the highest admin level? and Can I use the Ladmin Member files in Users?

Exuro
06/04/2008, 01:57 AM
Pretty decent, few commands missing.

t0mz93
06/04/2008, 03:06 AM
Lol, theres a small problem, i uploaded this onto my server with LVDM3 and it said "blank script" in the mode, i put my admin back to the previous 1 i used (not saying) and it came up mode :lv money grab& dm, if this is something IVE done wrong, let me know because i would like to give this script a go.

TheBigShow
07/04/2008, 12:04 AM
could you put the commands by levels? could make my work a lot easier

PinkFloydLover
07/04/2008, 04:56 AM
knutico ]
could you put the commands by levels? could make my work a lot easier

commands are by level... example level 10 can only do /gmx and /unloadfs and level 3 can do like sethealth and stuff..Blazer[L] ]
Hey, awsome script, trying this admin system, in place of Ladmin. Though I have a question what is the highest admin level? and Can I use the Ladmin Member files in Users?

highest admin level is 10
Some commands don't exist, For an example = /givemoney

sorry mate i forgot to remove it from the list but in the next version i will add all the ones i have missed
Lol, theres a small problem, i uploaded this onto my server with LVDM3 and it said "blank script" in the mode, i put my admin back to the previous 1 i used (not saying) and it came up mode :lv money grab& dm, if this is something IVE done wrong, let me know because i would like to give this script a go.

i will work it out and see what the problem is

Polar
08/04/2008, 06:53 AM
Hey :D

I love your script ! i has everything you need + an register / login system !!

There's only one thing...can you make that it saves the account money ? :D

Greetings !

stephenc-2k7
08/04/2008, 07:58 AM
Another thing

could u add a /acommands so admins can see all the admin commands in a list

Thats the only reason why i dont use this, because i dont know any commands :P


thx :)

PinkFloydLover
08/04/2008, 08:56 AM
Ryanc229 ]
Another thing

could u add a /acommands so admins can see all the admin commands in a list

Thats the only reason why i dont use this, because i dont know any commands :P


thx :)

ohh sorry I forgot to mention type /admincmds to view the commands

Hey :D

I love your script ! i has everything you need + an register / login system !!

There's only one thing...can you make that it saves the account money ? :D

Greetings !

sure mate i will add one in the next version :)

Polar
08/04/2008, 09:49 AM
sure mate i will add one in the next version :)
[/quote]

Nice :D cant wait !!

Have any timeline ? :P

PinkFloydLover
08/04/2008, 09:54 AM
what do u mean by timeline?

Polar
08/04/2008, 09:55 AM
When the next release is coming ;)

PinkFloydLover
08/04/2008, 10:01 AM
ohh the next release should be done in maybe 3 or 4 days. maybe less :) so if u have any requests ask :)

Polar
08/04/2008, 10:03 AM
ok....ill think about it !

1 : An off command for /antiminigun !!


When ill now more ill post them !

Polar
09/04/2008, 12:17 PM
Hey :D

/nitro ( get nitro on a car ! )
/teleportto [id] [id] ( teleport 1 player to another )
/freezeall ( freeze all players )
/unfreezeall ( unfreeze all players ! )

If i come with more ideas....ill post (H)

PinkFloydLover
09/04/2008, 12:30 PM
kk i've already added your /antiminigunoff request and alot more like admin chat and other stuff, now im just fixing a "jail" bug.

:D

ill keep yuor requests in mind

Francis[French]
09/04/2008, 10:48 PM
Yes, it is.
But it should look like this:
if(strcmp(cmd,"/muteall",true) == 0)
{
new tmp[128];
if(gPlayerLogged[playerid] == 0)
{
SendClientMessage(playerid,COLOR_BRIGHTRED,"Please login before you use this command!");
return 1;
}
if(PlayerInfo[playerid][Level] <= 2)
{
SendClientMessage(playerid,COLOR_RED,"You have to be Level 3 to use this command!");
return 1;
}
for(new i=0;i<MAX_PLAYERS;i++)
{
if(IsPlayerConnected(i))
{
tmp = strtok(cmdtext, idx);
new string[128];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
format(string,sizeof(string)," * You have all been muted by Admin %s",name);
SendClientMessageToAll(COLOR_YELLOW,string);
PlayerInfo[i][Muted] = 1;
}
}
return 1;
}
You shall:
1) remove strtok from your script and make "dini.inc" included (I think it's there now, isn't it?)
2) Remove the 'tmp' defining from every single command, use it on OnPlayerCommandText start instead. (saving some memory)
This would spam everyone... Look where the sendclientmessage is sent...

PinkFloydLover
10/04/2008, 04:28 AM
ok i will try fix this and alot of other things in the next version

[BAM]Revange100
10/04/2008, 01:10 PM
I have 4 errors

C:\Documents and Settings\Compaq_Ejer\Skrivebord\mine ting\samp022server.win32\pawno\include\dini.inc(43 ) : error 017: undefined symbol "MAX_STRING"
C:\Documents and Settings\Compaq_Ejer\Skrivebord\mine ting\samp022server.win32\pawno\include\dini.inc(43 ) : error 009: invalid array size (negative, zero or out of bounds)
C:\Documents and Settings\Compaq_Ejer\Skrivebord\mine ting\samp022server.win32\pawno\include\dini.inc(43 ) : error 036: empty statement
C:\Documents and Settings\Compaq_Ejer\Skrivebord\mine ting\samp022server.win32\pawno\include\dini.inc(43 ) : fatal error 107: too many error messages on one line

sebihunter
10/04/2008, 01:13 PM
Whow! Really nice!!
Keep it up

Francis[French]
10/04/2008, 02:50 PM
ok i will try fix this and alot of other things in the next version
Don't try, do it, its the easiest thing to fix..

PinkFloydLover
11/04/2008, 06:27 AM
Revange100 ]
I have 4 errors

C:\Documents and Settings\Compaq_Ejer\Skrivebord\mine ting\samp022server.win32\pawno\include\dini.inc(43 ) : error 017: undefined symbol "MAX_STRING"
C:\Documents and Settings\Compaq_Ejer\Skrivebord\mine ting\samp022server.win32\pawno\include\dini.inc(43 ) : error 009: invalid array size (negative, zero or out of bounds)
C:\Documents and Settings\Compaq_Ejer\Skrivebord\mine ting\samp022server.win32\pawno\include\dini.inc(43 ) : error 036: empty statement
C:\Documents and Settings\Compaq_Ejer\Skrivebord\mine ting\samp022server.win32\pawno\include\dini.inc(43 ) : fatal error 107: too many error messages on one line



try updating dini, dudb and dutils and also thats in the dini include, unless u edited it there should be nothing wrong, or u didn't put all the includes into your pawno/includes folder im geussing



Whow! Really nice!!
Keep it up

thanks alot

Francis ]

ok i will try fix this and alot of other things in the next version
Don't try, do it, its the easiest thing to fix..

i have to try to do it :S

[BAM]Revange100
11/04/2008, 01:27 PM
If any1 can help me PM me

[BAM]Revange100
11/04/2008, 01:46 PM
Revange100 ]
If any1 can help me PM me

Those are dini.inc errors, you've probably done something wrong yourself.
How??? I duuno how to "fix the dini"

[BAM]Revange100
11/04/2008, 01:52 PM
Ok i'll try

[BAM]Revange100
11/04/2008, 01:55 PM
Better, but still one error
C:\Documents and Settings\Compaq_Ejer\Skrivebord\mine ting\samp022server.win32\pawno\include\dini.inc(24 ) : fatal error 100: cannot read from file: "dutils"

[BAM]Revange100
11/04/2008, 02:26 PM
Where is that?? there is only "time" and "dini" in the includes folder

Polar
15/04/2008, 01:33 PM
When is the new version coming ????

[SOA]Spider
01/05/2008, 03:20 PM
This is awesome, man :o!

guko2000
13/02/2009, 11:23 AM
in dini in pawno:


stock strtok(const string[], &index)
{
new length = strlen(string);
while ((index < length) && (string[index] <= ' '))
{
index++;
}
new offset = index;
new result[20];
while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
{
result[index - offset] = string[index]; index++;
}
result[index - offset] = EOS;
return result;
}


what is strtok

kLx
08/03/2009, 04:44 PM
Nice system, here's a mirror :
http://89.249.88.169/AwesomeAdmin.rar

razorba
16/03/2009, 07:41 PM
why server crash when i try to /register :?: :?:

mrcoolballs
03/09/2010, 07:39 PM
Great works perfectly :)

Swat123
22/02/2011, 03:57 AM
Aww All the links don't work :(
The download is unavailable