[FilterScript] GiDan Admin System by: Gagi & Danijel96.pwn
#1

Hello everyone here's another Admin system. We were bored so we decided to make this.
This is our first filterscript
If you have any suggestions or you find bugs for this filterscript tell me
And sorry for my bad English


Features:
+Ping kicker - max ping is 500 you can change it just find MAX_PING
+Anti spam - players can spam but they will be kicked
+Simple Anti swear - You can put your words and players can't write that swear
+VIP System - There is 3 VIP levels: Bronze VIP,Silver VIP,Gold VIP
+RCON support - You can use /rsupport and you can: change server name, change map name, change web adress, LOCK/Unlock server,restart server,change RCON pass, turn off server
+Register & Login - Reg and Login is into dialog and udb_hash for hash password
+BanLog - All bans has saved into /GiDan/Bans.txt
+AskLog - All questions has saved into /GiDan/AskLog.txt
+Warn system - After 5 warns player will been kicked and all the time when he connect
+Skin,Warns,Admin.... - all data are stored into /Players
+Spectating - When spectate somebody textdraw appears to the left side with player informations
Photo for spectating
+Countdown - With command /count you can put how much time to count
+Admin - 5 admin levels

Admin Commands

Level 1:
/duty - Player can be on duty and off duty
/ban - Ban player
/kick - Kick player
/goto - Teleport to player
/[un]mute - Mute player and he can't speak
/getip - Get ip from some player
/slap - Slap player
/amsg - Send answer to player or some message
/achat - Chat between admins
/gotopos - Go to positions x,y,z,interior
/clearchat - Clear chat for all players
/count - Simple countdown system where

Level 2:
+Admin level 1 commands
/announce - Text with gametext for all players
/[un]freeze - You can freeze some player
/spec[off] - Specate players and there is textdraws
/heal - Set your health to 100
/setskin - Set skin to player
/eject - Eject player from vehicle
/setvhealth - Set vehicle health of some player
/jetpack - Use jetpack

Level 3:
+Admin level 1 commands
+Admin level 2 commands
/kill -Kill a player you have chosen
/warn - Warn some player when he have 5 warn he will be kicked
/setwtime - Change time for all
/porthere - Port player to you
/amoney - Give money to player
/aweapon - Give weapon to player
/fixcar - Fix car for admin
/setcarcolour - Set color of vehicle

Level 4:
+Admin level 1 commands
+Admin level 2 commands
+Admin level 3 commands
/unban - Unban player
/unbanip - Unbanip
/killall - Kill all connected players
/explode - Explode a player
/healall - Heall all connected players
/armourall - Armour all connected players
/rac - Respawn all cars
/disarm - Disarm a player

Level 5:
+Admin level 1 commands
+Admin level 2 commands
+Admin level 3 commands
+Admin level 4 commands
/setadmin - Set admin to player
/allips - All ips of connected players
/portall - Port all connected players to admin
/setscore - Set score a player
/setweather - Set wather a player
/kickall - Kick all players
/gmx - Restart the server
/muted - All muted players
/frozenp - List of all frozen players
/setvip - Set VIP to player

VIP Commands

Bronze VIP:
/vfix - Fix your car
/vvehcolor - Change color of you car
/vbike - Spawn bike (player choose bike)
/vipheal - Heal player
/varmour - Give armour to player
/vchat - Chat for VIP players

Silver VIP:
+Bronze VIP commands
/vskin - Change skin to choosen
/vweather - Change weather to choosen
/vtime - Change time for player
/vcar - Spawn car(player choose car)
/vjetpack - Player use jetpack


Gold VIP:
+Bronze VIP commands
+Silver VIP commands
/vheli - Spawn heli (player choose heli)
/vnos - Add nos to vehicle
/vplane - Spawn plane(player choose plane)

How to...
1) Make yourself admin
2) Make new VIP commands


1)
-Connect to server and register new account
-Then log in RCON admin
-Use /setadmin [Player ID/Player Name] [Level]. Max level is 5

2)
Code:
YCMD:vchat(playerid, params[], help)
{
        #pragma unused help
        if(P_Data[playerid][VIP] == 0) return SCM(playerid, COLOR_RED, "You need to be VIP player!"); //Put 0 for Bronze VIP player, < 2 for Silver VIP player and < 3 for Gold VIP player 
       //There what to do in command
        return 1;
}
Download
Download. Click.


Credits
Y_Less - sscanf,foreach,YSI
Gagi and Danijel96.pwn - Make this filterscript
Peinneon - When I saw his VIP system I got the idea to create and VIP system
Karike - Example for countdown
Pacino - Some help with GPS
Incognito - Streamer


Update 1.1
Anti Health hack - Tested
Anti Armour hack - Tested
Vote Kick /votekick | /vote and /stopvote for admins with textdraw
Photo for VoteKick

Black list - Type /addblack [Player name] and he will be added into GiDan/BlackList
AFK system - Use /afk and /back if you more then 10 min AFK you will be kicked you change this #define AFK_TIME 10
Added /fakeban
Dynamic GPS System - We are make dynamic gps system commands /gpsadd and /gps.
Ban System - Now all bans saved in folder GiDan/Bans/Player_name.ini and if player try to connect he will be kicked
Dynamic 3DText label - Now in game you can create/remove 3dtext with commands /add3dtext and /remove3dtext
/admins command fixed
Dynamic Pickups - Create pickups IG
When admin click on player he can ban/kick/make admin to that player

Click here for download
Reply
#2

Looks very good
Reply
#3

Nice one this might beat luxadmin lol:P
Reply
#4

Thank you both. This weekend we do update only to get some ideas
Reply
#5

Pretty nice this filterscript!
Reply
#6

nice introduction. Also 5 levels and admin system. Spectating pic looks cool.
Reply
#7

nice job gigi, I know you from balkanamp and zbamp (System32 )
Reply
#8

Please, I have a bug, when I register my name and quit server, it doesn't save my nick and I need register again :S
Reply
#9

Quote:
Originally Posted by System64
View Post
nice job gigi, I know you from balkanamp and zbamp (System32 )
Yes you now me. But I'm not Gigi_Falcone. I'm Gagi from BS(u now me)

Thanks to all for good comments.

EDIT:
Quote:

Please, I have a bug, when I register my name and quit server, it doesn't save my nick and I need register again :S

I'm now test and it works fine. Saves in scriptfiles/Player/Your_Nick
Maybe if you use this with some gamemode. Try to change this:
Code:
//========Dialog ID==========
#define DIALOG_REGISTER 1
#define DIALOG_LOGIN    2
#define DIALOG_CLICK    3
#define DIALOG_ADMIN    4
#define RCON_DIALOG     5
Change dialog id to some number example:
Code:
//========Dialog ID==========
#define DIALOG_REGISTER 1529
#define DIALOG_LOGIN    2529
#define DIALOG_CLICK    3529
#define DIALOG_ADMIN    4529
#define RCON_DIALOG     5529
And are you add it in server.cfg and filterscripst Admin_System. And i'm compile this on 0.3d (if u use 0.3c compile it on 0.3c and use sscanf for 0.3c).
Reply
#10

Thanks everyone, we hope that someone will serve for a weekend update.
Reply
#11

Very fine script, especially for an introduction release!
Reputation points have definitely been served.
Reply
#12

Hello i Amir and i test it and work fine but can you tell me how to remove cmds ban and kick at level 1 and 2?

and remove cmds [un]mute, slap and clearchat at level 1?

Just asking if cannot it ok i happy with this system
Reply
#13

Quote:
Originally Posted by Amireagle
Посмотреть сообщение
Hello i Amir and i test it and work fine but can you tell me how to remove cmds ban and kick at level 1 and 2?

and remove cmds [un]mute, slap and clearchat at level 1?

Just asking if cannot it ok i happy with this system
Tnx for comment
You can change find this in that commands:
Код:
if(P_Data[playerid][pAdmin] == 0) return SCM(playerid, COLOR_RED, "You aren't an admin!");
And change into this:
Код:
if(P_Data[playerid][pAdmin] < That_admin_level_what_you_want) return SCM(playerid, COLOR_RED, "You need to be admin with level That_admin_level_what_you_want");
Just put admin level
Reply
#14

Sorry it not working when i change it and i try level 1 but it still can ban people
Reply
#15

Hello,i like whats your FS look's about but,when i run it on my detected server,i get the problem:Like your script isin't leaded,i have 0,3d detected server...

Help ?
Reply
#16

@Amireagle
Look /kick for admin level 2 or higher:
Код:
YCMD:kick(playerid, params[], help)
{
        #pragma unused help
        if(P_Data[playerid][pAdmin] < 2) return SCM(playerid, COLOR_RED, "You need to be admin with level 2 or higher!");
        new
			string[128],pplayerid, reason[48];
        if(sscanf(params, "us[48]", pplayerid, reason)) return SCM(playerid, COLOR_RED, "Usage: /kick [Player ID/Player Name] [Reason]");
        if(pplayerid == IPI) return SCM(playerid, COLOR_RED, "Wrong playerid!");
        if(P_Data[pplayerid][pAdmin] == 5) return SCM(playerid, COLOR_RED, "You can't ban admin level 5!");
		format(string,sizeof(string),""COL_RED"Admin "COL_WHITE"%s "COL_RED"is kick player "COL_WHITE"%s  "COL_RED"Reason: %s",GetName(playerid),GetName(pplayerid),reason);
        SCMToAll(-1,string);
		Kick(pplayerid);
        return 1;
}
@[SRB]Genius
Are u using 0.3d? And compile it first and check. It works fine
Reply
#17

Yes,i am using 0.3d i just compile it and its the same like old
Reply
#18

i got this error... wut do i have to enter? #define or new or somethin? pls help me:
Код:
F:\program files\my own drifting gamemode\filterscripts\Admin_System.pwn(153) : error 017: undefined symbol "DIALOG_STYLE_PASSWORD"
F:\program files\my own drifting gamemode\filterscripts\Admin_System.pwn(158) : error 017: undefined symbol "DIALOG_STYLE_PASSWORD"
F:\program files\my own drifting gamemode\filterscripts\Admin_System.pwn(281) : error 017: undefined symbol "DIALOG_STYLE_PASSWORD"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Errors.
EDIT:
i did this:
Код:
#define DIALOG_STYLE_PASSWORD 6
it isnt giving errors but is this good? or wut?
Reply
#19

Very Nice Admin System
Reply
#20

btw is there a /admins cmd or somethin? so u see a dialog of the online admins?
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)