Powered By Blogger

Search samp-vijit

Filter scripts

SAMP FILTER SCIRPTS

[1]
BeckzyBoi's Vehicle Utilities Filterscript

A lot of you might remember my filterscript allowing you to enter a shamal as passenger. I totally forgot i had that until today i was deleting a load of junk from My Documents and i came across it. Thinking of how useful people found that and the lack of utilities for vehicles like it i created this filterscript.

• What does it do?:
▪ Shamal: Yes, my good ol' code. It is back and is being used in this filterscript. It works the same as before. You can enter a shamal as a passenger like you would with any other vehicle but it will take you to the interior of that shamal. Each shamal has it's own interior seperate from all other shamal's you have in your
script. When a shamal vehicle explodes the interior also will.
▪ Tow Trucks: Now you are probably thinking; "There are a lot of these codes about. Why another one?". Well the answer is simple. I have seen a lot of the other ones and they disgust me. This isn't to have a go at the authors of those 'codes' i just advise you that if you want to use tow trucks in your server then make a good code yourself or use this one. Like i said, nothing personal against other people that have made tow truck codes but why should players suffer the effects of inefficient and unnecessary codes when they can just use this filterscript that i am happy to say has a very good tow truck code.
How to use?:
Well it is simple. If you want to tow a vehicle then just make sure you are in a tow truck (obviously), drive to a near-by car and press the handbrake key. I didn't think it was necessary to include a key to unhook vehicles as all you have to do is lower the hook and it will unhook itself.
▪ Trams: I have seen many codes where you must press 2 keys or a sequence of keys to get in a tram as a driver. And it made me think; why? So here is a good code and all you have to do is enter the tram as you would a normal vehicle. Both for driver and passenger as passengers in a tram is native anyway. The code will make sure that the driver seat is empty before it allows you in.
• How do i use this filterscript?:
- Just simply add bbvu to your filterscripts line in your server configuration file.
Enjoy this filterscript and i would appriciate it if you DON'T steal the code from it. I made this filterscript to use as a whole and not as a bag of snippets where you take what you want and add to your script giving yourself credit.
Cheers, Beckzy.
download


[2]
Menu

Menu
Script
Functions
Commands
Log
How To Use
Installation
Bugs
Download
Additional Credits
Script
Type: Administration FilterScript
Version: 1.5
Last Update: 13/02/2010
Created By: LuxurioN
Licences: In end of post
Functions
+ Whirlpool Hashed Passwords (Greater security)
+ Account System (Register, Login, Changepass)
+ Save Player Statistics (Deaths+Kills+Weapons+Money+Position+TimeInServer+Ip+Health+Armour+Score+WantedLevel)
+ Automatically Login!
+ Anti WeaponsHack (Easy to configure forbidden weapons in File)
+ Create Teleport System (Easy Create/Delete/Use new teleports InGame)
+ Lock/Unlock Server (With Dialog)
+ Many Dialogs (Vehicles,Teleports,Weapons,Server Time & Weather, and more...)
+ Anti Forbidden Names,Words and Clan (Easy to Configure in File)
+ InGame RCON Console (With Dialog)
+ Easy to configure more important options (In File and InScript).
+ Register & Login in Dialog! (GUI) (Only MustLogin is enabled)
+ Easy to Enable/Disable script functions InGame (In Dialog or in Command)
+ Anti CaPsLock, Anti Spam, Anti Swear and Anti Bot System
+ All Reports saved in Files.
+ Administration System per Level and Position
+ Save in Log: Cars Spawned, Kicks, Bans, TempBans, Bad Rcon Logins, Teles Createds, PmChat, AdmChat, SetLevel, and more...
+ Level System (SetLevel and SetTempLevel)
+ TempBan System (Ban Player for specified Days)
+ Dueling System
+ Rcon attempts System. (Configure number of attempts)
+ Warn System (Ban after the specified number of warnings)
+ All commands show the function of the command (When no syntax is typed) (Except some commands without necessary (Example: kill,savepos)
+ Highest Administrators is immune from all commands
+ GiveWeapon support the Weapons Names
+ Commands very well organized in levels (/level 1/2/3/4/5) (Ex: /level 4)
+ Administrators can save your skin, for use in other Time
+ Most commands accepts the player's name or the ID
+ Dialogs simple Diasable/Enable in top of your script
+ New Rcon Commands
+ Loads of the configurations and more important Functions
+ Hide/UnHide commands (Hide you from Admins List, and remove 'admin' from your messages. If 'ADM_InMSG' is enabled)
+ Cage System! (Hold player in Cage) (Hight Security)
+ Gps System (City and Meters Distance) Find player meters from you! (In TextDraw and Radar CheckPoint)
+ Professional Spectating System (With TextDraw)
+ Many Lists - Wanteds, Muteds, Miniguns, Richs, Jaileds,...
+ Visible/Invisible System!
+ Anti Advertisements System (Ips, Links, ...) (+Warnings, +Easy to Enable/Disable in 'Config.cfg' file)
+ Only one TextDraw! (For Gps System and Spectating System)
+ When AdminScript is Started, Show All Configurations in Console!
+ Advanced VIP System! (When Account Types: Silver, Gold and Premium) (+Functions)
+ Execute Commands (Run any command! (From FS and your GM) (+Dialog,+Key,+Cmd)
+ Fighting Styles (In Dialog) (+Current Style)
+ Second Rcon System (Two RCON Passwords for more Security!) (Simple disable and config in top of script)
And many other functions!...
Some Screens and Basic explanation:
Administration System per Level and Position
Level 1: Basic Moderator
Level 2: Moderator
Level 3: Master Moderator
Level 4: Administrator
Level 5: Master Administrator
Rcon: Rcon Administrator
Gps System (I Tested with Npc)
Spec System
See more in log category!...
Commands
Level 1: Basic Moderator
Player: getinfo, weaps, ping, ip,
Vehicle: fix, repair, addnos, tcar
Tele: saveplacae, gotoplace
Adm: saveskin, useskin, dontuseskin, setmytime, adminarea
Other: lconfig, morning, reports, richlist, miniguns
Level 2: Moderator
+ Level 1 commands.
Player: giveweapon, setcolour, burn, spawn, disarm, highlight, jetpack, flip, fu
Player: warn, slap, (un)mute, laston, lspec, lspecoff
Vehicle: acar, abike, aheli, aboat, aplane, lspecvehicle
Tele: goto, vgoto, lgoto
Adm: lmenu, clearchat, write, announce, announce2, screen, (un)lockcar
Other: wanted, jailed, frozen, muted
Level 3: Master Moderator
+ Level 1 and 2 commands
Set: set(health/armour/cash/score/skin/wanted/name/weather/time/world/interior/ping/gravity)
All: setallskin, armourall, setallskin, setallwanted, setallweather, setalltime, setallworld
All: setallscore, setallcash, giveallcash, giveallweapon, clearallchat, healall, disablechat
Player: ubound, duel, akill, aka, caps,(un)freeze, kick, explode,(un)jail, force, eject, (s)removecash
Vehicle: car, carhealth, carcolour, destroycar, vget, givecar
Tele: teleplayer, gethere, get, move, moveplayer
Other: gps, setpass, lammo, countdown, aweaps, invisible, visible
Level 4: Administrator
+ Level 1,2 and 3 commands.
All: spawnall, muteall, unmuteall, getall, killall, freezeall, unfreezeall");
All: kickall, slapalll, explodeall, disarmall, ejectall");
Player: cage, ban, rban, tempban, settemplevel, crash");
Adm: ctele, lockserver, enable, disable, spam, god, godcar, botcheck, forbidname, forbidword, fakedeath");
Other: uconfig, die, hide, unhide");
Level 5: Master Administrator
+ Level 1,2,3 and 4 commands.
+ Level 5 is Immune for all commands
Player: setlevel, fakechat, fakedeath, fakecmd
Adm: god, sgod, console
Other: pickup, object, respawncars
Rcon: lrcon (Only Rcon Admins) (Use: /rcon lrcon)
Log
Version 1.5:
Added Show All AdmScript Configuration in Console!
Added VIP System (With three Account Types) - Silver, Gold and Premium!
Added New Functions in 'ladmin.inc' - 'IsPlayerVipMember' and 'IsPlayerVipType' (See more in 'How To Use')
Added System to simple change account commands (Login,Register and Changepass, in top of Script!
Added Execute Command Dialog (Run any command of FS,GM,... ) (Per Cmd: /execcmd or using Keys (Simple disable in Top)!
Added Fighting Styles (In Dialog)
Added Second Rcon System (Two RCON Passwords for more Security!) (Simple disable and config in top of script)
Fixed SetLevel command Bug! (MaxLevel)
Version 1.4:
Added Anti Advertisements (Ip,Links,...) (+Warnings,+Easy Enable/Disable in 'Config' file)
Added WantedLevel List!
Added Visible/Invisible commands
Added RespawnCars command
Huge Update in Spectating System (+TextDraw,+NoBugs,...)
Added Anti Forbidden Weapons to 'Config.cfg'
Fixed Gps System Bug!
Changed '/lmain' to '/lmenu' and '/lspec' to '/watch'!
Fixed Dialogs Bug!
Fixed Gramatical Errors!
Fixed Forbidden Weapons Bug
Added Enable/Disable Gps Checkpoint in top of Script (In case of any conflict with your GM)
Version 1.3:
Fixed Level mini Bug!
Fixed GPS System Checkpoints Bug!
Added new Gps Style!
Added Score Saving!
Added WantedLevel Saving!
Fixed all other version Bugs
Version 1.2:
Fixed Highlight command Bug!
Fixed Must login messages Bugs
Added Cage system (/cage)
Added Gps System (With Location)(Find player meters from you (In TextDraw and Radar CheckPoint)
Fixed Administration Levels and Positions Bug
Added player location in GetInfo command(Ex:Come-a-Lot)
Added 'Admin' in front of all messages send by Administradors (For use: enable in top of script)
Update Hide/UnHide Command!
Version 1.1:
Fixed Muted command Bug!
Fixed WeaponHack (Administrators not is Banned)
Fixed Register/Login saving System Bug
Fixed '/admins' command Bug (View all admins levels)
Fixed Administrator Position system Bug
Added '/hide' and '/unhide' commands (Hide you from admins list)
Fixed teleport lines Bug
Fixed Score saving System Bug
Fixed 'config.cfg' file Bug
How To Use
Make a new player VIP
Making Command/Function only for VIP Members
Making Command/Function only for specified VIP Account (Silver,Gold,Premium)
Make yourself Admin
Using Admin Level in another script
Change Level of a LuxAdmin command
Make a new player VIP:
Connect to your server
Register new Account
Log in RCON Admin
Type /setvip [PlayerID] [AccountType]
Making Command/Function only for VIP Members:
1. Add in top of your Script:
PAWN Code:
#include
2. Go to your Command or Function (In Exemple, I used a command):
PAWN Code:
if(strcmp(cmd, "/healme", true) == 0)
{
SetPlayerHealth(playerid, 100);
return 1;
}
3. Add the function that will check if the Player is Vip:
PAWN Code:
If(IsPlayerVipMember(playerid))
It will look like this:
PAWN Code:
if(strcmp(cmd, "/healme", true) == 0)
{
if(IsPlayerVipMember(playerid))
{
SetPlayerHealth(playerid, 100);
}
else SendClientMessage(playerid, COLOR_WHITE, "ERROR: You not is a Vip Member!");
return 1;
}
4. Done!
Making Command/Function only for specified VIP Account (Silver,Gold,Premium)
1. Add in top of your Script:
PAWN Code:
#include
2. Go to your Command or Function (In Exemple, I used a command):
PAWN Code:
if(strcmp(cmd, "/healme", true) == 0)
{
SetPlayerHealth(playerid, 100);
return 1;
}
3. Add the function that will check if the Player is Vip (Specified Type):
PAWN Code:
If(IsPlayerVipType(playerid,TYPE))
//Types:
//1 - Silver Account
//2 - Gold Account
//3 - Premium Account
It will look like this (In Exemple, I used for Only Gold(and Silver) Account:
PAWN Code:
if(strcmp(cmd, "/healme", true) == 0)
{
if(IsPlayerVipType(playerid,2))
{
SetPlayerHealth(playerid, 100);
}
else SendClientMessage(playerid, COLOR_WHITE, "ERROR: You not is a Silver or Gold Member!");
return 1;
}
4. Done!
Make command for only administrators level 4 use:
PAWN Code:
if (IsPlayerLuxAdm(playerid, 4))
Exemple:
PAWN Code:
if(strcmp(cmd, "/help", true) == 0)
{
if(IsPlayerLuxAdminLevel(playerid,4))
{
/Function Here
}
else SendClientMessage(playerid, COLOR_WHITE, "ERROR: You not is Administrator Level 4");
}
Make yourself admin:
Connect to your serverRegister new Account
Log in RCON Admin
Type /setlevel [YourID] [Level]
Other method:
Connect to your serverRegister new Account
Disconnect
Go to your Account file "LuxAdmin/Accounts/YourName.sav
Open file then change "Level=0" to "Level=5"
Reconnect in your server
Ready! You are level 5 (Master Administrator)
Using Admin Level in another script
Add " in top of your script
Then, add line to your command:
Make command for only Administrators use:
PAWN Code:
if (IsPlayerLuxAdm(playerid))
Exemple:
PAWN Code:
if(strcmp(cmd, "/help", true) == 0)
{
if(IsPlayerLuxAdmin(playerid))
{
//Function Here
}
else SendClientMessage(playerid, COLOR_WHITE, "ERROR: You not is Administrator");
return 1;
}
Make command for only administrators level 4 use:
PAWN Code:
if (IsPlayerLuxAdm(playerid, 4))
Exemple:
PAWN ode:
if(strcmp(cmd, "/help", true) == 0)
{
if(IsPlayerLuxAdminLevel(playerid,4))
{
//Function Here
}
else SendClientMessage(playerid, COLOR_WHITE, "ERROR: You not is Administrator Level 4");
return 1;
}
Change Level of a LuxAdmin command:
Open LuxAdmin.pwn file
Press CTRL+F and search a command (Ex: dcmd_giveweapon)
Change number in Line: "
Exemple (Command only for Admins Level 4):
PAWN Code:
if(PlayerInfo[playerid][Level] >= 4)
Set to:
PAWN Code:
if(PlayerInfo[playerid][Level] >= 3)
Ready! Ready, now administrators level 3 can use the command!
Installation
Download the file!
Unzip the Files! (Recommended use Winrar)
Put 'LuxAdmin.amx" in your 'filterscripts' folder
Put plugin 'Whirlpool' in your 'plugins' folder
Put 'lfuncs', 'ldudb and 'ladmin' in your 'pawno/include' folder
After, put the folder 'LuxAdmin' in your 'scriptfiles' folder
Open 'Server.cfg'
Go to in line 'filterscripts'
Add 'LuxAdmin' (filterscripts LuxAdmin)
Then add 'Whirlpool' in plugins line (plugins Whirlpool)
Save the file!
Done!
Other Method:
Copy all folders 'filterscripts,pawno,scriptfiles,plugins'
Replace the folders of your server for them.
Open 'Server.cfg'
Go to in line 'filterscripts'
Add 'LuxAdmin' (filterscripts LuxAdmin)
Then add 'Whirlpool' in plugins line (plugins Whirlpool)
Save the file!
Done
Bugs
If you found a bug in this code. Please, report it here! For I fix in next Version
Download
Version 1.5:
Additional Credits
Y_Less - Whirlpool Plugin
Some commands & some functions is based in LAdmin v4
Kyeman - Spectating
Rcon Cmds - Yom
TempBan based on sBanMachine
Luby - Meters Distance

download