SA-MP Forums Archive
[FilterScript] [MV]_cPanel [EASY TO USE][ADMIN/VIP SYSTEM] - 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] [MV]_cPanel [EASY TO USE][ADMIN/VIP SYSTEM] (/showthread.php?tid=248711)

Pages: 1 2 3 4 5


[MV]_cPanel [EASY TO USE][ADMIN/VIP SYSTEM][ANTI-CHEAT][0.3c/0.3d][Y_INI/MySQL] - Michael@Belgium - 15.04.2011

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:
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: Vip cmds: Moderator cmds: Admin cmds
The admin can do the cmds above too ! 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.php?tid=55649)
- /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: 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





SUGGESTIONS ALWAYS WELCOME !


DOWNLOAD

PASTEBIN 3.0


Re: [MV]_cPanel [EASY TO USE][ADMIN/VIP SYSTEM] - gamer931215 - 15.04.2011

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


Re: [MV]_cPanel [EASY TO USE][ADMIN/VIP SYSTEM] - Michael@Belgium - 15.04.2011

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


Re: [MV]_cPanel [EASY TO USE][ADMIN/VIP SYSTEM] - gamer931215 - 15.04.2011

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


Re: [MV]_cPanel [EASY TO USE][ADMIN/VIP SYSTEM] - HyperZ - 15.04.2011

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))



Re: [MV]_cPanel [EASY TO USE][ADMIN/VIP SYSTEM] - Michael@Belgium - 15.04.2011

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


Re: [MV]_cPanel [EASY TO USE][ADMIN/VIP SYSTEM] - P30SiNa - 15.04.2011

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


Re: [MV]_cPanel [EASY TO USE][ADMIN/VIP SYSTEM] - P30SiNa - 15.04.2011

I Just can say WoW!


Re: [MV]_cPanel [EASY TO USE][ADMIN/VIP SYSTEM] - Michael@Belgium - 15.04.2011

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


Re: [MV]_cPanel [EASY TO USE][ADMIN/VIP SYSTEM] - P30SiNa - 15.04.2011

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.


Re: [MV]_cPanel [EASY TO USE][ADMIN/VIP SYSTEM] - Michael@Belgium - 15.04.2011

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


Respuesta: [MV]_cPanel [EASY TO USE][ADMIN/VIP SYSTEM] - Host-samp - 15.04.2011

good


Re: Respuesta: [MV]_cPanel [EASY TO USE][ADMIN/VIP SYSTEM] - Michael@Belgium - 15.04.2011

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


Re: [MV]_cPanel [EASY TO USE][ADMIN/VIP SYSTEM] - Haydn - 15.04.2011

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


Re: [MV]_cPanel [EASY TO USE][ADMIN/VIP SYSTEM] - Michael@Belgium - 16.04.2011

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


Re: [MV]_cPanel [EASY TO USE][ADMIN/VIP SYSTEM] - P30SiNa - 16.04.2011

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


Re: [MV]_cPanel [EASY TO USE][ADMIN/VIP SYSTEM] - Michael@Belgium - 16.04.2011

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


Re: [MV]_cPanel [EASY TO USE][ADMIN/VIP SYSTEM] - justsomeguy - 16.04.2011

great job michael thisis simply awsome.


Re: [MV]_cPanel [EASY TO USE][ADMIN/VIP SYSTEM] - P30SiNa - 16.04.2011

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


Re: [MV]_cPanel [EASY TO USE][ADMIN/VIP SYSTEM] - Michael@Belgium - 16.04.2011

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