[FilterScript] [MV]_cPanel [EASY TO USE][ADMIN/VIP SYSTEM]
#1

RESCRIPTED VERSION which you should use.
































[MV]_cPanel
Current version: 3.0
Development: -
Code:
- If i find bugs i'll fix them ... (report bugs here plz)
- See the quotes below
What is it ?
This filterscript is a control panel for players and server ... It's include a vip system and admin system.
+ ANTI CHEAT !! (added in 1.1)

Features:
  • y_ini for accounts saving (lower then version 3.0)
  • foreach
  • 2211 lines (v1.2) || 2347 lines (v1.3) || 2842 lines (v2.0) ||2675 lines (v2.0a) || 2738 lines (v2.0b) || 2803 lines (v2.1) || 2880 lines (v2.1a) || 2870 lines (v2.1b) || 2976 lines (v2.2) || 3129 lines (v2.2a) || 3216 lines (v3.0 - MySQL)
  • Easy to use !
  • Vip system
  • Admin system
  • Add PrivateVehicles ! (added in 1.3) (Tuturial at the buttom)
  • Save and spawn Tuned Vehicles ! (added in 2.0) (Tuturial at the buttom
  • Fallout's 'Advanced Player Info' (in console) (added in 2.0)
  • Cmdlog (added in 2.0) (changed in 2.0b)
  • Anti-cheat ! (Anti-Spam, Anti-HighPing, Anti-minigun, Anti-Jetpack, Anti-Swear, Anti-ArmourHack, Anti-Speedhack, Anti-Advertisment)
  • Reportlog - Reported players are going to be saved in a file (added in 2.1) (edited in 2.1a)
  • Suggestionlog - Players who suggested will be saved in a file (added in 2.1)
  • MySQL ! (added in 3.0)

Levels
NORMAL PLAYER = level 0
VIP = level 1
MODERATOR = level 2
ADMIN = level 3
RCON ADMIN = level 4 (display in /admins) (added in v1.2)

Commands
Normal player cmds:
  • /admin - Show the online admins
  • /stats - Show the stats (id, health,armour,name,adminlevel,money,interior) (added in 1.3)
  • /changepassword [newpass] - Change the password of the player (added in 2.1a)
  • /bug - The player can report bugs; bugs will be saved in a file (Bugs.txt)(added in 2.2)
  • /sug - The player can give suggestions for the server; suggestions will be saved in a file (Suggestions.txt)(added in 2.2)
Vip cmds:
  • /viphelp - To see the vip cmds
  • /vipveh - To spawn a vehicle for the VIP
  • /vipnos - Add nitro
  • /viprepair - Repair the car
  • /vipheal - Heal the vip
  • /vipflip - Flip the car
  • /vip(un)godcar - God the car (added in 1.1 !) (changed in 1.3)
  • /vip(un)lock - Lock your car (added in 1.3)
  • /vipunlimnos - Unlimted nos for vips (added in 2.0b)
Moderator cmds:
  • /ahelp - See the cmds for mod/admin
  • /crew - Change the skin to a 'crewmember'
  • /spectate - Spectate a player
  • /kick [ID] - kick a player
  • /freeze [ID] - Freeze a player
  • /unfreeze [ID] - Unfreeze a player
  • /jail [ID] [REASON] - Jail a player (changed in 2.0)
  • /unjail [ID] - Unjail a player
  • /mute [ID] - Mute a player
  • /unmute [ID] - Unmute a player
  • /veh [ID] - To give a vehicle to someone or just /veh for yourself
  • /ajetpack - Spawn a jetpack for you
  • /setarmour [ID] - Set the armour for someone
  • /sethealth [ID] - Set the health for someone
  • * Michael@Belgium slaps [ID] - To slap someone around a bit with a large trout.
  • /cage [ID] - To cage someone
  • /uncage [ID] - To uncage someone
  • /announce [TEXT] - Announcement
  • /disarm [ID] - Disarm someone
  • /eject [ID] - Eject someone out the vehicle
  • /burn [ID] - Burn somebody
  • /warn [ID] [REASON] - Warn someone (max 3 warns, more = kick) (added in 1.1)
  • /(un)freezeall - Freeze all players ! (added in 1.1)
  • /spawn(all) - Spawn a/all player(s) ! (added in 1.2)
  • /countdown - A simple countdown from 5 to 'gogogo' (added in 1.3)
  • /pcountdown - Countdown for player (added in 2.0)
  • /ejectall - Eject all players from their vehicle (added in 2.0)
  • /whois [ID] - Who is [ID] ? (returns name, level, armour,health, ip, ping, money, skin) (added in 2.0a)
  • /set(all)weather ([ID]) [WEATHERID]- Set a weather for someone/all (added in 2.1a)
  • /set(all)time ([ID]) [TIME] - Set the time for a certain player / for all (added in 2.1a)
  • /(all)music [ID] [YOUTUBELINK] - Stream a youtube song/vid for a player/everyone. (added in 2.1b)
  • /reconnect [ID] [REASON] - Force a player to reconnect with a reason. (added in 2.2a)
Admin cmds
The admin can do the cmds above too !
  • /get [ID] - Teleport somebody to you
  • /goto [ID] - Teleport you to somone
  • /ban [ID] - To ban somebody (ofcourse)
  • /cpanel - The controlpanel for players + server = IN DIALOG !
  • /setlevel [1/2/3] - Set someone to level 1,2 or 3
  • /setscore [ID] [SCORE] - Set score of player
  • /healall - Heal all players
  • /sethealth [ID] - Set health to a player
  • /getall - Get everyone to you !
  • /killall - Kill everyone IG !
  • /explode - To explode someone
  • /giveweapon [ID] [weaponid] [ammo] - Give the player a gun with ammo
  • /weaponids - See all the weapon id's
  • /asay [TEXT] - Say something to everyone x)
  • /armourall - Armour everyone
  • /adminduty - This set the playercolor black and a 3Dtext to the player with: I am admin ! Do not attack !
  • /(un)godall - God all players ! (added in 1.1)
  • /setskin [PLAYERID] [SKINID] - Sets a skin for a player ! (added in 1.2)
  • /setallskin [SKINID] - Setting all player skins ! (added in 2.0)
  • /setallscore [VALUE] - Setting player score ! (added in 2.0)
  • /adminoffduty - If you don't want to be on duty (added in 2.0)
  • /setinterior [PLAYERID] [INTERIOR ID] - Set someone's interior (added in 2.0)
  • /giveallweapon [WEAPONID] [AMMO] - Give a weapon to everyone ! (added in 2.0a)
  • /fakechat [PLAYERID] [TEXT] - Sends fakechat (added in 2.0b)
  • /crash [ID] [REASON] - Crash a player (added in 2.1)
  • /facepunch [ID] [REASON] - Facepunch a player to annoy him (added in 2.2)
Changelog:
Code:
V3.0
- Added Anti-Flood (AKA much incomming connections and/or bots)
- Fixed /ban (wrong "playerid" shown for the texdraws)
- Edited whole script to MySQL
V2.2a
- CMD: /reconnect
- Edited /admins; Online admins are gonna shown in a dialog.
- Added textdraw for website / forum.
- When you're banned, you'll be noticed with textdraws.
- Fixed /bug /sug
V2.2
- CMD: /bug /sug (for normal players)
- Used DIALOG_STYLE_PASSWORD
- When a players being banned, the players will see a dialog with info.
- CMD: /facepunch by JernejL
V2.1b
- Edited parts of the script were admin abusing was possible, now they can't.
- Deleted the "seconds" parameter from /jail. It doesn't work
- CMD: /(all)music
- Replaced Anti-spam
- Tested with 0.3d (and works)
- Fixed Minigun issue (see at bottum)
V2.1a
- Edited Reportlog
- CMDs: /set(all)weather /set(all)time /changepassword
- Probalby fixed anti-cheat issue about minigun
- When a admin/mod/vip uses a minigun, ppl will see it. Then they are able to report if (s)he abuse it.
V2.1
- stock SendClientMessageToRconAdmin(msg[])
- Replaced all Ban(playerid) with BanEx(playerid,reason); -> easy use.
- Reported players will be logged in a file
- CMD: /crash
- BUG FIX:
	+ ex.: when you /sethealth [ID]: you are healing the correct player but the SendClientMessageToAll() is wrong)
	-> /sethealth
	-> /disarm
	
- ANTI-CHEAT: anti-advertisment
V2.0b
- Able to Turn on/off anticheat
- CMDs: /fakechat /vipunlimnos
- Anti-Cheat: Anti-Armourhack, Anti-Speedhack
- BUG FIX: cmdlog (it created 3 files 0_o)
V2.0a
- I found a CountDownForAll-bug -> It's fixed now
- /weaponids is in dialog
- CMD: /whois /giveallweapon
- Cmdlog changed
- Cmd mistace/bug fixed ( /stats )
V2.0 - HUGE UPDATE
- Anti cheat: Anti-swear
- /crew has onother skin
- CMDS: /setallskin /setallscore /adminoffduty /setinterior /pcountdown /ejectall
- CommandLog added !
- /viphelp is now in a dialog
- Well, you already know you can have PrivateVehicle() but now you can spawn TUNED vehicles -> EASY USE !
- Advanced player info (console command) ! BY FALLOUT ;) (https://sampforum.blast.hk/showthread.ph...9.12073783- /jail [playerid][SECONDS][reason] - as you see: i added seconds parameter :D
- Textdraw added for jailtimer
- stocks added for countdown :D --> Easy use
V1.3
- Cmds: /countdown /vip(un)lock /stats
- You can add private vehicles for admins/mods/vips (stock PrivateVehicle())
- /vipgodcar is now Auto-repair in stead of SetVehicleHealth(999999)
- Bug fixed in Anti-MG and Anti-Jetpack (i made a loop through all players ! :o If someone had a MG/jetpack ... THEY ALL GONNA BE BANNED xD)
V1.2
- Added anti-cheat (anti-MG + anti-jetpack)
- New cmds: /spawn(all) /setskin
- If you logged in into rcon and someone do /admins then your level is 4 ...
- If someone is kicked/banned by the server (because the anti-cheat) then you'll find it in your server.log
- Added new stock: IsSkinValid(skinid)
V1.1:
- Added cmds: /warn /vip(un)godcar /(un)freezeall /(un)godall
- Added AntiCheat (Anti HIGH PING + Antispam)
- Added stock SendClientMessageToAdmin - Sends the msg to admins and mods (> level 1)
V1.0: First release
Installation:
Y_INI:
  1. Download the RAR-file on the buttom
  2. EXCTRACT the file with WinRAR or 7zip (7zip recommended !!)
  3. Put the files in the correct map
  4. (You can) change this in the script:
    pawn Code:
    #define MAX_PING 800 //max ping allowed ! Above = kick
    #define AutoUnmuteTime 5 //How long it takes a player gets unmuted automatically (in minutes)
    #define AntiCheat //not commented = on , commented = off
    #define Website "patforum.freeforums.org" //change to your forum/website
  5. Add this in your server.cfg:
    Code:
    echo Executing Server Config...
    lanmode 1
    rcon_password xxx
    maxplayers xxx
    port 7777
    hostname xxx
    gamemode0 xxx
    filterscripts [MV]_cPanel2.2a
    announce 1
    query 1
    weburl xxx
    onfoot_rate 40
    incar_rate 40
    weapon_rate 40
    stream_distance 300.0
    stream_rate 1000
    maxnpc xx
    logtimeformat [%H:%M:%S]
    plugins sscanf
  6. AND ENJOY !
MySQL:
  1. Download the RAR-file on the buttom
  2. EXCTRACT the file with WinRAR or 7zip (7zip recommended !!)
  3. Put the files in the correct map
  4. (You can) change this in the script:
    pawn Code:
    #define MAX_PING 800 //max ping allowed ! Above = kick
    #define AutoUnmuteTime 5 //How long it takes a player gets unmuted automatically (in minutes)
    #define AntiCheat //not commented = on , commented = off
    #define Website "patforum.freeforums.org" //change to your forum/website
    //mysql config:
    #define mysql_host "" //Your mysql host (default: localhost)
    #define mysql_user "" //Your mysql username (default: root)
    #define mysql_password "" //There is none for wamp unless you set one.
    #define mysql_database "" //Your database name
  5. Add this in your server.cfg:
    Code:
    echo Executing Server Config...
    lanmode 1
    rcon_password xxx
    maxplayers xxx
    port 7777
    hostname xxx
    gamemode0 xxx
    filterscripts [MV]_cPanel3.0
    announce 1
    query 1
    weburl xxx
    onfoot_rate 40
    incar_rate 40
    weapon_rate 40
    stream_distance 300.0
    stream_rate 1000
    maxnpc xx
    logtimeformat [%H:%M:%S]
    plugins sscanf mysql
  6. AND ENJOY !

Tutorials:
  • Private vehicles:
    Well, here a tut about private vehicles:

    First add this to the FS:
    pawn Code:
    //on the top of the FS
    new AdminVehicle[7];//just add 7 AdminVehicles, you can change the number ofcourse
    Then you have a car with the coords etc ...:
    pawn Code:
    //onfilterscriptinit
    AdminVehicle[0] = AddStaticVehicle(559,-3344.7705,530.3821,1.4083,1.4312,60,1); // admincar jester
    /*AdminVehicle[1] = ...*/
    You can go on until 'AdminVehicle[6]'

    Then you want to add this as your own vehicle, so a private vehicle:
    Go to:
    pawn Code:
    public OnPlayerStateChange(playerid, newstate, oldstate)
    {
        //here you add PrivateVehicle();
       //like this:
    PrivateVehicle(playerid,AdminVehicle[0],"Michael@Belgium");//So my car is AdminVehicle[0] (and owner Michael@Belgium)
    }
    NOTE: If you're nickname has change you can't go in the vehicle anymore !
  • Spawn/save tuned vehicles
    Well let's begin:
    So this is already included in the FS:
    pawn Code:
    public OnFilterScriptInit()
    {
    TuneCar();//already under OFSI !
    return 1;
    }
    public OnVehicleSpawn(vehicleid)
    {
        SetTimer("TuneCar",1000,0);// and this is already there too .. :p
        return 1;
    }
    So as you see you don't have to do much, but now go to:
    pawn Code:
    public TuneCar()
    {
    //here you add several things like:
        ChangeVehiclePaintjob(AdminVehicle[0],1);//change paint job
        AddVehicleComponent(AdminVehicle[0], 1066);//add component ;.;
        AddVehicleComponent(AdminVehicle[0], 1068);
        AddVehicleComponent(AdminVehicle[0], 1070);
        AddVehicleComponent(AdminVehicle[0], 1072);
        AddVehicleComponent(AdminVehicle[0],1010);
        AddVehicleComponent(AdminVehicle[0],1083);
        AddVehicleComponent(AdminVehicle[0],1162);
        AddVehicleComponent(AdminVehicle[0],1159);
        AddVehicleComponent(AdminVehicle[0],1160);
        SetVehicleNumberPlate(AdminVehicle[0],"ADMIN");//and maybe change the numberplate :p
    return 1;
    }
And you're ready for the both !

Errors 'n fixes
Quote:
Error: The program can't start because libMYSQL.dll is missing from your computer.
Fix: Download this file and past it in your server dir.

Pictures/vid:

/cpanel (if youre level = 3)


Then if you click on "Open Players Panel"




Then if you click on "Open Server panel"


Ban notice with textdraws:


NOTES:
pawn Code:
/*
|.----------------.
| .--------------. ||
| | ____    ____ | ||
| |_   \  /   _||  ||
| |  |   \/   |  | ||
| |  | |\  /| |  | ||
| | _| |_\/_| |_ | ||
| ||_____||_____|| ||
| |              | ||
| '--------------' ||
 '----------------'   V's cPanel
 
Free to use on the following conditions:

    *Do not re-release edited versions without my permision
    *Do not and NEVER clame this as your own, not even an edit!
    *Say thanks on the sa-mp forums if you like ;)

*/
BUGS
  • [FIXED WHEN USING MYSQL] Quote:
    Quote:
    Originally Posted by HydraX
    View Post
    BUG FOUND:

    - When you login, you can type any password you want and still grants you access, even though it said Invalid Password. It gives you full access if your admin so please fix this!
  • [FIXED] Sometimes, in my server ..., i have problems with an issue:
    Code:
    [19/10/2011] [xx/xx/xxxx 21:51:06] [join] Fendy_Dafic has joined the server (0:xx.xx.xxx.xxx)
    [xx/xx/xxxx 21:51:06] [ANTI-CHEAT] - Fendy_Dafic banned by server (Reason: Minigun)
  • At a few people the filterscript won't load.
  • If you use /music and/or /allmusic on Linux, it crash the server. (Commented the cmds in 2.2a)





SUGGESTIONS ALWAYS WELCOME !


DOWNLOAD

PASTEBIN 3.0
Reply
#2

pawn Code:
MAX_SERVER_PLAYERS 500
could also be
pawn Code:
#undef MAX_PLAYERS
#define MAX_PLAYERS  32 //32 as example
Then you can change the original define
Anyways looks nice though, il might give it a try
Reply
#3

Quote:
Originally Posted by gamer931215
View Post
pawn Code:
MAX_SERVER_PLAYERS 500
could also be
pawn Code:
#undef MAX_PLAYERS
#define MAX_PLAYERS  32 //32 as example
Then you can change the original define
Anyways looks nice though, il might give it a try
mmm, it's like the same but yeah x) I think it's shorter ? xD
Reply
#4

Quote:
Originally Posted by Michael@Belgium
View Post
mmm, it's like the same but yeah x) I think it's shorter ? xD
MAX_PLAYERS is defined by default, so why make your own max_player define if it already exist
Reply
#5

Hmmm sscanf2 'N' no str hmm
pawn Code:
if (sscanf(params,"is",id,reason))
It Should be:
pawn Code:
if (sscanf(params,"us[64]",id,reason))
Reply
#6

Quote:
Originally Posted by Clive
View Post
Hmmm sscanf2 'N' no str hmm
pawn Code:
if (sscanf(params,"is",id,reason))
It Should be:
pawn Code:
if (sscanf(params,"us[64]",id,reason))
ok in the next version i gonna fix that... and adding more cmds
Reply
#7

I'm gonna test it now thank you you're the best
Reply
#8

I Just can say WoW!
Reply
#9

Quote:
Originally Posted by P30SiNa
View Post
I'm gonna test it now thank you you're the best
Quote:
Originally Posted by P30SiNa
View Post
I Just can say WoW!
Thanks And wait for updates

And suggest if you want
Reply
#10

I have some suggestions:
It would be really great if you add a simple anti cheat.
And a vote system.
But anyway It's the best Admin/VIP system ever.
Reply
#11

Quote:
Originally Posted by P30SiNa
Посмотреть сообщение
I have some suggestions:
It would be really great if you add a simple anti cheat.
And a vote system.
But anyway It's the best Admin/VIP system ever.
Ok i was going to add a little anti cheat because i need it too xp
About the vote system : What vote system do you want , you have different votesystem (vote kick, just voting on a question ...)

And thanks again
Reply
#12

good
Reply
#13

Quote:
Originally Posted by Host-samp
Посмотреть сообщение
good
thanks
Reply
#14

Wait.... Does the Admin work for anyone? Or just the Mod or Admin. How exactly does it work?
Reply
#15

Quote:
Originally Posted by gab1971
Посмотреть сообщение
Wait.... Does the Admin work for anyone? Or just the Mod or Admin. How exactly does it work?
Huh ?? ... i don't understand your question xD The FS is going about server AND player control ! ;p
Reply
#16

Hmm One question! can a VIP use /vipheal in the middle of a fight?
Reply
#17

Quote:
Originally Posted by P30SiNa
Посмотреть сообщение
Hmm One question! can a VIP use /vipheal in the middle of a fight?
Euhm yes ofcourse ... why you asking that it's a cmd
Reply
#18

great job michael thisis simply awsome.
Reply
#19

so it's not fair enough I think i'm gonna delete it because VIP won't die with this cmd
Reply
#20

Quote:
Originally Posted by justsomeguy
Посмотреть сообщение
great job michael thisis simply awsome.
Thanks ;p

Quote:
Originally Posted by P30SiNa
Посмотреть сообщение
so it's not fair enough I think i'm gonna delete it because VIP won't die with this cmd
ok ;p np
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)