Quantcast
Channel: SA-MP Forums - Filterscripts
Viewing all 595 articles
Browse latest View live

[FilterScript] Simple Mapping System

$
0
0
Simple Mapping System by Veetiz

System requirements:
zcmd
mysql
foreach
sscanf


System commands:
/addobjlist : <object id><object name> - Add an object to Object's list
/deleteobjlist : <object id (listitem)> - Delete an object from list
/resetobjlist : Reset object's list
/objlist : View Object's list. We need to select an item to create an object.
/deleteobject : Delete a mapped object.
/resetobjects : Delete all mapped objects.

Pastebin:
Simple Mapping System

[FilterScript] Full and Simple Actor System

$
0
0
ACTOR SYSTEM

Yo, I have been learning and practicing Pawn for months now and I just finished my first Filterscript. This is a pretty simple Actor System containing several helpful commands, they are listed below.

Commands
  • /spawnactor [skin id] [Vulnerability (0: invulnerable / 1: vulnerable)] > spawns the actor where the player is facing
  • /removeactor [actor id] (id can be viewed if went near it or /allactors) > removes specified actor
  • /removeallactors > clears all actors
  • /gotoactor [actor id] > TP you to the actor's position
  • /getactor [actor id] > TP the actor to your position
  • /setactoranim [animation name] > Set an anim on actor
  • /cancelactoranim [actor id] > cancels the anim that has been excuted on the actor
  • /cancelallactorsanim > cancels all anims that has been excuted on the actors
  • /actorstext > shows/hides all actors 3D text
  • /updateactor [actor id] [skin id] [vulnerability] > updates specified actor's skin and vulnerability (Also updates rotation, view where you want and apply command!)
  • /actorhelp > Shows a list of Actors' system commands

    NOTE: YOU HAVE TO BE LOGGED IN AS RCON TO EXECUTE THESE COMMANDS!

How to make this work?
  • Download the Mediafire file (if you use Pastebin to download, you know what you are doing :P)
  • Follow the instructions given in the 'ReadMe' file.
  • Join the game and log in as RCON.

Picture
https://i.gyazo.com/5e3779f877721635...2cdef495f5.png

Downloads
Mediafire
Pastebin

Credits
  • maddinat0r - sscanf
  • Zeex - zcmd
  • SA-MP - everything basically

Bugs
I haven't found any bugs while testing this script, but do reply below if you find any.

[FilterScript] Dynamic job creation

[FilterScript] SQLlite - Jaspers Pin Code Script - Additional security.

$
0
0
Jaspers Pin Code Script V1.0
This script requires all users to create a pincode.
If there is no pincode registered to the player, the player will automatic have to create a pincode after login.

This script is compatible with most registration systems because the pincode login/creation will be called once when the player spawns. This could be considered an additional login system.

If the player presses ESC or clicks on the X, the player will be kicked if they didn't pass it

Why would this be useful?
This script uses textdraws and is therefore useful if the user may have been infected with a key logger.
The user does not have to insert anything but will pass trough the pad by clicking on numbers.

License
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License. You may edit, but not re-upload without my permission. Exceptions can be made by contacting me simply by PM on this forum.

Commands
In this script, only 1 command is used.
To use this command, you have to be logged in to the rcon. eg /rcon login
USAGE: /deletepincode [PlayerName]
With this command you are able to delete a players pincode.

Requirements
- zcmd - http://forum.sa-mp.com/showthread.php?t=91354
- sscanf - http://forum.sa-mp.com/showthread.php?t=570927

Installation
  1. Download the database and script in this topic.
  2. Open the script and change the following settings to your liking.
    Code:

    #define                SERVER_NAME                                "Server Name" // Enter the name of your server here.
    #define        DIALOG_NONE                            7279 // Make sure this number does not interfere with other dialogs in your scripts/gamemode.
    #define    MAX_LOGIN_ATTEMPTS          5 // How many tries for logging in does the player have before the server kicks the player?
    // WARNING: Only set MAX_LOGIN_ATTEMPTS higher then 5 if you have knowledge of editing the following function: CheckAttempt(playerid)

  3. Compile the script and place the JaspersPinCodeScript.amx file in your /filterscripts/ folder.
  4. Put the database pspincodes.db in your /scriptfiles/ folder.
  5. Add JaspersPinCodeScript to filterscripts in server.cfg

Download
Script: https://pastebin.com/pRyqG86N
Database: https://ufile.io/8ha9w - mirror 1
Database: https://files.fm/u/g4anhd7r - mirror 2

Bugs
None known at the moment. Please post in this topic if you find any or have suggestions.

Support
I provide full support on this script so if you need any, feel free to post in this topic.

Attached Files
File Type: pwn JaspersPinCodeScript.pwn (56.4 KB)

[FilterScript] bR SpeedoMeter

$
0
0
INTRODUCTION:
hello guys i was getting bored so i thought to make something special so here i created an bR SpeedoMeter its have many features i hope you like that.

Features:
* Added Vehicle Name
* Added Speed System
* Added Gear System
* Added Light System

Commands:
*/lights
*/veh


Credits:
*samp
*zcmd
*sscanf
*me


Pictures:





Codes:
*PasteBin

Bugs:
* not got any if you get tell me.

i hope you like the work

[FilterScript] My speedometer is not working plz help!

$
0
0
I made a filterscript for speedometer. The error is (22) : error 018: initialization data exceeds declared size

Attached Files
File Type: pwn Speedometer.pwn (9.6 KB)

[FilterScript] Dynamic ice cream creation

$
0
0
Dynamic ice cream creation
by Shomy

Images - https://imgur.com/a/xvIuE

Command - /kreirajsladoled [ Create ice cream ]

How this system work?

First, you need to create ice cream stand with command /kreirajsladoled

if you're close to the stand, press Y, and you will open an ice cream menu

Credits - Shomy ( me )

https://pastebin.com/WBRq5nv6

[FilterScript] DownloadMeter (0.3.DL)

$
0
0
This FS will allow you to get the amount of data downloaded and call onplayerfinishdownloading a proper version which wouldnt call when the virtual world changes, The amount of data downloaded is not exact and not very accurate but its close to it as the amount increases the longer time spent in downloading files, anyways this is just a small workaround for OnPlayerFinishedDownloading broken version and with this FS you can have a proper callback on your gamemode as this will call a function on your gamemode called "OnPlayerFinishDownloading"

To put on gamemode:
Code:

forward OnPlayerFinishDownloading(playerid, datamb);
public OnPlayerFinishDownloading(playerid, datamb)
{
        /*SendClientMessage(playerid, 1, "{00FF33}You have completely downloaded all files.");
        new String[256];
        format(String, 256, "{FFFFFF}Downloaded: {00FF33}%0.2f {FFFFFF}MBs of Data.", datamb);
        SendClientMessage(playerid, 1, String);*/
        // Put whatever you want
        return 1;
}

Filterscript:
Code:

#include <a_samp>

new Downloaded[MAX_PLAYERS];
new PlayerTick[MAX_PLAYERS];

stock GetTickDiff(newtick, oldtick)
{
        if (oldtick < 0 && newtick >= 0) {
                return newtick - oldtick;
        } else if (oldtick >= 0 && newtick < 0 || oldtick > newtick) {
                return (cellmax - oldtick + 1) - (cellmin - newtick);
        }
        return newtick - oldtick;
}

public OnFilterScriptInit()
{
        print("\n--------------------------------------");
        print(" Download Meter SA-MP 0.3.DL");
        print("--------------------------------------\n");
        return 1;
}

public OnPlayerConnect(playerid)
{
        Downloaded[playerid] = 0;
        PlayerTick[playerid] = GetTickCount();
        return 1;
}

public OnPlayerFinishedDownloading(playerid, virtualworld)
{
        if(Downloaded[playerid] == 1) return 1;
        if(GetTickDiff(GetTickCount(), PlayerTick[playerid]) > 1000)
        {
            Downloaded[playerid] = 1;
            new Float: bytesOfPlayer = NetStats_BytesSent(playerid);
                new Float: Megabytes = bytesOfPlayer / 1024 / 1024;
                CallRemoteFunction("OnPlayerFinishDownloading", "df", playerid, Megabytes);
        }
        else
        {
                Downloaded[playerid] = 1;
                // Player changed virtual worlds
        }
    return 1;
}


You dont need any plugin or some shit just plug n play.
I know this is useless but im just providing a workaround for ppl who need it. there would be bugs cuz i havent tested this out on a public server only on lan.

Bug(s):
Quote:

If the server change virtual world before the player downloads, the callback will be called, Fix: Don't call SetPlayerVirtualWorld right on connect and only do it after OnplayerFinishDownloading is called.

Attached Files
File Type: pwn DownloadMeter.pwn (1.1 KB)
File Type: amx DownloadMeter.amx (2.8 KB)

[FilterScript] MyFirst FilterScript Telecabin System

[FilterScript] bR Handshake System [1.0]

$
0
0
Introduction:
I had created this script already but didnot shared cuz of being busy, so here i shared my another script hope you like it picture or video will be added.

Commands:

*ohand: this command will be used to offer handshake to a player.
*ahand: this command will be used to accept the hand shake of player.
*rhand: this command will be used to reject hand shake of player.

Credits:
Code:

/*                        CREDITS                 
 *
 ***************BulletRaja [Making Script]
 ***************Incognito [sscanf2]
 ***************Zeex [ZCMD]
 *
 */

Download:
PasteBin

[FilterScript] Position - Save, Load & Delete[Y_INI][ZCMD]

$
0
0
Position - Save, Load & Delete[Y_INI][ZCMD]
(With 1 command)

About:
It's a simple script which saves, loads & delete your position with 1 command and also if you want you can set player position on spawn(toggle able in script). I just released this separately(it means I took a part from my whole script) as people liked it and asked me to release it. It saves your location in the file and loads it, just similar to /savepos, /loadpos.

Command:
Code:

/mypos <save/load/delete>
Saving:
  • Xpos
  • Ypos
  • Zpos
  • Angle
  • Interior
  • Virtual World

Download:
Position - Save, Load & Delete[Y_INI].zip | position.pwn | position.amx
position.pwn: Pastebin | RAW
sscanf | YSI 4.0.2 ~ Y_Less

[Map] S.W.A.T Vehicle [Vehicle Attachments]

$
0
0
Hey, my second vehicle attachments project :D
SWAT Vehicle, I am fascinated about SWAT irl too and I actually wanna be a SWAT cop in the future, so yeah, made this one :)

Export code attached in the end :D

Well, this project was originally inspired from this

Quote:









Attached Files
File Type: pwn swatsecuri.pwn (6.0 KB)

[Map] [MAP] - Job Programator / Tehnician

[FilterScript] FBI Truck Vehicle Attachments

$
0
0
Again, so much fascinated with SWAT stuff, made this. Looks better that the previous one tho.

The code is attached with this thread







Attached Files
File Type: pwn fbiswat.pwn (3.6 KB)

[FilterScript] Camera Editor - Cinematic Creator

$
0
0
Hello guys! Today i want to present you a script i made, because i needed a way of filming a shot from the same position every time. As the title of this topic says this is a camera editor wich lets you create cameras that can interpolate in 3 different ways, or that can be static.

TUTORIAL/DEMO VIDEO

Commands:
Quote:

/newcam - This command is used to create a new camera.
/camint - This will let you change the interpolation state of your camera.
/editcam - This will display the edit UI, wich you can use to change camera's position.
/editlook - This will display the edit UI, wich you can use to change the position where your camera is looking.
/ieditcam - This will display the edit UI, wich you can use to change interpolated camera's position.
/ieditlook - This will display the edit UI, wich you can use to change the interpolated position where your camera is gonna look.
/camtime - This edits the camera position interpolation time.
/looktime - This edits the camera look at interpolation time.
/playcam - This will play the camera animation.
/stopcam - This will get you out of camera mode.
/exportcam - This will export the code lines you need to implement a camera animation in your script.

Notes:
Quote:

1.All the cameras will be saved in the scriptfiles in a database called camdb.db.
2.All the exported cameras will output in scriptfiles in a file called cameraexports.txt.
3.You can create up to 100 cameras, you can enlarge this limit by editing 'MAX_CAMS' from within the script.
4.If you manage to fill the database, you have to delete the camdb file if you want to create more cameras.

ToDo List:
Quote:

1.Camera select command, so you don't have to type the id at every single command.
2.Sequence creator, that lets you select multiple cameras and play them in order.(For movie creators)
3.Improved visuals(gizmos)
4.Flymode camera edit compatibility

Instalation:
Quote:

1.Download the cameditor.rar
2.Unzip the archive.
3.Place those two files inside your filterscripts folder.
4.Open server.cfg with notepad, and add 'cameraeditor' to your filterscripts.
5.Run the server and thats it!

P.S If you have any suggestions, let me know by commenting down there.

Attached Files
File Type: rar cameditor.rar (30.1 KB)

[FilterScript] interior house

$
0
0
Hi I need a script for help me in /createhouse (in my server)
a filterscript for help me to see interior ids and I only add what (virtual world )I want

[FilterScript] Skin Changer

$
0
0
SKIN CHANGER:


INFO:


Code:

With this fs you can change skins with keys Y and N



USAGE:


Code:


to activate /cskin

change to next skin press Y

change to next skin press N

to choose skin press to cancel press ENTER

to cancel press LSHIFT (LEFT SHIFT)



PICS:











CREDITS:
SAMP TEAM - for samp
ME - for skin changer fs
YASHAS AND ZEEX - for izcmd

[FilterScript] Custom Player Nametags

$
0
0
CUSTOM PLAYER NAMETAGS


This filterscript prevents the famous cleo nametag wallhacks, and also prevents FakeNick hacks(for fake screenshots/complaints) but doesn't prevent s0b*et nametag hacks

Download on Pastebin


note:
before using this filterscript, make sure default nametags are disabled
Place this under OnGameModeInit
Code:

ShowNameTags(0);

[FilterScript] [WTS] Clock System

$
0
0
Introduction:
Guys i had just made a clock system in free time when i was bored, so i want it to release it now on forums. I hope you guys will like my clock system :).

Pictures:
Clock system

Code:

I hope you guys will like it, i will make better than this :).

[FilterScript] Damage Informer

$
0
0
I need something that when a player attack someone show he's name in screen
Viewing all 595 articles
Browse latest View live