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

[FilterScript] Deathmatch Event [Simple and Automatic].

$
0
0
Hello,

Intro
It's been very long since I last made any releases, therefore I thought I should take a few minutes to make something simple and easy and release, just for the sake of it. This is not a very huge release or something, it's a simple Deathmatch event, it works pretty simple and the process is automated, which means all you (the admin) have to do is start the event with a command and rest is up to the system.



Features
  • Simple and automated.
  • join by simply typing /join.
  • Dm event Map provided within the script.
  • Map created for event virtual world only.
  • Saves and loads player weapons & locations. (saves when they join and loads when the leave).
  • Prizes for the winner.
  • Event done in another virtual world to avoid conflicts.
  • Optimized as much as possible with multiple tests.



Installation
  • Dependencies
    - a_samp (SA:MP Team)
    - zcmd (by zeex?)
    - YSI/y_iterate (foreach)
    - streamer (incognito)
  • Installation
    - Download the filterscript from github repo.
    - Download the required dependencies (if you don't have them already).
    - Place the .inc files into /pawno/include/ folder.
    - Open your IDE (pawn, sublime notepad++ etc) and compile the filterscript.pwn.
    - Open server.cfg and add dm_event to filterscripts.
    - Start the server..
    - Go ig and type /adminevent :D

  • Note
    I do not force you to keep any credits (even tho i havent added any in script), feel free to use it anyhow you want

Media
  • Credits
    - Samp Team for <a_samp>
    - Y_Less for YSI.
    - Incognito for streamer.
    - Zeex for zcmd.
    - Me for some effort
    - Zeth for testing.


  • Download
    - github repo
    https://github.com/iiLearner/dm_event

For any bugs create an issue on github, kbyethnx.

[FilterScript] Simple DM System

[FilterScript] Anti-Speed - Vehicles Only

$
0
0
Description:

You may wonder what this is, it's simple it's based on some kind of artificial intelligence concept although I cannot call it so because there is nothing yet intelligent about this. Some of you may say this is good to be considered as an snippet but nope, it's an entire code, more like open source.

This register speed for each vehicle model for each player, it adds them to a vector and then compares the values in the vector, if the difference between elements is too great, that means that at some point the player used cheats, it also allows for further scripting [ ADVANCED ONLY ] to create more scripts based on this script. I did not create this script to show how great I am in scripting but as an example of an idea that could be developed and it would be a waste to stay death in my computer, so here I am posting it.

Utility

You can change that difference and you can create something that marks the maximum speed for all vehicle models along the time.


Download:
https://pastebin.com/ZXBcEYff

I hope you fiind it usefull and that it doesn't get wasted, I mean it can be very a well a script that can change many servers given the chance.

[FilterScript] Wallet [Y_INI][ZCMD]

$
0
0
Wallet [Y_INI] [ZCMD]

About:
This is a concept script means I made this purely based on my concept, I tried to keep it simple and unique, you have any improvement you can let me know.

Concept of Working:
Here's my concept of how wallet should be in RPG/CnR servers; A person gets wallet on registration where he can hold all money he have in HUD but wallet can be looted by robbers(other players)[prevent this by depositing it in bank]. If a robber robs player's money then he will have 30 seconds(default/assumed) to run from player from getting killed. If robber gets killed by player then player will get his money+wallet+robber's wallet(with money)[Only 1 wallet can be there whole time so no 2 wallets]
which is clear that robber's death will loose them their money and wallet. If robber tries to disconnect during that period then robber will loose their money + wallet and player will get his wallet back with no money in it(only if he didn't buy new one). Also if robber gets kicked/banned then player will get his wallet+his money+robber's money(also wallet but can't have more than 1). [No TL; DR cause it took time to write this]

Commands:
Code:

/rob (random 10 tries - actually no. Only even number tries will be success)
/buywallet - 100$(default)
/wallet - money in HUD (useless command)

Saving:
  • Wallet Status (1 or 0)
  • Cash (if Wallet is 1)
  • Cash = 0 (if Wallet is 0)

Other Implementations(to be added by user):
  • Spawn to last location if player gets crashed also make player wait for robber to join back in order to recover money. Tutorial by SmiT
  • Make robber loose money if player left server(/q).
  • Save Stats command (for RCON/players).
  • Give wallet on connect.

Download:
wallet.pwn: Pastebin | RAW
sscanf | YSI 4.0.2 ~ Y_Less
ZCMD ~ Zeex

[FilterScript] Toggle minimap markers on/off.(First Filterscript)

$
0
0
Description
So, the thing that this script does is to toggle the players' colours from white to colourful, and from colourful to white.
Which would change their visibility on the radar.
For who does not know, white colour = invisible on the radar.
The filterscript was made with ZCMD.
The filterscript uses an array full of colours to randomly pick up a color and set it up to a player when toggling the markers on.
Toggling the markers on/off only uses one command, and it's "/togglemarks" of course, it can be changed.
This is my first filterscript ever, so tell me what you think. I have never seen any filterscript that is like the one I made, so have fun with that!

Requirements
[*]ZCMD
[*]The function "ShowPlayerMarkers()" to be set to "1".

Downloads:
Pastebin
NOTE: I know it's a very simple script, but I never seen any script like that, that's why I decided to share it!

[FilterScript] cmd engine

$
0
0
Hi there is a code for my shamal and hydra and ...
Just do not turn the 2 or + button and just type the /engine

[FilterScript] JAdmin [MySQL]

$
0
0
Hey there, i've made this new administration script. I didn't made it full because i don't have much time, my exams have been started so, i didn't made VIP and Helper commands. There are 2 players command i've made. I will add VIP and Helper commands after my exams. My exams will be completed on 10th date.

Credits to:- Gammix for ban system ;D

Link for the filterscript:-
http://www.mediafire.com/file/7pzfr1...Admin.pwn/file
Link for the SQL File:-
http://www.mediafire.com/file/ngdayd.../JSQL.txt/file

MySQL version - R39: https://github.com/pBlueG/SA-MP-MySQL/releases
sscanf: https://github.com/maddinat0r/sscanf/releases
zcmd: https://forum.sa-mp.com/showthread.php?t=91354
kickbanfix: https://github.com/falle3n/DelayKickBan
easyDialog: https://github.com/Awsomedude/easyDialog
Timestamptodate: https://forum.sa-mp.com/showthread.php?t=347605

Required Plugins:-

mysql
Whirlpool
sscanf2

Player Commands:- /admins, /stats

Admin Level 1:- /slap, /warn, /kick, /goto, /bring, /setvw, /rac, /veh, /fixveh, /mute, /unmute, /a.
Admin Level 2:- /slay, /spawn, /aheal, /jetpack, /setw, /getip, /teleport, /giveweapon, /disarm, /clearchat, /aod
Admin Level 3:- /sethealth, /setarmour, /setallhealth, /setallarmour, /settime, /freeze, /unfreeze, /announce
Admin Level 4:- /givecash, /giveallcash, /setskin, /setallskin, /setmoney, /resetmoney, /ban, /searchban
Admin Level 5:- /setlevel, /sethelper, /setvip, /setwanted, /restart

/a is for admin chat.

I didn't test the script yet, because i don't have much time.
Please tell me if the script have any problems. And i am sorry if my english is too bad.

You have to change the SQL defines
SQL_HOST "hostname"
SQL_USER "username"
SQL_DBSE "databasename"
SQL_PASS "password"

[FilterScript] [MySQL R41-4] Dynamic Report System

$
0
0
Introduction
This is an advanced dynamic report using the latest MySQL plugin [R41-4] which is controllable in-game, you are able to view reports, clear 15 latest reports from the database, accept reports, deny reports.

How to use it
Download or compile the script, paste it into your filterscripts folder, load it in server.cfg and start your server, simple right?

Commands
There are 5 commands, one of them is a player command and 4 others for administrators.
  • /report - Player Command (/report [id] [reason] - used to report someone)
  • /reports - Admin Command (used to view 15 latest reports available)
  • /clearreports - Admin Command (use this to clear 15 latest reports if the dialog displays 15/15)
  • /ar - Admin Command (used to accept a report from the ID, it will accept the report even if the player who reported is not online).
  • /dr - Admin Command (used to deny a report from the ID, it will deny the report even if the player who reported is not online).

Screenshots
Here's a list of screenshots I made:
https://imgur.com/a/NCDz3Dz

Credits
  • SA-MP Team - a_samp
  • BlueG / maddinat0r - a_mysql
  • Y_Less - sscanf2
  • Zeex - zcmd
  • Emmet - easyDialog
  • Kar - foreach

Download
GitHub
Pastebin


Bugs
There were no bugs while testing this, but if you find any instead of being mean report it and I'll fix it.

[FilterScript] Fully working RADIO SYSTEM

$
0
0
Hi, everybody I give you a simple Radio system, you will be able to listen to the radio, and you can add a your liking radio station URL.

Here is pastebin. Copy the pastebin,open the new.pwn and copy this to your new.pwn and compile.
https://pastebin.com/sEgttYx5

Sorry for my English, I from Lithuania, and I pay a little this language. :confused:

And all radio stations from Lithuania

[FilterScript] [MySQL - R41]: Dynamic teleports system - FixFl0w

$
0
0
Hello, this system has the following commands.

/createteleport [name] - create a teleport.
/teleport [name] - you teleport to a teleport.
/teleports - list of all available teleports.
/deleteteleport (Admin rcon) - You delete a teleport.

Then I will leave some images of this.




Pastebin: https://pastebin.com/6fdyBkNC

FixFl0w.

Sorry my language is Spanish, but that section was deleted, sad

[FilterScript] Need Best clanwwar system

$
0
0
Hey guys!
Can You give me a Good Auto clan war system file scripts?
I want to add it in my server
Thanks

[FilterScript] TAdmin - A MySQL administration system

$
0
0
TAdmin

A MySQL administration system because we don’t have enough of those!



This is my first ever release so go easy on me D: Hopefully the system is gonna be useful to some people because I spent a lot of time working on it and I’m super proud of the final product.

If you have suggestions, improvements, found bugs or just need some help, please make an issue, PM me on forum or post in the SA:MP forum topic.

The system current features:
  • A basic login and registration system.
  • +25 admin commands.
  • Advanced player and world management commands. (/set, /give, /all)
  • Simple ban system that stores the bans in a MySQL table.
  • Admin logging saved in MySQL table.
  • Easy configuration.
  • Basic spectating system.
  • RCON login attempts logging, query errors logging and more.
  • Discord intergration.

Requirements

Installation

1. Clone this repository locally and download the required plugins/includes.
2. Put the tadmin_tools.inc file in the pawno/include folder.
3. Open the pwn file and edit the following lines with your details:

Code:

#define SYSTEMNAME “TAdmin” // Feel free to change it to “Admin System”, “Admin” etc etc.


#define ADMIN_MAX_LEVELS    4

#define COLOR_ADMINMSG          0xCC0000FF // Color used in the ‘Admin Message:’ messages.
#define ADMIN_LEVEL_1_COLOR  0xFF9900AA
#define ADMIN_LEVEL_2_COLOR  0x33AA33AA
#define ADMIN_LEVEL_3_COLOR  0x006699AA
#define ADMIN_LEVEL_4_COLOR  0xFF0000FF

#define ADMIN_LEVEL_1_NAME  “Trial Admin”
#define ADMIN_LEVEL_2_NAME  “Admin”
#define ADMIN_LEVEL_3_NAME  “Lead Admin”
#define ADMIN_LEVEL_4_NAME  “Management”

new bool:TAdmin_Debug = false;
new bool:SendQueryErrorsToAdmins = true;
new bool:AdminMapTeleport = true;
new bool:RCONFailedNotification = true;
new bool:UseDiscord = true;

/* TAdmin_Debug: Setting this to true will show debug messages in the server log, useful for debugging issues with TAdmin.
SendQueryErrorsToAdmins: Setting this to true will send Query errors to in-game admins. Query errors are always shown in the console regardless of this setting.
AdminMapTeleport: Setting this to true will allow admins to teleport by clicking on the map. RCONFailedNotification: Setting this to true will send failed rcon login messages to all online admins. Failed login attempts are saved to Logs/FailedRCONLogins.txt regardless of this setting.
UseDiscord:  Setting this to true will enable all Discord related features. Discord settings can be found below. */

#define MAX_MUTE_TIME          120 // The max amount of time an admin can mute a player (in minutes)

#define MYSQL_HOSTNAME      “localhost”
#define MYSQL_USERNAME      “root”
#define MYSQL_PASSWORD      “”
#define MYSQL_DATABASE      “main”

// – Discord Settings
#define ChannelAdminLogs “”
#define ChannelAdminChat “”
// Both AdminLogs and AdminChat require a Discord channel ID. Info here: http://toni.pw/l/discorddevmode

4. Inside the Scriptfiles folder, create another folder titled Logs.

5. Open PHPMyAdmin [localhost/phpmyadmin](http://localhost/phpmyadmin) and create a new database corresponding to the value MYSQL_DATABASE in tadmin.pwn file.

6. Once you have created the database, import the main.sql file and you should have 3 tables titled accounts, adminlogs and bans.

7. Finally, compile the filterscript, include it in server.cfg file filterscripts tadmin and run the server.

FAQ

Quote:

Q: How do I check if the player is an admin?

A: if(PlayerInfo[playerid][pAdmin] < 1) return 0; This is gonna check if the player's admin level is less than 1 and if it is, it returns 0, else it executes the command.
Quote:

Q: How do I add another admin level?

A: This is a bit more complicated so bear with me:

1. Firstly, increase the ADMIN_MAX_LEVELS value to whatever you want (I'll use 5 in this case).

2. Add the level's name and color:
#define ADMIN_LEVEL_5_COLOR 0xFF00FFFF` `#define ADMIN_LEVEL_5_NAME "Owner"

3. Edit GetAdminRank:
Code:

GetAdminRank(playerid)
{
    new arank[64];
    switch(PlayerInfo[playerid][pAdmin])
    {
        case 5: arank = ADMIN_LEVEL_5_NAME;
                    case 4: arank = ADMIN_LEVEL_4_NAME;
        case 3: arank = ADMIN_LEVEL_3_NAME;
        case 2: arank = ADMIN_LEVEL_2_NAME;
        case 1: arank = ADMIN_LEVEL_1_NAME;
        default: arank = "Unknown";
    }
    return arank;
}

4. Then, you can add the new admin level to /ahelp.
Code:

        else if(strcmp("5", params, true) == 0)
        {
                if(PlayerInfo[playerid][pAdmin] >= 5)
                {
                          format(string, sizeof(string), "> %!s(MISSING) commands", ADMIN_LEVEL_5_NAME);
                    SendClientMessage(playerid, COLOR_ADMINMSG, string);
                    SendClientMessage(playerid, COLOR_WHITE, "*your level 5 commands go here*");
                }
        }

5. Finally, modify the /admins command so it can show level 5 admins as well:
case 5: format(string, sizeof(string), "%s (%d) - Level %d (%s)", GetName(i), i, PlayerInfo[i][pAdmin], ADMIN_LEVEL_5_NAME);
Quote:

Q: I don’t care about the Discord stuff, can I remove them?

A: You can however you will have to spend some time removing them. I might release a seperate version without the Discord stuffs but for now, simply remove anything that says Discord.
Credits
  • SA:MP team
  • Y_Less - SSCANF2 and Whirlpool
  • Zeex - ZCMD
  • BlueG - MySQL
  • Emmet_ - easyDialog
  • Southclaws - Chrono
  • willbedie - Registration and Login system Link as well as his ban system Link
  • maddinat0r - Discord Connector
  • Luka.P - PlayerZone include
  • Twixxx - Player_Geolocation include

[FilterScript] V.I.P system

$
0
0
VIP SYSTEM BY ZIGGAMERX


CHANGELOG
Complete script on 20/10/2018

Commands
Code:

/nos - adds nitros to vehicle
/vheal - heals yourslef
/vcar - spawns vip car
/vgod - turns on god mode
/vsay - announcemnets as vip
/vcc - changes car color
# for vip chat
/varmour - restores armour
/vbike - spawns V.I.P bike
/vheli - Spawns V.I.P helicopter
/vweaps- vip special weapons
/getvip - sets yourself as vip
/vips - list of online vips.

How many V.I.P Levels?
There are currently 2.

Credits

Code:

//----------------------------------------------------------------------------//
//V.I.P System by ZigGamerX.
//s_samp - Kalcor
//zcmd - Zeex
//Foreach - Thanks whoever made this.
//Sscanf2 - Thanks whoever made this.
//ZigGamerX Aka me - Script
//Jithu - Helping
//----------------------------------------------------------------------------//

Download links
https://pastebin.com/wZAgqY9U

PS:
This is my first script, sorry if i did something wrong.

Bugs
No bugs found right now.

Report if you found any.

[FilterScript] Dynamic Actors System [MySQL R41-4]

$
0
0
Dynamic Actors System Creation [MySQL]

The server i'm developing will have at least 50 actors, and creating one per one would be a pain in the ass.

To avoid creating them manually, i started searching how to create them dynamically but found only old threads with inefficient saving methods (dini and similar), then i said, if the mountain won't come to Muhammad, then Muhammad must go to the mountain.

So i decided to create this, a dynamic actors system where you can create how many actors as you wish. You don't have to worry about anything, script will do all the work.

Includes/plugins required:


MySQL R41-4: https://github.com/pBlueG/SA-MP-MySQL/releases
Sscanf: https://github.com/maddinat0r/sscanf/releases
Streamer: https://github.com/samp-incognito/sa...lugin/releases
I-ZCMD: https://github.com/YashasSamaga/I-ZC...ster/izcmd.inc

Installation

Download both .amx and .pwn files provided at the end of this topic.
Place .amx (and even .pwn file if you wish), in filterscripts folder.

Now open server.cfg and add dynamic_actors near the filterscripts line.

That's all, run the server and enjoy!

Commands

The system comes with 5 different commands that allows you to manage your created actors.

/actorhelp: Returns a list of all available commands.

/createactor [skin ID]: Creates an actor at your position with the selected skin ID. (From 0 to 311).

/removeactor [actor ID]: Removes an actor based on their ID.

/removeallactors: Removes ALL actors created, deleting them permanently from the database too.

/locatenearactors: Allows you to locate the closest actor in a range defined with MAX_ACTORS_RANGE. (Default is 50 meters, you can change it in the script - Look for #define MAX_ACTORS_RANGE 50.0)

Screens

Now some screens.

Creating actors:

https://image.ibb.co/fCQ8i0/sa-mp-024.jpg

Using /locatenearactors

https://image.ibb.co/nqZ130/locate-nearest-actor.jpg

Removing all actors with /removeallactors

https://image.ibb.co/mVj130/remove-all-actors.jpg

Bugs

Tested for like 1.5 hours and no bugs have been found. If you find any, please report them in this topic.

Download

You need to create "actors" table, here is the .SQL file:

https://pastebin.com/3ma89iDF

Or if you're lazy, run this query:

Code:

CREATE TABLE IF NOT EXISTS `actors`
(
  `dynamicActorID` int(3) NOT NULL AUTO_INCREMENT,
  `dynamicActorX` float NOT NULL,
  `dynamicActorY` float NOT NULL,
  `dynamicActorZ` float NOT NULL,
  `dynamicActorA` float NOT NULL,
  `dynamicActorVW` int(3) NOT NULL,
  `dynamicActorSkin` int(3) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

Pastebin: dynamic_actors.pwn https://pastebin.com/t1fvrjxS

I don't have GitHub, i'll probably open an account and put .amx file there, until then, if you want the .amx you can download it here:

https://www70.zippyshare.com/v/1BbQNN01/file.html

Last but not least...

If you have any comment or tip on how to optimize this system, feel free to post it, thank you!

Attached Images
File Type: jpg creating_actors.jpg (388.4 KB)
File Type: jpg locate_nearest_actor.jpg (186.9 KB)
File Type: jpg remove_all_actors.jpg (220.3 KB)

[FilterScript] Simple AFK System|First Script|

$
0
0
Its my First Filterscript It is very simple
It Just Change the Virtual World to Other And Freeze player SO that Cant move to kill anyother AFK and It set Players health Infinite

Commands
/AFK To Go AFK
/back To go Out of AFK

This script send You A msg "YOU ARE NOW AFK"
And Send a Public Msg "{user} is now AFK"

When YOu type /back it sends a Msg
TO you "you are Back now"
SEnd a Public MSG "{USER} is Back From AFK"


VIDEO link:https://*********/MMmfpOH3MzI


Download Link:
PastBin
NOT now Sorry
I cant Add PAwno File Right now But i will add Pawn File i cant Find it now i will make new FIle
I will add link
Now i am just adding Solid amx File
SOLID FILE
http://destyy.com/wZQ7nF
MIRROR:https://shrinkearn.com/f9GPq
Sorry for that

[FilterScript] Team deathmatch with cool features.

$
0
0
Rogue_TDM



Github: https://github.com/RogueDrifter/Rogue_TDM

Usage

Build with:

Code:

sampctl package ensure
sampctl package build

Use command:

Code:

/jointdm
Dependencies

Zcmd: https://github.com/Southclaws/zcmd

Explanation

It’s a basic TDM with cool features and sound effects + an intro.
What you can change within the script:
pawn Code:
#define RTDM_EVENT_COLOR -1
#define RTDM_SKIN_RED_TEAM 212
#define RTDM_SKIN_BLUE_TEAM 287
#define RTDM_EVENT_ENTRYCASH 2500

Updates

I plan on adding more textdraws and progressing for levels and upgrading weapons if i feel like its worth it.

Credits

SovietComrade is credited for the map, link: https://forum.sa-mp.com/showthread.php?t=658426
Zeex for the command processor, rest of the script is basically done by me.

Features

Streamed music i uploaded myself (but didn’t create, credits of those sounds go to their owners not me), textdraws, custom map (also not made by me), intro once you get inside the area and respawning ability.
pawn Code:
forward OnPlayerExitTDM(playerid);
public OnPlayerExitTDM(playerid)
This function is called remotely from the filterscript, you can use it to reset player's weather (because its set once player enters the team deatmatch) and i couldn't retrieve it because there's no GetPlayerWeather function.

[FilterScript] Dynamic Actors System [MySQL R41-4]

$
0
0




I was bored to add every single actor with CreateActor, so i decided to make this.

It's a dynamic actors creator where actors are saved/loading directly in a mysql table called "actors".

You don't need anymore to go ingame, select the actor position, type /save, copy XYZ coordinates, open .pwn file and paste them in CreateActor function. This script does all the work.

No bugs have been found during the almost 2 hours of test, but if you find any, please report them in this topic.

Commands:

/createactor [skin id] - Creates an actor at your position with the skin set.
/removeactor [actor id] - Removes an actor from the database.
/removeallactors - Removes all created actors from the database.
/locatenearactors - Locates all actors in a range defined with MAX_ACTORS_RANGE.


Include/Plugins required:

MySQL R41-4: https://github.com/pBlueG/SA-MP-MySQL/releases

Sscanf: https://github.com/maddinat0r/sscanf/releases

Streamer: https://github.com/samp-incognito/sa...lugin/releases

I-ZCMD: https://github.com/YashasSamaga/I-ZC...ster/izcmd.inc

GitHub:

https://github.com/KinderClans/Dynam...r-System-MySQL or https://github.com/KinderClans/Dynam...MySQL/releases

So, what else to say...i like big butts and i cannot lie, you other brothers can't deny.

Enjoy.

[FilterScript] [FS]Seatbelt and Helmet System by EzeeCube (good for RP servers)

$
0
0
Hy mates.

Today I made for you simple Helmet and Seatbelt System activate with Y(KEY_YES) YOU GET REAL SEATBELT CHECK PHOTOS.
I made it because it's good for RP. You can put helmet on when you seat on bike, motorbike and seatbet when you seat car. If you dont use seatbelt in car you will lose HP when you will crash!

I hope you will like it.
If you need any help just PM or text at chat.

IF YOU KNOW HOW TO UPLOAD ******* VIDEO PLS PM!
[FS]Seatbelt and Helmet System by EzeeCube






Have fun with FS: EzeeCube
All credits go to me


Pastebin: https://pastebin.com/HhLciMnw

[FilterScript] Vice city undercover copcar

$
0
0
Hi guys!

I came with my old script.

Type /undercover and you'll get a red cheetah with an UZI, like was in the GTA:VC!
Press Y key and your siren will appear too!



Code:

#include <a_samp>
#include <zcmd>

new UndercoverCar[MAX_PLAYERS];
new SirenObject[MAX_VEHICLES];

public OnFilterScriptExit()
{
        for(new i; i < MAX_VEHICLES; i++)
        {
            DestroyObject(SirenObject[i]);
        }
        return 1;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    #define PRESSED(%0) \
(((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
        if (PRESSED(KEY_YES))
        {
                if (GetPlayerVehicleID(playerid) == UndercoverCar[playerid])
                {
            if(SirenObject[GetPlayerVehicleID(playerid)] == 0)
            {
                                if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 415)
                            {
                                        SirenObject[GetPlayerVehicleID(playerid)] = CreateObject(18646, 10.0, 10.0, 10.0, 0, 0, 0);
                                    AttachObjectToVehicle(SirenObject[GetPlayerVehicleID(playerid)], GetPlayerVehicleID(playerid), 0.0, 0.75, 0.275, 0.0, 0.1, 0.0);
                                }
                        }
                        else if(SirenObject[GetPlayerVehicleID(playerid)] != 0)
                        {
                            DestroyObject(SirenObject[GetPlayerVehicleID(playerid)]);
                            SirenObject[GetPlayerVehicleID(playerid)] = 0;
                        }
                }
        }
        return 1;
}
public OnVehicleDeath(vehicleid, killerid)
{
    DestroyObject(SirenObject[vehicleid]);
    return 1;
}

CMD:undercover(playerid,params[])
{
        if(GetPlayerMoney(playerid) >=  5000)
        {
                if (UndercoverCar[playerid] != 0)
                {
                    DestroyVehicle(UndercoverCar[playerid]);
                }
                new Float:x,Float:y,Float:z;
                GivePlayerMoney(playerid,-5000);
                GetPlayerPos(playerid,x,y,z);
                UndercoverCar[playerid] = CreateVehicle(415,x,y,z,0,003,003,-1);
                PutPlayerInVehicle(playerid,UndercoverCar[playerid],0);
                GivePlayerWeapon(playerid,28,5000);
                AddVehicleComponent(UndercoverCar[playerid], 1098);
                SendClientMessage(playerid,-1,"You bought an undercover SAPD cheetah!");
                SendClientMessage(playerid,-1,"You got an UZI with 5000 ammo!");
                SendClientMessage(playerid,-1,"For siren press 'Y'!");
        }
        else SendClientMessage(playerid,-1,"Not enough money! (5000$)");
        return 1;
}

[FilterScript] Private Message System (PM)

$
0
0
Hello people, today I came here to post a job that I did
, I was a little bored, and I decided to create a more personalized 'Private Message System (PM)',

Cmds
/pm
/blockpm
/desblockpm

Créditos:By RcLuanz1n



https://pastebin.com/RAFPt0px
Viewing all 595 articles
Browse latest View live


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