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

[FilterScript] XP System [Y_INI]

$
0
0
XP System

Today, i bring you an XP Filterscript, Everytime you kill a player, you gain +2 XP! (editable), you can add more features to your script doing it, it also has a textdraw with it!

Needed Includes

a_samp
y_ini
zcmd
sscanf


Screenshots

Soon!

Credits

Y_Less for Y_ini and sscanf
Zeex for Zcmd
RyderX, for helping meh a-lot
Samp Team, for a_samp


Download

Click Here!

[FilterScript] First Textdraw

[FilterScript] Ladivars youtube music System [MySQL]

$
0
0
Introduction
I wanted to make a music system which allows players to enter a link from youtube
and be able to play the song and save it into a file to play at their hearts content.

Features:
  • /music shows the music dialog allows players to play a song, add a song and remove a song.
  • MySQL Saving into a database for songs to load for players and play.

Bugs:
  • Sometimes a song doesn't play, just keep playing it intill it does
  • High ping makes it so song doesn't play don't know why.
  • Song can take anywhere from 0 to 30 seconds to play.


Download:http://pastebin.com/RU5U2pKH
Include to convert youtube to mp3: http://forum.sa-mp.com/showthread.php?t=518119

MySQL code:
PHP Code:

-- phpMyAdmin SQL Dump
-- version 4.5.1
-- http://www.phpmyadmin.net
--
-- 
Host127.0.0.1
-- Generation TimeMar 162017 at 06:54 PM
-- Server version10.1.9-MariaDB
-- PHP Version5.5.30

SET SQL_MODE 
"NO_AUTO_VALUE_ON_ZERO";
SET time_zone "+00:00";


/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;

--
-- 
Database: `sa-mp`
--

-- --------------------------------------------------------

--
-- 
Table structure for table `music`
--

CREATE TABLE `music` (
  `
IDint(10NOT NULL,
  `
SongUsedint(10NOT NULL,
  `
Namevarchar(24NOT NULL,
  `
SongNamevarchar(256NOT NULL,
  `
SongLinkvarchar(256NOT NULL
ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- 
Indexes for dumped tables
--

--
-- 
Indexes for table `music`
--
ALTER TABLE `music`
  
ADD PRIMARY KEY (`ID`);

--
-- 
AUTO_INCREMENT for dumped tables
--

--
-- 
AUTO_INCREMENT for table `music`
--
ALTER TABLE `music`
  
MODIFY `IDint(10NOT NULL AUTO_INCREMENT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */


Screen shots and video coming soon :)

[FilterScript] Simple Login & Register System (Y_INI)

$
0
0
Login&Register


Credits
Y_Lees
Samp Team
Zeex
ZukerCup
Dracoblue

Features
Admin System ( 3 levels )
Login & register system
Ban system
warn system (is the player was warned 3 times will be kicked auto)


CMDS

Level 1:
/get
/bring
/heal
/aod
/freeze
/unfreeze
/kick
/goto
/spawn

Level 2:
/setskin
/giveweapon
/warn
/ban
/clearchat for shot /cc

Level 3:
/givecash
/changename
/fine

and easy to add more commands

How To be Admin?
when u join the game login to the rcon and type /set id level lvl from 1 to 3

Downloads
http://pastebin.com/UCD6bxat

[FilterScript] Advanced Vehicle HH Protection

$
0
0
  • Information

    Hello, today I'm presenting you my newly written Anti Vehicle Health hack script. It basically detects both possibilities of vehicle health hacking. It also checks if the player is modifying his vehicle in a Mod Garage e.g. TransFender so that it doesn't detect players innocently because of modifying vehicle.

  • 1. Refilling vehicle health or increasing values.
  • 2. Keeping vehicle health constant while being damaged.

  • Modifying

    Please make sure to edit the parts with the following line to the ones which suit your needs (Either kick/ban or notify admins).

    Code:

    // Do more things here...

[FilterScript] Turf Wars v1.0 (GTA Online)

$
0
0
Turf Wars (GTA Online)
About:
This is game that is similar to Turf Wars in GTA Online. So the goal of this game is that the teams will compete who will gather more squares and win.
Exists 4 teams: orange, red, green and blue.
In 1 team can be players how many admin call in game.
When player from some team step on square that square change color in color of his team.
Map is dynamic and can be modified in game.
Spawn positions for teams are modified in game too.
When a player falls off the map he respawns automatically to a position where his team should spawn.
Vehicles can't be destroyed, they are fixed every 5 seconds.
Player from vehicle can't exit.
First 10 seconds every player is transparent because players from same team are spawned on same place.
Some updates are possible.
If you find some bug just say me in this thread or send me message.
In few days I will maybe record some video.
Install:
To use the script put .amx in Filterscripts and all from Scriptfiles put in Scriptfiles of your server.
After that open server.cfg and under Filterscripts add TurfWarsENG
Pictures:



http://i.imgur.com/xoI3vyH.png
http://i.imgur.com/QqFtYMr.png
http://i.imgur.com/tJ2dT8R.jpg
http://i.imgur.com/I7hIGpi.png
http://i.imgur.com/GeYxgaa.jpg
http://i.imgur.com/oWntqzY.jpg
http://i.imgur.com/qbqLYiw.png
Download:
https://www.mediafire.com/?o1zv98adz5ndzrj
http://pastebin.com/tQDqJ4KJ

[FilterScript] Fuel Deliverer Job v1.5 | ( foreach, izcmd, streamer )

$
0
0


Hello everyone,

Today I will present to you one Unique job called Fuel Deliverer.I'm publish this version 1.5 because I'm currently working on a new one, improved MYSQL version!I can say that this is a very interesting type of work and that something like this is very easy to do.I did not care enough about the script and writing the code, because this version is v1.5!All that you need from the INC & Plugin is ( a_samp, foreach, izcmd, streamer ), I'll tell you something about this job in the next comment!



Fuel Deliverer is extremely easy job with whom will you earn well amount of cash!First, what will you have to do is to get a job simply by coming to the place of employment (logical)!After the employment you have to enter in the vehicle and the load fuel!When you done with step before, location of deliver will be automatic loaded where you have to deliver fuel!For each submitted "a bottle of fuel" you got $100 + bonus.If you think you've earned enough, simply cancel the job(/endjob) and enjoy in your perks!



All you need is
- foreach -
- IZCMD -
- streamer -



https://www.youtube.com/watch?v=UgQVy8GEhIk&t=2s



Github(Working on it)
https://www.sendspace.com/file/133n90
http://www.mediafire.com/file/qlo99o...lDeliverer.pwn
http://pastebin.com/yCw7VMvg

P.S: Bad/Good comments are welcome(IDGAS)

[FilterScript] Dynamic biz system v2.0

$
0
0
Dynamic biz system v2.0

Hello!
Before the presentation of this filterscript, you have to know this script is a new version of my previous one (here). There is a lot of modifications. So I prefer to made a new thread, let the previous version available (Y_INI version, that's why). I'll take the previous presentation, there is no more feature on the version 2.0 (more feature are coming).


Features:
- Saved biz system : Investor & Biz (MySQL R41)
- 6 type of biz available (Total : 29 interiors)
- Customizable name for each biz
- Deposit/withdraw money on your biz
- Make people pay when they enter in your biz
- Admin commands
- Make your friends investors
- Make your investor earn money

Include:
Code:

#include <a_samp>
#include <a_mysql>
#include <izcmd> // you can also use <zcmd> - Both are working
#include <sscanf2>
#include <foreach>
#include <YSI\y_va>
#include <easyDialog>


Credits to original author for each include.
RCON commands:
/createbiz : Create a biz with an interior, everything are explain IG.
/destroybiz : destroy a biz or every biz
/closestbiz : get the ID of closest biz
/editbiz : Edit a biz like /biz + you can change type & interior
/editinvestor: Edit investor's right of a specific biz
/aeditinvestor: Set an investor for a biz. You need to enter the player's name and not the ID.
/gotobiz : Explicit

Non-RCON commands:
/buybiz : buy a biz
/sellbiz : sell a biz
/biz : manage your biz
/modifinvestor : Edit investor's rights of your biz
/makeinvestor : Make someone an investor
/ibiz : Edit a biz as an investor



Configuration:

- Biz's params
Code:

#define                MAX_BIZ                        100                                                        // Number of biz
#define                MAX_BALANCE                1000000                        // Max amount of money in a biz
#define                MAX_BIZ_NAME                MAX_PLAYER_NAME*2        // The max lengh of a biz's name
#define                INVALID_BIZ_ID                (MAX_BIZ+10)*2                // Don't change this

- Pickup ID
Code:

#define        ICON_BIZ_CLOSED                        19133
#define                ICON_BIZ_OPEN                        1318
#define                ICON_BIZ_PENDING_OPEN                1272
#define                ICON_BIZ_PENDING_CLOSED                19523
#define                ICON_BIZ_INTERIOR                1239

MySQL configuration:
Code:

#define                MYSQL_HOST                                "localhost"
#define                MYSQL_USER                                "root"
#define                MYSQL_DATABASE                            "myserver"
#define                MYSQL_PASSWORD                          ""


What changes between version 1.1 & version 2.0 ?
- Switched to MySQL R41
- Minors changes
- Minors & majors bugs solved


Screenshoots:
http://hpics.li/26d9a2b
http://hpics.li/922e065
http://hpics.li/bb7a609
http://hpics.li/cb13e93

Script: https://github.com/Dayrion/Release/b...biz_system.pwn

[FilterScript] Dynamic Speed Cam System

$
0
0
Speed Cam System

System Introduce
Okay , i've made already a video for it but anyway im introducing it here so anyone that has no time to watch can atleast understand it only from reading so, Speed Cam system is a dynamic system that allows to create/delete an Speed camer.Creator of cam has to set a speed limit when players are near speed cam and are they driving slower or faster than the setten speed limit, if player is driving faster than the limit it will show him a textdraw with ticket reason, amount and the speed.The ticket amount its just fake since i was in a test mode and not in a gamemode so you will have to set with your own amount per speed , mine is KM * 2 = ticketamount but its not saved.
Every created cam is saved in a MySQL database.


System Commands
  • Createcam - Allows you to create a cam with speed limit that you want
  • Deletecam - will allow you to delete the nearest cam you're at.
  • Createcar - Will teleport a infernus to you , this one was only for me to test
  • Createdcams - allow you to check the ID of created cams for all
Credits
  • Incognito - Streamer Plugin.
  • BlueG - for the greatest MySQL plugin.
  • Zeex - for creating zcommand.
  • LazzyBoy(me) - creating this filterscript.
  • SAMP - making it possible all this.

Download LinksIf you enjoyed this please help me with a Rep

[FilterScript] [MySQL] Shot recorder - Records shot with appropriate bodytype

$
0
0
Shot Recorder
Version: v0.1
Last updated: N/A

Description

This filterscript allows to you save all the shots a player shot and saves them with the bodypart type.

Media



Features
  • See all your shots in /shots (or other's shots with /shots [ID])
  • Easily edited
  • Uses MySQL R39-6 by BlueG
  • User friendly
  • Readablilty
  • Good performance

Credits

AjaxM - The script
SA-MP Team - SA-MP
BlueG - MySQL
Yashas / Zeex - I-ZCMD

Bugs

Tested ; No bugs found.

Table Creation

You should manually create the table with the following code:

PHP Code:

CREATE TABLE `YOUR_PORT_HERE`.`ShotRecords`(
    `
IDINT(15NOT NULL AUTO_INCREMENT ,
    `
NameVARCHAR(25NOT NULL ,
    `
ChestINT(11NOT NULL ,
    `
TorsoINT(11NOT NULL ,
    `
LeftArmINT(11NOT NULL ,
    `
RightArmINT(11NOT NULL ,
    `
LeftLegINT(11NOT NULL ,
    `
RightLegINT(11NOT NULL ,
    `
HeadINT(11NOT NULL ,
    `
MissedINT(15NOT NULL ,
    
PRIMARY KEY  (`ID`))
    
ENGINE InnoDB

Note: You should change the 'YOUR_PORT_HERE' to your database port.

Download

GITHUB

Note: You will find '^M' in everywhere in the script ; Don't worry, copy the code and paste it to your .PWN and it will be all gone.

Thanks & enjoy.

[FilterScript] Zombeydere (Simple Zombie creation)

$
0
0
Introduction

I'm in process of creating one of these zombie servers, the thing I have fought the most with was the creation of the zombies, it is hard to make it work as intended, so, to save time for these people creating the same themed gamemode, I provide this piece of code.

Note that I started learning sa-mp from about 3 months ago, the code could be better somehow. Feel free to insult me, but while you're at it, point at me what did I do wrong.

Features

Quote:

- About 120 zombie areas in both LV and LS.
- The zombies will follow (running) the nearest player with the lower ID.
- The zombies will attack the nearest player (not very accurate but they try atleast).
- The zombies are killable in every way but by car crash and fire (RPG/grenades)
- Zombie Area system, if there's no player in an area, zombies of that area will be returned to the pool.
- NPC pool for fast-access to the NPCs.
- Optimized NPC management. They die, they're returned to the pool.
- If the player is in a different latitude level than the zombies, they will stop following (if the player gets in a rooftop, so the zombies won't fly)
- Customizable NPC damage.
- Fully controllable and easy script to make your own modifications.

Known Issues/Bugs

Quote:

- Zombie's aim is not accurate.
- Zombies will go through walls if needed.
- Zombies don't know where the floor is (not using MapAndreas), so they may step below the floor.
- All of the Zombies will be online all the time, this consumes player slots and may make your server run slower
- This has not been tested with lot of people.
- Tons of fucking recordings in your npcmodes/recordings folder
- There must be other unknown bugs.

How to use

You must have RNPC and Icognito's Streamer plugins in order for this filterscript to work.

Quote:

- Open the Zombeydere.pwn file and compile it in your filterscript folder.
- Add the following line on top of your gamemode's OnPlayerConnect and OnPlayerSpawn callbacks.
Code:

if(IsPlayerNPC(playerid)) return 1;
- Add the following to the filterscript line in your server.cfg file
Code:

Zombeydere
- Start your server.

How to configure

Quote:

Open the Zombeydere.pwn file and find the following:

Code:

#define DUMMY_QUANT
#define MAX_ZOMBEY
#define MAX_ZOMBEY_PER_AREA

Although their names can give you a hint, i'll explain what each one of these settings do:

DUMMY_QUANT is the quantity of dummy npcs that will connect to your server before the actual NPCs (zombies). This is made in order to keep player IDs and NPC IDs separated from eachother. Default is 100. There's no limit set but keep the MAX below 400.

MAX_ZOMBEY is the quantity of zombeys that will connect to your server. They connect once the filterscript starts and will be kept in a pool of zombies until called to spawn in a certain zone. Default is 100. There's no limit set but keep the MAX below 400.

MAX_ZOMBEY_PER_AREA is the number of zombeys that will spawn in the areas. Default is 10. There's no limit set but keep the MAX below 20.
Quote:

To add more zones, create a new entry in the ZombeySpawns declaration on top of the filterscript.
Use {X,Y,Z,rotation} (the last is not in use yet though)

Download

Icognito's Streamer: http://forum.sa-mp.com/showthread.php?t=102865

Mauzen's RNPC: http://forum.sa-mp.com/showthread.php?t=355849

Zombeydere:
https://github.com/Troydere/Zombeydere
http://pastebin.com/1vjjFYeh

[FilterScript] DFT-30 camper

[FilterScript] [SEKCdere] Sniper Elite Killcam

$
0
0
Introduction

I have been playing Sniper Elite 3 for a while and I've just found that I only like it because of its head shot kill cam system. I decided to reproduce that headshot killcam in sa-mp because why not.

It's not as accurate as I would like it to be, let alone the realism. But I found it good enough to share it with you all.

Video

https://www.youtube.com/watch?v=nhhbuxK20lk

Features

Quote:

- Easy Customizable
- Players are immune to damage while in the cinematic
- Flexibility to use with or without Icognito's Streamer
- It's cool as fuck

Known Issues/Bugs

Quote:

- The 'bullet' is not very accurate.
- There's no bullet at all, it's only the camera travelling.

How to use

IMPORTANT: Lag compensation should be on in order for this script to work as intended.
Quote:

- Open the SEKCdere.pwn file and compile it in your filterscript folder.
- Add the following to the filterscript line in your server.cfg file
Code:

SEKCdere
- Start your server.

How to configure

Quote:

Open the SEKCdere.pwn file and find the following:

Code:

#define ALL_PLAYERS_KC
#define RANGE_KC
#define USE_STREAMER

Although their names can give you a hint, i'll explain what each one of these settings do:

ALL_PLAYERS_KC You can choose if you want only the involved players (who shot and who receive the bullet) to see the animation or if you want to display the killcam for players in the near range of the event. Default value is 0, which means only the involved players will be able to see the killcam. You can set this to 1 if you want the nearest players to see the killcam aswell

RANGE_KC This value is the range where the event occurs. The center of the point is the player who shoots. Default is 150. There's no MAX limit set for this, you can input whatever value you want here.

USE_STREAMER Define if you want to use Icognito's Streamer for the object creation (1 object per event) or use the default SA-MP natives. Default is 0, which means the Streamer is not in use. Set this value to 1 if you want to use the streamer functions.
Download

https://github.com/Troydere/SEKCdere
http://pastebin.com/Ei6XQMBL

[FilterScript] [MySQL / Dynamic] ATM's system for Roleplay

$
0
0
Video


Introduce
ATM's system - most of you knows what is it but i will make a fast description for the system i made,this system allows you to create ingame ATM's as many as you wish , it is perfect for roleplay servers, Once you have created an ATM you can delete/edit it however you want.You can create only 80 atms but you can change it to as many as you want.It has only 3 commands /atm delete - create - edit


Commands
  • atm create - allows you to create an atm
  • atm edit - allows you to edit the positio of the atm
  • atm delete - allows you to delete nearest atm
  • withdraw - it was made for test proupose ingame so you can delete it

Downloads
Mediafire (database)
Mediafire (pwn)

Hope you enjoy this also if you like it dont forget to rep me.

[FilterScript] Basic MoneyBag v1.1 ( a_sampdb, izcmd, SQLite)

$
0
0


Hello Guys,

Today I present to you a script called Basic Moneybag | SQL (Structured Query Language)! Database will be created automatically when you create a Moneybag!
Version v1.1

This script is intended for Freeroam/DM Servers. If you want to put a bag with money in a any location you must be RCON Administrator!Anyone who finds a bag with money will be listed below the amount of money and recently!Saving / storage in SQL (each line is subordinate to the database)!When a player picks up the money order in the database will be removed! This is a basic script, if you have ideas for improving the scripts only comment!

PS: Good Bad comments are welcomed(IDEC)

DOWNLOAD
http://pastebin.com/NCH7D0TG

[FilterScript] Event System [By TrieL]

$
0
0
Includes:
a_samp
zcmd
streamer

Alright, Here is my first Filterscript, So I decided to share it out here, Maybe others will use it for their servers! :D
Anyways, Let me tell you how does it run and other stuff!

First of all, It has no bugs or erorrs in script, neither!

CMD:MakeEvent: Usage of this command is [/MakeEvent Minigun 100000 38], It does means that it will make the event and announce in main chat to players about the event.

CMD:Ejoin: Usage of this command is that let you join the event, It will teleport you to event place!

CMD:Eleave: Usage of this command is that let you leave the event, It will teleport you to your old place!

CMD:Sevent: Usage of this command is that let Event Creator start the event, It will count from 5 to 1 and gives weapons to players who joined the event!

CMD:Ewin: Usage of this command is that give the winner the price, Event Creator should use it to give the price to last one in event who is not died and still alive!

CMD:Eevent: Usage of this command is that end the event after giving the winner the price, Event Creator should use it after using /ewin so he should use /eevent to end the event!

CMD:Einfo: Usage of this command is that shows event INFOS , Players use this command to see event and its info, like weapons/world/interior/who joined the event/who left the event and these stuff!

CMD:Eannounce: Usage of this command is that annoucing for players, Event Creator should use it to send his message to players and let them participate in the event!

CMD:Ekick: Usage of this command is that kick someone from event, Event Creator should use it to who is abusing in the event so he is able to kick their asses out of the event xD!

CMD:Ehelp: Usage of this command is that shows event system and its commands

And its the end, Here is the script, Would be glad to give me some credits if you'll add them in your server

http://pastebin.com/Aw2LJvyz

[FilterScript] Granade Launcher

$
0
0
Granade Launcher

A small fs that adds the possibility of using a grenade spear in place of the combat shotgun

I found it fun to play with this FS so I decided to post it

The grenade explosion will happen where the shot hits

Use / granede to use the spear grenades

Bugs: if you shoot somewhere where there is no physics, in heaven for example the explosion will not happen
(I considered this a bug and I will try to solve it in the future)

Download

[FilterScript] v1.0 Speed indicator / Speedometer with Correlli's Dynamic Circles

$
0
0
Simple speed indicator / Speedometer Circle

Hello!


Just checked out Correlli's Dynamic Circles. I felt like making something, since no one else posted anything related yet. So here is a Textdraw that converts the Velocity over to a visible green (or any defined color) line on the circle.

The source below requires:
- Foreach
- Textdraw Circles Include by Correlli (Check Requirements..) .

I would appreciate being corrected if my code contain unhappy mistakes.

I am not sure if i could make it even more efficient but did my best. It only updates the code if the speed is different from last update, and it only updates the text-draws that are affected.

Media:
https://www.youtube.com/watch?v=sQeT...ature=youtu.be
Check Attachment for picture

Requirements:
Correlli's Dynamic Circle System: http://forum.sa-mp.com/showthread.php?t=601855
Y_iterate: Click for GitHub (Or simply just foreach standalone.. People tend to not use YSI library). The include Requires it anyway
Mirror for the textdraw circle Include: https://1drv.ms/u/s!Ao9STFEV7-HjgtMIUwcINW43VyTp-w

PHP Code:

#include <a_samp> 
#include <foreach> 
#include <c_textdraw> 


main () 

    return 
1



//       __ _______      __  __  _                 
//     _/_//_/ ___/___  / /_/ /_(_)___  ____ ______
//   _/_//_/ \__ \/ _ \/ __/ __/ / __ \/ __ `/ ___/
// _/_//_/  ___/ /  __/ /_/ /_/ / / / / /_/ (__  ) 
///_//_/   /____/\___/\__/\__/_/_/ /_/\__, /____/  
//                                   /____/        
new TD_L_Value[MAX_PLAYERS];
new 
SpeedoTimer[MAX_PLAYERS]; 
#define UPDATE_INTERVAL 200 //How often do you want to update the spedometer textdraw? In milliseconds 
#define COLOR_EMPTY 0x00000055 //when no speed, which color? (The base color) 
#define COLOR_FILLED 0x33FF3377 //when speed detected, which color whould it be? 
#define SPEED_MULTIPLIER 43 //needs to be increased a bit if you lower the value of "DIFF" below. 
#define POSX 560.0 //Center Position X
#define POSY 400.0 //Center Position Y
#define DIAMETER 40.0  //Diameter of the circle
#define TD_LETTER ")"  //This is the letter the Circle is made of. ".", "," and ")" are the best ones in my opinion.
#define DIFF  4.0 // 1.40 is lowest, as 360/1.41 ~ 256. do 360/DIFF in order to see how many TXD's you get. The higher number = less textdraws, read about "DIFF" here:  
                                 //http://forum.sa-mp.com/showthread.php?p=3663973#post3663973 


public OnFilterScriptInit() 

    print(
"Circle Textdraw speedo v1.0 by denNorske has been loaded successfully"); 
    return 
1




public 
OnPlayerStateChange(playeridnewstateoldstate

    if(
newstate == PLAYER_STATE_ONFOOT && oldstate == PLAYER_STATE_DRIVER && TD_IsCircleCreated(playerid)) //The player was a driver, and now he's on foot. 
    

        
TD_DestroyCircle(playerid); 
        
KillTimer(SpeedoTimer[playerid]);  
    } 
    if(
newstate == PLAYER_STATE_DRIVER && !TD_IsCircleCreated(playerid)) //Player became a driver in a car, and no textdraws has been created yet
    

        
TD_CreateCircle(playerid,TD_LETTERCOLOR_EMPTYPOSXPOSYDIAMETERDIFF);  
        
SpeedoTimer[playerid] = SetTimerEx("UpdateSpeed"UPDATE_INTERVAL1"i"playerid); 
    } 
    return 
1



forward UpdateSpeed(playerid); 
public 
UpdateSpeed(playerid

    if(
GetPlayerState(playerid) == PLAYER_STATE_DRIVER && TD_IsCircleCreated(playerid)) 
    { 
        new 
Float:VelXFloat:VelTotalFloat:VelYFloat:VelZvalue
        
GetVehicleVelocity(GetPlayerVehicleID(playerid), VelXVelYVelZ); 
        
VelTotal floatsqroot(floatpower(VelX2) + floatpower(VelY2) + floatpower(VelZ2)); // 
        
value floatround(VelTotal*SPEED_MULTIPLIER); //the calc'ed velocity, added with 43 to make it work correctly. can be adjusted-- 

        
if(TD_L_Value[playerid] == value//no need to update anything. Very efficient if car is standing still, or the speed is constant
            
return 1

        else if(
TD_L_Value[playerid] < value//higher speed, aka only new green to add 
        

            if(
value floatround(360/DIFFfloatround_floor)) 
                
value floatround(360/DIFFfloatround_floor); //to avoid crashes. the speed may go higher than amount of textdraws, that's why 
            
for(new TD_L_Value[playerid]; ivaluei++) //TD_L_Value[playerid] is used here to avoid updating already colored part, and just extend the area.. 
            

                
TD_L_Value[playerid] = value
                
TD_SetCircleSlotColor(playeridiCOLOR_FILLED); 
            } 

        } 
        else if(
TD_L_Value[playerid] > value
        { 
            for(new 
valuei<TD_L_Value[playerid]; i++) 
            { 
                
TD_SetCircleSlotColor(playeridiCOLOR_EMPTY); 
            } 
            
TD_L_Value[playerid] = value
        } 
    } 
    return 
1


public 
OnFilterScriptExit() 

    foreach(new 
Player
        
TD_DestroyCircle(i);  
    print(
"Circles Unloaded"); 
    return 
1

public 
OnPlayerDisconnect(playeridreason

    
TD_DestroyCircle(playerid); 
    return 
1




If you have any further improvements to make, let me know.

Attached Images
File Type: jpg Uten navn.jpg (199.8 KB)

[FilterScript] Basic MoneyBag v1.1 ( a_sampdb, izcmd, SQLite)

$
0
0


Hello Guys,

Today I present to you a script called Basic Moneybag | SQL (Structured Query Language)! Database will be created automatically when you create a Moneybag!
Version v1.1

This script is intended for Freeroam/DM Servers. If you want to put a bag with money in a any location you must be RCON Administrator!Anyone who finds a bag with money will be listed below the amount of money and recently!Saving / storage in SQL (each line is subordinate to the database)!When a player picks up the money order in the database will be removed! This is a basic script, if you have ideas for improving the scripts only comment!

PS: Good Bad comments are welcomed(IDEC)

DOWNLOAD
http://pastebin.com/NCH7D0TG

[FilterScript] Ingame Texas Holdem Poker

$
0
0
Hello guys,

I made cool little script for my server, but I quited SA:MP so I will release it here...

This script is simple Texas Holdem Poker with advanced GUI for easyer playing, there is nothing more to say about script.

Code is written in Croatian language but has some English words, you can change code from Croatian to English :))

Script is not 100% finished, it has some bugs but most of the work is done !!!


Some pictures:






So this is it from me, if you want to read more detailed description of this sistem click HERE

Copyright: you can change everything and use this mode as you want, but if you edit it and post online for download please mention me (Luka_Matkic) :)))

DOWNLOAD HERE
Viewing all 595 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>