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

[FilterScript] Register & log-in system using jsql.inc


[FilterScript] Dynamic biz system.

$
0
0
Full Dynamic biz system




» Create a biz easily.

» Features:
- Saved biz system (YINI)
- 6 type of biz available (Total : 29 interiors)
- Customizable name for each biz
- Deposit money on your biz
- Make people pay when they enter in your biz
- Admin commands

» Include:

Code:

#include <a_samp>
#include <izcmd>
#include <sscanf2>
#include <foreach>
#include <YSI\y_ini>
#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
/modifybiz : modify a biz like /biz

» Non-RCON commands:
/buybiz : buy a biz
/sellbiz : sell a biz
/biz : manage your biz

» Configuration:
Code:

MAX_BIZ 100
- The number of biz

Code:

MAX_BALANCE 1000000
- Amount of max money can be stored in a biz

Code:

MAX_BIZ_NAME 24
- The max lengh of a biz's name

Note:
You need to create 2 folders.
Code:

\scriptfiles\BizData
\scriptfiles\BizData\Biz

If you have any suggestions or comments, let me know.
Download :

[Map] New Houses In Los Santos Near Alhambra

[FilterScript] Colors V1

$
0
0
Colors


Code


Code:

// Filterscript By TrexY //
// ALL RIGHT RESERVED ! © //
// If you are use this, please don't remove my credits //
// Respect ME //

/* Informations

Preparation time: 10-20 minutes.
Version: 0.3.7 [Working]
Which filterscript: [1]
Filterscript version: V1
Next update: None
Bugs: None

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~THANKS~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*a_samp*

Author: SA-MP Team
Check it: http://www.sa-mp.com
________________________________________________________________________________
*ZCMD*

Author: Zeex
Check it : http://forum.sa-mp.com/showthread.php?t=91354
________________________________________________________________________________
*SAMP Community*

Author: SA-MP players -> Tutorials
Check it : http://www.forum.sa-mp.com

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Rights: All rights reserved ! ©
*/



#include <a_samp>
#include <zcmd> // Zeex
#include <fixchars> //
//
#define DIALOG_0 100
//

// Colors //

#define BLACK 0x000000FF //{000000}
#define WHITE 0xFFFFFFFF //{FFFFFF}
#define YELLOW 0xFFFF00FF //{FFFF00}
#define PALEYELLOW 0xFFFF80FF //{FFFF80}
#define GREEN 0x00FF00FF //{00FF00}
#define PINK 0xFF80FFFF //{FF80FF}
#define LIGHTGREEN 0x00FF80FF //{00FF80}
#define ORANGE 0xFF8000FF //{FF8000}
#define GRAY 0xC0C0C0FF //{C0C0C0}
#define Turquoise 0x00FFFFFF //{00FFFF}
#define RED 0xFF0000FF //{FF0000}
#define BLUE 0x0000FFFF //{0000FF}
#define LIGHTBLUE 0x0080FFFF //{0080FF}
#define GOLD 0xDED307FF //{DED307}
#define PURPLE 0x8E2FB7FF //{8E2FB7}
#define LIGHTGRAY 0xB0B0B0FF //{B0B0B0}
#define IDK 0xE10071FF //{E10071}

//
CMD:colors(playerid,params[])
{
ShowPlayerDialog(playerid, DIALOG_0, DIALOG_STYLE_LIST, "Colors By TrexY", "{00FF00}GREEN\n{0000FF}BLUE\n{8E2FB7}PURPLE\n{FF8000}ORANGE\n{FFFF00}YELLOW\n{FF0000}RED\n{DED307}GOLD\n{00FF80}LIGHTGREEN\n{00FFFF}Turquoise\n{FFFF80}PALE YELLOW\n{E10071}PURPLISH\n{00000F}BLACK\n{FFFFFF}WHITE\n{C0C0C0}GRAY", "OK!", "Cancel");
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOG_0)
        {
            if(response)
            {
                if(listitem == 0)
                {
                        SetPlayerColor(playerid, GREEN);
                        SendClientMessage(playerid, GREEN, "New color is the name. ");
                }
                if(listitem == 1)
                {
                        SetPlayerColor(playerid, BLUE);
                        SendClientMessage(playerid, BLUE, "New color is the name. ");
                }
                if(listitem == 2)
                {
                          SetPlayerColor(playerid, PINK);
                          SendClientMessage(playerid, PINK, "New color is the name. ");
                }
                if(listitem == 3)
                {
                          SetPlayerColor(playerid, ORANGE);
                          SendClientMessage(playerid, ORANGE, "New color is the name. ");
                }
                if(listitem == 4)
                {
                          SetPlayerColor(playerid, YELLOW);
                          SendClientMessage(playerid, YELLOW, "New color is the name. ");
                }
                if(listitem == 5)
                {
                          SetPlayerColor(playerid, RED);
                          SendClientMessage(playerid, RED, "New color is the name. ");
                }
                if(listitem == 6)
                {
                          SetPlayerColor(playerid, GOLD);
                          SendClientMessage(playerid, GOLD, "New color is the name. ");
                }
                if(listitem == 7)
                {
                          SetPlayerColor(playerid, LIGHTGREEN);
                          SendClientMessage(playerid, LIGHTGREEN, "New color is the name. ");
                }
                if(listitem == 8)
                {
                          SetPlayerColor(playerid, Turquoise);
                          SendClientMessage(playerid, Turquoise, "New color is the name. ");
                }
                if(listitem == 9)
                {
                          SetPlayerColor(playerid, PALEYELLOW);
                          SendClientMessage(playerid, PALEYELLOW, "New color is the name. ");
                }
                if(listitem == 10)
                {
                          SetPlayerColor(playerid, IDK);
                          SendClientMessage(playerid, IDK, "New color is the name. ");
                }
                if(listitem == 11)
                {
                          SetPlayerColor(playerid, BLACK);
                          SendClientMessage(playerid, BLACK, "New color is the name. ");
                }
                if(listitem == 12)
                {
                          SetPlayerColor(playerid, WHITE);
                          SendClientMessage(playerid, WHITE, "New color is the name. ");
                }
                if(listitem == 13)
                {
                          SetPlayerColor(playerid, GRAY);
                          SendClientMessage(playerid, GRAY, "New color is the name. ");
                }
        }
        }else{
        SendClientMessage(playerid, 0x400000FF, "You have left the dialog menu.");
        }
return 1;
}

// The END //

Pictures


I think it unnecessary here.


Notes


Easy to Use
This is my first FS


Credits


Zeex ~ ZCMD
SA-MP ~ A_SAMP

[FilterScript] Interior Selecter with all 110 Interiors

$
0
0
INTSelecter

Created by Zack Larson

Usage Commands:[/]
hgintmenu[1-10]
Freeze/Unfreeze
Up/Down/Left/Right (If you get stuck)

Do you ever get tired of going to SA-MP Wiki page to get coordinates for Interiors? Well don't worry anymore because this Filterscript allows you to do that with the click of a button! All 110 Interiors from http://weedarr.wikidot.com/interior.

Screenshot:


Download(If file is not .Pwn or file not found reply in comments):https://www.mediafire.com/?4v53p7wem5mv76t
Pastebin: http://pastebin.com/bN9YhA9n

If this Filterscript was helpful leave a comment and enjoy!

[FilterScript] SHOPPING 'THE SAINTS' + INSIDE'S | By OTACON

$
0
0
[FS/MAP] SHOPPING 'THE SAINTS' + INSIDE'S | By OTACON

-




-


-


-


-


-


-


-


-


-


-


-


-


[] Downloads:
pastebin:


mega:


[] Credits:
OTACON

[FilterScript] Food Stand [Streamer][Simple]

$
0
0
Food Stand

Created by: Milokavis

One of my first scripts

Commands:
/buy food

Simple food stand script I created for fun, it allows you to buy food from most of the food stands around the Santa Maria beach area, more stands can easily be added.
The filter scripts also features a streamer which will choses the food stand that is within 10 meters and place a checkpoint on it. once you enter the checkpoint you will be able to use the command /buy food. if you are not in a checkpoint you will not be able to use the command

Screenshots




Thank you very much and I hope you enjoy my filterscript.

Download
(v.1.0)Download Pastebin
(v.1.1)Download Pastebin

[FilterScript] Weapon Tints (GTA-V Style)

$
0
0
I'll share this one with you all :)

Enjoy!



https://www.youtube.com/watch?v=GmYqA-Q7tDg

Code:

#include <a_samp>
#include <ZCMD>
#include <streamer>

#define        MAX_WEPTINTS        11

enum ePlayerInfo {

        p_iWepTints[MAX_WEPTINTS]
}
new PlayerInfo[MAX_PLAYERS][ePlayerInfo];

new iGunShopActor;

new iWeaponTints[6] = {
        0xFF4B5320, // Army
        0xFF9EAF43, // Green
        0xFFFFAE1A, // Orange
        0xFF0073E6, // LSPD
        0xFFFF1493, // Pink
        0xFFFFD700 // Gold
};

new Menu:iGunShopWeaponMenuID,
        Menu:iGunShopWeaponTintMenuID,
        bool:bPlayerInGunMenu[MAX_PLAYERS],
        pCurrentWeapon[MAX_PLAYERS];

public OnFilterScriptInit() {

        iGunShopActor = CreateActor(179, 295.5334,-40.5803,1001.5156, 0.0);

        iGunShopWeaponMenuID = CreateMenu("Weapon Tint Shop", 1, 20.0, 100.0, 200.0, 100.0);
        AddMenuItem(iGunShopWeaponMenuID, 0, "9MM Pistol");
        AddMenuItem(iGunShopWeaponMenuID, 0, "Silenced Pistol");
        AddMenuItem(iGunShopWeaponMenuID, 0, "Desert Eagle");
        AddMenuItem(iGunShopWeaponMenuID, 0, "Pump Shotgun");
        AddMenuItem(iGunShopWeaponMenuID, 0, "Combat Shotgun");
        AddMenuItem(iGunShopWeaponMenuID, 0, "UZI");
        AddMenuItem(iGunShopWeaponMenuID, 0, "MP5");
        AddMenuItem(iGunShopWeaponMenuID, 0, "AK47");
        AddMenuItem(iGunShopWeaponMenuID, 0, "M4");
        AddMenuItem(iGunShopWeaponMenuID, 0, "TEC-9");
        AddMenuItem(iGunShopWeaponMenuID, 0, "Rifle");

        iGunShopWeaponTintMenuID = CreateMenu("Weapon Tints", 1, 20.0, 100.0, 200.0, 100.0);
        AddMenuItem(iGunShopWeaponTintMenuID, 0, "Army Tint ($500.000)");
        AddMenuItem(iGunShopWeaponTintMenuID, 0, "Green Tint ($500.000)");
        AddMenuItem(iGunShopWeaponTintMenuID, 0, "Orange Tin ($500.000)t");
        AddMenuItem(iGunShopWeaponTintMenuID, 0, "LSPD Tint ($1.000.000)");
        AddMenuItem(iGunShopWeaponTintMenuID, 0, "Pink Tint ($1.000.000)");
        AddMenuItem(iGunShopWeaponTintMenuID, 0, "Gold Tint ($2.000.000)");
        return 1;
}

public OnFilterScriptExit() {

        DestroyActor(iGunShopActor);
        return 1;
}

public OnPlayerDisconnect(playerid, reason) {

        if(GetPlayerMenu(playerid) == iGunShopWeaponTintMenuID || GetPlayerMenu(playerid) == iGunShopWeaponMenuID) {
                DestroyDynamicObject(GetPVarInt(playerid, "GunShpObj"));
                DeletePVar(playerid, "GunShpSel0");
                DeletePVar(playerid, "GunShpSel1");
                DeletePVar(playerid, "GunShpObj");
                SetCameraBehindPlayer(playerid);
        }
        bPlayerInGunMenu[playerid] = false;
        return 1;
}

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) {

        if(newkeys & KEY_YES) {

                if(GetPlayerTargetActor(playerid) != INVALID_ACTOR_ID) {

                        new iActorID = GetPlayerTargetActor(playerid);
                        if(iActorID == iGunShopActor) {

                                SetPlayerCameraPos(playerid, 295.5854, -38.2358, 1002.2467);
                                SetPlayerCameraLookAt(playerid, 295.5898, -39.2343, 1002.0201);
                                new iObjectID = CreateDynamicObject(346, 295.46719, -39.79360, 1001.68970,  0.00000, 0.00000, 0.00000, .playerid = playerid);
                                MoveDynamicObject(iObjectID, 295.47,-39.79360, 1001.68970, 0.0005, 0.0, 0.0, 180.0);
                                Streamer_Update(playerid, STREAMER_TYPE_OBJECT);
                                SetPVarInt(playerid, "GunShpObj", iObjectID);
                                ShowMenuForPlayer(iGunShopWeaponMenuID, playerid);
                                bPlayerInGunMenu[playerid] = true;
                                TogglePlayerControllable(playerid, false);
                        }
                }
        }
}

public OnPlayerUpdate(playerid) {

        new newkeys,
                updown,
                leftright;

        new pCurWeap = GetPlayerWeapon(playerid);
    if(pCurWeap != pCurrentWeapon[playerid]) {

        WepTint_OnPlayerChangeWeapon(playerid, pCurWeap);
                pCurrentWeapon[playerid] = pCurWeap;
    }

    GetPlayerKeys(playerid, newkeys, updown, leftright);
        if(updown == KEY_UP) {

                if(bPlayerInGunMenu[playerid]) {
                       
                        if(GetPlayerMenu(playerid) == iGunShopWeaponMenuID) {

                                new iPMenuItem = GetPVarInt(playerid, "GunShpSel0"),
                                        iObjectID = GetPVarInt(playerid, "GunShpObj");

                                if(iPMenuItem < 1) iPMenuItem = MAX_WEPTINTS;
                                iPMenuItem--;

                                DestroyDynamicObject(iObjectID);
                                iObjectID = CreateDynamicObject(WepTint_GetWeaponObjectID(iPMenuItem), 295.46719, -39.79360, 1001.68970, 0.00000, 0.00000, 0.00000, .playerid = playerid);
                                Streamer_Update(playerid, STREAMER_TYPE_OBJECT);
                                MoveDynamicObject(iObjectID, 295.47,-39.79360, 1001.68970, 0.0005, 0.0, 0.0, 180.0);
                                SetPVarInt(playerid, "GunShpObj", iObjectID);
                                SetPVarInt(playerid, "GunShpSel0", iPMenuItem);
                        }
                        else if(GetPlayerMenu(playerid) == iGunShopWeaponTintMenuID) {

                                new iPMenuItem = GetPVarInt(playerid, "GunShpSel1"),
                                        iObjectID = GetPVarInt(playerid, "GunShpObj");

                                if(iPMenuItem < 1) iPMenuItem = sizeof(iWeaponTints)-1;
                                iPMenuItem--;

                                DestroyDynamicObject(iObjectID);
                                iObjectID = CreateDynamicObject(WepTint_GetWeaponObjectID(GetPVarInt(playerid, "GunShpSel0")), 295.46719, -39.79360, 1001.68970, 0.00000, 0.00000, 0.00000, .playerid = playerid);
                                Streamer_Update(playerid, STREAMER_TYPE_OBJECT);
                                MoveDynamicObject(iObjectID, 295.47,-39.79360, 1001.68970, 0.0005, 0.0, 0.0, 180.0);
                                SetPVarInt(playerid, "GunShpObj", iObjectID);
                                SetPVarInt(playerid, "GunShpSel1", iPMenuItem);
                        }
                }
        }
        if(updown == KEY_DOWN) {

                if(bPlayerInGunMenu[playerid]) {
                       
                        if(GetPlayerMenu(playerid) == iGunShopWeaponMenuID) {

                                new iPMenuItem = GetPVarInt(playerid, "GunShpSel0"),
                                        iObjectID = GetPVarInt(playerid, "GunShpObj");

                                if(iPMenuItem >= MAX_WEPTINTS-1) iPMenuItem = -1;
                                iPMenuItem++;

                                DestroyDynamicObject(iObjectID);
                                iObjectID = CreateDynamicObject(WepTint_GetWeaponObjectID(iPMenuItem), 295.46719, -39.79360, 1001.68970, 0.00000, 0.00000, 0.00000, .playerid = playerid);
                                Streamer_Update(playerid, STREAMER_TYPE_OBJECT);
                                MoveDynamicObject(iObjectID, 295.47,-39.79360, 1001.68970, 0.0005, 0.0, 0.0, 180.0);
                                SetPVarInt(playerid, "GunShpObj", iObjectID);
                                SetPVarInt(playerid, "GunShpSel0", iPMenuItem);
                        }
                        else if(GetPlayerMenu(playerid) == iGunShopWeaponTintMenuID) {

                                new iPMenuItem = GetPVarInt(playerid, "GunShpSel1"),
                                        iObjectID = GetPVarInt(playerid, "GunShpObj");

                                if(iPMenuItem >= sizeof(iWeaponTints)-1) iPMenuItem = -1;
                                iPMenuItem++;

                                DestroyDynamicObject(iObjectID);
                                iObjectID = CreateDynamicObject(WepTint_GetWeaponObjectID(GetPVarInt(playerid, "GunShpSel0")), 295.46719, -39.79360, 1001.68970, 0.00000, 0.00000, 0.00000, .playerid = playerid);
                                Streamer_Update(playerid, STREAMER_TYPE_OBJECT);
                                MoveDynamicObject(iObjectID, 295.47,-39.79360, 1001.68970, 0.0005, 0.0, 0.0, 180.0);
                                SetPVarInt(playerid, "GunShpObj", iObjectID);
                                SetPVarInt(playerid, "GunShpSel1", iPMenuItem);
                        }
                }
        }
}

public OnPlayerSelectedMenuRow(playerid, row) {

        if(GetPlayerMenu(playerid) == iGunShopWeaponMenuID) {
               
                new iObjectID = GetPVarInt(playerid, "GunShpObj");
                DestroyDynamicObject(iObjectID);
                iObjectID = CreateDynamicObject(WepTint_GetWeaponObjectID(row), 295.46719, -39.79360, 1001.68970,  0.00000, 0.00000, 0.00000, .playerid = playerid);
                MoveDynamicObject(iObjectID, 295.47,-39.79360, 1001.68970, 0.0005, 0.0, 0.0, 180.0);
                Streamer_Update(playerid, STREAMER_TYPE_OBJECT);
                SetPVarInt(playerid, "GunShpObj", iObjectID);
                SetPVarInt(playerid, "GunShpSel0", row);
                ShowMenuForPlayer(iGunShopWeaponTintMenuID, playerid);
                return 1;
        }
        if(GetPlayerMenu(playerid) == iGunShopWeaponTintMenuID) {
               
                SetPlayerWeaponPrint(playerid, WepTint_GetWeaponIDFromChoice(GetPVarInt(playerid, "GunShpSel0")), row);
                DestroyDynamicObject(GetPVarInt(playerid, "GunShpObj"));
                DeletePVar(playerid, "GunShpSel0");
                DeletePVar(playerid, "GunShpSel1");
                DeletePVar(playerid, "GunShpObj");
                SetCameraBehindPlayer(playerid);
                TogglePlayerControllable(playerid, true);
                bPlayerInGunMenu[playerid] = false;
                return 1;
        }
        return 1;
}

public OnPlayerExitedMenu(playerid) {

        if(GetPlayerMenu(playerid) == iGunShopWeaponMenuID && !GetPVarType(playerid, "GunShpSel1")) {
                DestroyDynamicObject(GetPVarInt(playerid, "GunShpObj"));
                DeletePVar(playerid, "GunShpSel0");
                DeletePVar(playerid, "GunShpObj");
                SetCameraBehindPlayer(playerid);
                TogglePlayerControllable(playerid, true);
                bPlayerInGunMenu[playerid] = false;
        }
        else if(GetPlayerMenu(playerid) == iGunShopWeaponTintMenuID) {
                DestroyDynamicObject(GetPVarInt(playerid, "GunShpObj"));
                DeletePVar(playerid, "GunShpSel0");
                DeletePVar(playerid, "GunShpSel1");
                DeletePVar(playerid, "GunShpObj");
                SetCameraBehindPlayer(playerid);
                TogglePlayerControllable(playerid, true);
                bPlayerInGunMenu[playerid] = false;
        }       
    return 1;
}

WepTint_GetWeaponObjectID(iChoiceID) {

        new iObjectID;
        switch(iChoiceID) {

                case 0: iObjectID = 346;
                case 1: iObjectID = 347;
                case 2: iObjectID = 348;
                case 3: iObjectID = 349;
                case 4: iObjectID = 351;
                case 5: iObjectID = 352;
                case 6: iObjectID = 353;
                case 7: iObjectID = 355;
                case 8: iObjectID = 356;
                case 9: iObjectID = 372;
                case 10: iObjectID = 357;
                case 11: iObjectID = 359;
                case 12: iObjectID = 360;
                case 13: iObjectID = 362;
        }
        return iObjectID;
}

WepTint_GetWeaponIDFromChoice(iChoiceID) {

        new iWeaponID;
        switch(iChoiceID) {

                case 0: iWeaponID = 22;
                case 1: iWeaponID = 23;
                case 2: iWeaponID = 24;
                case 3: iWeaponID = 25;
                case 4: iWeaponID = 27;
                case 5: iWeaponID = 28;
                case 6: iWeaponID = 29;
                case 7: iWeaponID = 30;
                case 8: iWeaponID = 31;
                case 9: iWeaponID = 32;
                case 10: iWeaponID = 33;
                case 11: iWeaponID = 35;
                case 12: iWeaponID = 36;
                case 13: iWeaponID = 38;
        }
        return iWeaponID;
}

WepTint_GetChoiceIDFromWeapon(iWeaponID) {

        new iChoiceID;
        switch(iWeaponID) {

                case 22: iChoiceID = 0;
                case 23: iChoiceID = 1;
                case 24: iChoiceID = 2;
                case 25: iChoiceID = 3;
                case 27: iChoiceID = 4;
                case 28: iChoiceID = 5;
                case 29: iChoiceID = 6;
                case 30: iChoiceID = 7;
                case 31: iChoiceID = 8;
                case 32: iChoiceID = 9;
                case 33: iChoiceID = 10;
                case 35: iChoiceID = 11;
                case 36: iChoiceID = 12;
                case 38: iChoiceID = 13;
                default: iChoiceID = 0;
        }
        return iChoiceID;
}

WepTint_OnPlayerChangeWeapon(playerid, newweapon) {

        RemovePlayerAttachedObject(playerid, 7);
        if(PlayerInfo[playerid][p_iWepTints][WepTint_GetChoiceIDFromWeapon(newweapon)]) {

                SetPlayerWeaponPrint(playerid, newweapon, PlayerInfo[playerid][p_iWepTints][WepTint_GetChoiceIDFromWeapon(newweapon)]);
        }
}

SetPlayerWeaponPrint(playerid, iWepID, iChoice) {

        switch(iWepID) {

                case 22: SetPlayerAttachedObject(playerid, 7, 346, 6, -0.004999, -0.003999, -0.006000, 0.000000, 0.000000, -1.800000, 1.007000, 1.337999, 1.069000, iWeaponTints[iChoice], iWeaponTints[iChoice]);
                case 23: SetPlayerAttachedObject(playerid, 7, 347, 6, -0.003999, -0.001999, -0.003999, 0.000000, 0.299999, -0.999999, 1.000000, 1.188000, 1.063000, iWeaponTints[iChoice], iWeaponTints[iChoice]);
                case 24: SetPlayerAttachedObject(playerid, 7, 348, 6, -0.006999, -0.004000, 0.002000, -1.600000, -0.200000, 0.400000, 1.019999, 1.146999, 1.027000, iWeaponTints[iChoice], iWeaponTints[iChoice]);
                case 25: SetPlayerAttachedObject(playerid, 7, 349, 6, 0.000000, -0.008999, -0.004000, 0.000000, 1.099999, 1.499999, 1.000000, 1.222000, 1.088000, iWeaponTints[iChoice], iWeaponTints[iChoice]);
                case 27: SetPlayerAttachedObject(playerid, 7, 351, 6, 0.003000, -0.014000, -0.003000, 0.000000, 0.000000, 2.199999, 1.000000, 1.371000, 1.023000, iWeaponTints[iChoice], iWeaponTints[iChoice]);
                case 28: SetPlayerAttachedObject(playerid, 7, 352, 6, -0.002000, -0.008000, -0.001999, -0.300000, 0.000000, 1.199999, 1.019999, 1.245000, 1.043000, iWeaponTints[iChoice], iWeaponTints[iChoice]);
                case 29: SetPlayerAttachedObject(playerid, 7, 353, 6, 0.000000, -0.009000, -0.009000, 0.000000, 0.099999, 2.100000, 1.000000, 1.290001, 1.053000, iWeaponTints[iChoice], iWeaponTints[iChoice]);
                case 30: SetPlayerAttachedObject(playerid, 7, 355, 6, 0.000000, -0.011000, 0.000000, 0.000000, 0.000000, 2.100000, 1.009000, 1.424000, 1.013000, iWeaponTints[iChoice], iWeaponTints[iChoice]);
                case 31: SetPlayerAttachedObject(playerid, 7, 356, 6, -0.002000, -0.005999, 0.001000, 0.000000, 0.899999, 1.699999, 0.997999, 1.318999, 1.088001, iWeaponTints[iChoice], iWeaponTints[iChoice]);
                case 32: SetPlayerAttachedObject(playerid, 7, 372, 6, -0.003000, -0.009000, -0.001999, 0.000000, 0.400000, 0.800000, 1.015000, 1.232000, 1.055000, iWeaponTints[iChoice], iWeaponTints[iChoice]);
                case 33: SetPlayerAttachedObject(playerid, 7, 357, 6, 0.000000, -0.015000, -0.001999, 0.000000, 1.200000, 2.199999, 1.000000, 1.286001, 1.096001, iWeaponTints[iChoice], iWeaponTints[iChoice]);
                case 35: SetPlayerAttachedObject(playerid, 7, 359, 6, 0.001999, -0.007000, -0.009000, 0.000000, -0.100000, 0.000000, 0.989999, 1.213001, 1.084001, iWeaponTints[iChoice], iWeaponTints[iChoice]);
                case 36: SetPlayerAttachedObject(playerid, 7, 360, 6, 0.001000, -0.004999, -0.008000, 0.000000, 0.000000, 0.000000, 1.000000, 1.140000, 1.055000, iWeaponTints[iChoice], iWeaponTints[iChoice]);
                case 38: SetPlayerAttachedObject(playerid, 7, 362, 6, -0.041000, 0.001999, 0.012000, 0.000000, 0.999999, -0.599999, 1.085000, 1.189999, 1.134000, iWeaponTints[iChoice], iWeaponTints[iChoice]);
                default: return 1;
        }
        GivePlayerWeapon(playerid, iWepID, 999999);
        PlayerInfo[playerid][p_iWepTints][WepTint_GetChoiceIDFromWeapon(iWepID)] = iChoice;
        return 1;
}


Attached Files
File Type: pwn weapontints.pwn (13.0 KB)

[FilterScript] Custom Damage System - Knockout/Shock

$
0
0
Simple Custom Damage/Knockout/Shock system


Hello everybody, I decided to share my filterscript with ya all, didn't release anything since I joined so I decided to spare some change 0.0.
  • Custom Damage for shots
  • Shock system - It sets your drunk level to 8000 for XXX seconds(Depends on the gun), and keeps moving the screen.
  • Message when you get shot
  • Knockout system - When you get pushed by a melee gun, you get knocked on the ground with a special animation for 30 secs, and won't be able to move


Alright, custom damage system is simple and useful aswell, here's the damages for the guns:

Code:

Assault Machines (M4-AK47) | -20 Damage + Shock for ten haundred seconds.
Glock 49. (9mm) | -45 Damage + Shock for ten haundred seconds.
Glock. 47 D-E S. (Deagle) | -40 Damage + Shock for ten haundred seconds.
Sniper Rifle | Kills you or injuries you, depends on your script.
Katana | -60 Damage + Knockout for thirty seconds + Shock for ten haundred seconds.
Baseball Bat | -40 Damage + Knockout for twenty seconds + Shock for fifty seconds.
Baton (Nitestick) | -50 Damage + Knockout for fifty seconds + ten haundred and fifty seconds.
Cane/Knife/Golf Club/Shovel/Pool Cue | -30 Damage + Knockout for five seconds.
[REMOVED]Remington 97. Sawnoff (Sawnoff Shotgun) | -10 Damage/x2-4 + Shock for two haundred seconds.

Armor Damages:
Code:

Sniper Rifle | Removes all the armour.
Katana | -30 Armour Damage.
Cane/Knife/Golf Club/Shovel/Pool Cue | -10 Armour Damage.


And finally here's the code.
Code:


#include <a_samp>
forward Knocked(playerid);
public Knocked(playerid)
{
    SendClientMessage(playerid, -1, "You are able to move now");
    TogglePlayerControllable(playerid, 1);
    return 1;
}
forward ClearShock(playerid);
public ClearShock(playerid)
{
    SetPlayerDrunkLevel(playerid, 0);
    return 1;
}
public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print(" Blank Filterscript by your name here");
    print("--------------------------------------\n");
    return 1;
}
public OnFilterScriptExit()
{
    return 1;
}
main()
{
    print("\n----------------------------------");
    print(" Blank Gamemode by your name here");
    print("----------------------------------\n");
}

#include <a_samp>
forward Knocked(playerid);
public Knocked(playerid)
{
    SendClientMessage(playerid, -1, "You are able to move now");
    TogglePlayerControllable(playerid, 1);
    return 1;
}
forward ClearShock(playerid);
public ClearShock(playerid)
{
    SetPlayerDrunkLevel(playerid, 1);
    return 1;
}
public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print(" Blank Filterscript by your name here");
    print("--------------------------------------\n");
    return 1;
}
public OnFilterScriptExit()
{
    return 1;
}
main()
{
    print("\n----------------------------------");
    print(" Blank Gamemode by your name here");
    print("----------------------------------\n");
}
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid)
{
    new Float:HP;
    new Float:Armor;
    GetPlayerHealth(playerid, HP);
    GetPlayerArmour(playerid, Armor);
    if(Armor < 1)
    {
        if(weaponid == 31 || weaponid == 30)
        {
            SetPlayerHealth(playerid, HP-(amount*3));
            SendClientMessage(playerid, -1, "You were shot by assault rifle and got shocked.");
            SetPlayerDrunkLevel(playerid, 8000);
            SetTimerEx("ClearShock", 100000, false, "i", playerid);
        }
        else if(weaponid == 22)
        {
            SetPlayerHealth(playerid, HP-45);
            SendClientMessage(playerid, -1, "You were shot by glock.49 and got shocked.");
            SetPlayerDrunkLevel(playerid, 8000);
            SetTimerEx("ClearShock", 100000, false, "i", playerid);
        }
        else if(weaponid == 34)
        {
            SetPlayerHealth(playerid, HP-100);
            SendClientMessage(playerid, -1, "You were shot by a sniper rifle and died.");
            SetPlayerDrunkLevel(playerid, 8000);
            SetTimerEx("ClearShock", 100000, false, "i", playerid);
        }
        else if(weaponid == 8)
        {
            SetPlayerHealth(playerid, HP-40);
            SendClientMessage(playerid, -1, "You have been knocked to the floor by a melee gun.");
            ApplyAnimation(playerid,"PED","KO_skid_front",4.1,0,0,0,0,0);
            SetTimerEx("Knocked", 10000, false, "i", playerid);
            TogglePlayerControllable(playerid, 0);
            SetPlayerDrunkLevel(playerid, 8000);
            SetTimerEx("ClearShock", 100000, false, "i", playerid);
        }
        else if(weaponid == 5)
        {
            SetPlayerHealth(playerid, HP-40);
            new hitrand = random(10);
            if(hitrand <= 1)
            {
                SendClientMessage(playerid, -1, " You have been knocked to the floor by a baseball bat.");
                ApplyAnimation(playerid,"PED","KO_skid_front",4.1,0,0,0,0,0);
                SetTimerEx("Knocked", 10000, false, "i", playerid);
                TogglePlayerControllable(playerid, 0);
                SetPlayerDrunkLevel(playerid, 8000);
                SetTimerEx("ClearShock", 100000, false, "i", playerid);
            }
        }
        else if(weaponid == 3)
        {
            SetPlayerHealth(playerid, HP-40);
            new hitrand = random(10);
            if(hitrand <= 1)
            {
                SendClientMessage(playerid, -1, " You have been knocked to the floor by an ASP Baton.");
                ApplyAnimation(playerid,"PED","KO_skid_front",4.1,0,0,0,0,0);
                SetTimerEx("Knocked", 10000, false, "i", playerid);
                TogglePlayerControllable(playerid, 0);
                SetPlayerDrunkLevel(playerid, 8000);
                SetTimerEx("ClearShock", 100000, false, "i", playerid);
            }
        }
        else if(weaponid == 15 || weaponid == 4 || weaponid == 2 || weaponid == 6 || weaponid == 7)
        {
            SetPlayerHealth(playerid, HP-30);
            SendClientMessage(playerid, -1, "You have been knocked to the floor by a melee gun.");
            ApplyAnimation(playerid,"PED","KO_skid_front",4.1,0,0,0,0,0);
            SetTimerEx("Knocked", 10000, false, "i", playerid);
            TogglePlayerControllable(playerid, 0);
            SetPlayerDrunkLevel(playerid, 8000);
            SetTimerEx("ClearShock", 100000, false, "i", playerid);
 
            }
        }
    }
    return 1;
}



This script is to be updated weekly/monthly, new features that i'm planning to add:
  • Headshot system for sniper.
  • Bleeding system.
  • More, just suggest me what to add, please.

Please make sure to leave a rate/comment.

I'd appreciate if someone captured screenshots for me, or wait until I capture few, waiting for my friends to take screenshots with this, I can't capture screenshots alone 0.0

[FilterScript] Iam Asking! if Someone Can Help For Make This FilterScript (CMD)

$
0
0
Hello Mate,

I Got New Idea But I couldn't Make it Please Someone Help me


Its Cmd: /inactiveadmins

Shows The Inactive admins in Server

[FilterScript] Anti Crouch Bug

$
0
0
Code:

#define WEAPON_UNARMED  ( 0 )

enum eCBugPlayerInfo
{
        bool:isCrouched,
        bool:isFiring,
        iCrouchTime,
        iLastFire,
        iLastFiring,
        iLastStrafeFire
};

new CBugPlayerInfo[ MAX_PLAYERS ][ eCBugPlayerInfo ];

OnGameModeInit( )
{
    new iTick = GetTickCount( );

    for ( new i = 0; i < MAX_PLAYERS; i++ )
    {
        CBugPlayerInfo[ i ][ isCrouched      ] = false;
        CBugPlayerInfo[ i ][ iLastFire      ] = iTick;
        CBugPlayerInfo[ i ][ iLastStrafeFire ] = iTick;
    }

    return 1;
}

OnPlayerConnect( playerid )
{
    new iTick = GetTickCount( );

    CBugPlayerInfo[ playerid ][ isCrouched      ] = false;
    CBugPlayerInfo[ playerid ][ isFiring        ] = false;
    CBugPlayerInfo[ playerid ][ iLastFire      ] = iTick;
    CBugPlayerInfo[ playerid ][ iLastFiring    ] = iTick;
    CBugPlayerInfo[ playerid ][ iLastStrafeFire ] = iTick;

    return 1;
}
OnPlayerUpdate( playerid )
{
    new
            iTick = GetTickCount( ),
            iAnimationIndex = GetPlayerAnimationIndex( playerid ),
            iWeapon = GetPlayerWeapon( playerid ),
            iKeys,
            iKeysUD,
            iKeysLR
    ;

    GetPlayerKeys( playerid, iKeys, iKeysUD, iKeysLR );

    if ( ( iKeys & KEY_FIRE ) || ( ( iKeys & KEY_ACTION ) && ( iKeys & KEY_AIM ) ) )
    {
        CBugPlayerInfo[ playerid ][ iLastFire ] = iTick;

        if ( !CBugPlayerInfo[ playerid ][ isFiring ] )
        {
            CBugPlayerInfo[ playerid ][ isFiring ] = true;

            CBugPlayerInfo[ playerid ][ iLastFiring ] = iTick;
        }
    }
    else if ( CBugPlayerInfo[ playerid ][ isFiring ] )
        CBugPlayerInfo[ playerid ][ isFiring ] = false;

    switch ( iAnimationIndex )
    {
        case 1274: // WEAPON_CROUCH
        {
            if ( !CBugPlayerInfo[ playerid ][ isCrouched ] )
            {
                CBugPlayerInfo[ playerid ][ isCrouched ] = true;

                CBugPlayerInfo[ playerid ][ iCrouchTime ] = iTick;
            }

            if ( iWeapon && ( iKeys & KEY_FIRE ) && iTick - CBugPlayerInfo[ playerid ][ iCrouchTime ] > 300 )
                ClearAnimations( playerid );
        }

        case 1160 .. 1163, 1167: // GUNMOVE_L/R/FWD/BWD, GUN_STAND
        {
            if ( ( iKeys & KEY_FIRE ) )
            {
                switch ( iWeapon )
                {
                    case
                        WEAPON_SILENCED,
                        WEAPON_DEAGLE,
                        WEAPON_SHOTGUN,
                        WEAPON_SHOTGSPA,
                        WEAPON_MP5,
                        WEAPON_M4,
                        WEAPON_AK47,
                        WEAPON_RIFLE,
                        WEAPON_SNIPER:
                    {
                        CBugPlayerInfo[ playerid ][ iLastStrafeFire ] = iTick;
                    }
                }
            }
        }

        case
            1231, // RUN_PLAYER
            1223, // RUN_ARMED
            1141, // FIGHTA_M
            478,  // FIGHTB_M
            489,  // FIGHTC_M
            500,  // FIGHTD_M
            759,  // KNIFE_PART
            27,  // BAT_PART
            1554  // SWORD_PART
            :
        {
            switch ( GetWeaponSlot( iWeapon ) )
            {
                case 0, 1, 8, 9, 10, 11, 12:
                {

                }
                default:
                {
                    if ( ( iKeys & KEY_AIM ) && ( iKeys & KEY_ACTION ) ) {
                        ClearAnimations( playerid );
                                                return 2;
                                        }
                    else if ( CBugPlayerInfo[ playerid ][ isFiring ] && iTick - CBugPlayerInfo[ playerid ][ iLastFiring ] > 150 ) {
                        ClearAnimations( playerid );
                                                return 2;
                                        }
                }
            }
        }
    }

    if ( ( iKeys & KEY_CROUCH ) && iTick - CBugPlayerInfo[ playerid ][ iLastStrafeFire ] < 500 )
    {
        ClearAnimations( playerid );

        ApplyAnimation( playerid, "PED", "XPRESSscratch", 0.0, 1, 0, 0, 0, 500 - ( iTick - CBugPlayerInfo[ playerid ][ iLastStrafeFire ] ), 1 );
                return 2;
    }

    if ( CBugPlayerInfo[ playerid ][ isCrouched ] && iAnimationIndex != 1274 ) // WEAPON_CROUCH
        CBugPlayerInfo[ playerid ][ isCrouched ] = false;

    return 1;
}



Put them in your gamemode accordingly.

[FilterScript] Dynamic Food System [SQLite]

$
0
0
Introduction:
Hi, this is a dynamic food system, where you can create one any where and you may remove them. it saves in SQL database. you don't need any additional files. just this filterscript

Features:
- Saving system ( SQLite ).
- Dynamic you may add it any where.
- Choosable actor skin, food machine object, text to attach.
- Easy to edit the food machine object ( with edit object function ).
- Easy to edit script, you may change ( objects, skins, prices, functions, limits ).
- Food menu ( based on textdraw )
- Objects are attached in your hand to look more realistic

Screenshots/ Videos

Video:
Youtube Video

Screenshots:







Downloads:
Pastebin | Solidfiles (.pwn) | Solidfiles (.amx)


Credits:
1. Yashas for improved zcmd
2. Incognito for streamer plugin/include
3. Konstantinos for SQLite tutorial
4. adri1 for textdraw editor
5. Y_less for YSI library

[FilterScript] Hit Market/Bounties

$
0
0





Information

First, find a payphone and write /hitmarket to open the menu. Then you can find some targets to hunt, place hits on people, claim your rewards or check your stats.

Features

* Hits have a lifetime of 7 days to complete, then they'll get removed.
* You can track some stats like how much money you spent on hits or how many times you got killed because of a hit.
* You can place/cancel hits on offline players.
* You can place hits on players that have a hit already, their bounty will increase by the amount you pay.

Credits

BlueG & maddinat0r for MySQL Plugin
Yashas for Improved ZCMD
Cueball for Zones Include

Notes

* I didn't make a payphone management system for this script since it uses default GTA SA payphone coords. If you want more payphones, map the object and add its position to the PhoneData array in {x, y, z} format.
* This script needs a MySQL connection to work.
* Don't forget to edit your MySQL connection information on line 404.
* The .sql file is not included in the download because required tables will get created if they don't exist on initialization.

Downloads

[FilterScript] Hunger Games

$
0
0
Hunger Games v1.0.0

Hello, i will be releasing my Hunger Games.
  • Features:
  • More players can join the Hunger Games.
  • 5 Minutes Timer (you can adjust it).
  • Last man standing = wins (next update i will make it receive reward).
  • If no players did /joingame - the timer will reset to 5 minutes.

Frequently Asked Questions


Q: How to adjust the timer?
A: http://lmgtfy.com/?q=how+much+5+minutes+in+seconds Change the 5 into your minutes you want.
Make sure you get the result and until to 0.

Q: I found a bug, what will i do?
A: Simply comment it down, i will fix it.

Q: Are you making updates of this filterscript?
A: Yes. I will especially prizes.


Download:
Pastebin

Enjoy :D

[FilterScript] Remote controlled models


[FilterScript] DeathMatch Arenas[Map, 3DTextLabel, Actors, Headshot]

$
0
0
DeathMatch Arenas System Version 1.0

Released on 1/17/2017



Introduction:
Hello, how you been guys, today i'll be sharing with you a little DeathMatch DM System, it might help some and might not and might be useful and might not, between it's good for CnR and Freeroam And DM Servers ;),

What is this??
Well it's DM arena system, So there's a little build in Los Santos there's the DM arenas, when someone enter the checkpoint of it, a DIALOG will be showing, with a list of all aviable DM Arenas.. Will be showing in the pictures

How To install it?!
-First Download it, Then Copy the .PWN and .AMX file to your Server Filterscript Folder And Paste Them there.
-then Go to your Server.cfg Open it and Go to " filterscripts " Line and write behind it, hold So it'll be like this:
PHP Code:

filterscript DM 


Bugs:
Clean, no Errors also no Warning(loose indentation)

Includes:

ZCMD - http://forum.sa-mp.com/showthread.php?t=91354


Credits:
Zeex - ZCMD
RyderX - Developer of this Script

Script Commands:
CommandsFunction
/tpit's just for testing it, teleport to see it just, players will not use it.


Gallery/Pictures:













And here is the Full Album: DM - Album


Downloads:

Pastebin | Version 1.0 |

NOTE: well guys, you can edit what you want to edit, and do what u want to do in this filterscript ;), hope you enjoy the new Version :).
I know it's simple, because i spent few minutes making it, and it might help someone :)
And if you got any errors or smth Contact me! :)

BETATESTING:Just to teleport fast to see it, type /tp, just for testing a purpose not all public cmd.

[FilterScript] New hud for Survivors

$
0
0


Download:http://www.4shared.com/rar/Xs3EhcfNba/HUD_By_C4DU.html?

PHP Code:

// PlayerTextDraw developed using Zamaroht's Textdraw Editor 1.0 [R3]

new PlayerText:Textdraw0;
new 
PlayerText:Textdraw1;
new 
PlayerText:Textdraw2;
new 
PlayerText:Textdraw3;
new 
PlayerText:Textdraw4;
new 
PlayerText:Textdraw5;
new 
PlayerText:Textdraw6;
new 
PlayerText:Textdraw7;
new 
PlayerText:Textdraw8;
new 
PlayerText:Textdraw9;
new 
PlayerText:Textdraw10;
new 
PlayerText:Textdraw11;
new 
PlayerText:Textdraw12;
new 
PlayerText:Textdraw13;
new 
PlayerText:Textdraw14;
new 
PlayerText:Textdraw15;
new 
PlayerText:Textdraw16;
new 
PlayerText:Textdraw17;

// In OnPlayerConnect prefferably, we procced to create our textdraws:
Textdraw0 CreatePlayerTextDraw(playerid217.000000332.000000"_");
PlayerTextDrawBackgroundColor(playeridTextdraw0255);
PlayerTextDrawFont(playeridTextdraw01);
PlayerTextDrawLetterSize(playeridTextdraw00.5000000.099999);
PlayerTextDrawColor(playeridTextdraw0, -1);
PlayerTextDrawSetOutline(playeridTextdraw00);
PlayerTextDrawSetProportional(playeridTextdraw01);
PlayerTextDrawSetShadow(playeridTextdraw01);
PlayerTextDrawUseBox(playeridTextdraw01);
PlayerTextDrawBoxColor(playeridTextdraw0255);
PlayerTextDrawTextSize(playeridTextdraw00.0000000.000000);
PlayerTextDrawSetSelectable(playeridTextdraw00);

Textdraw1 CreatePlayerTextDraw(playerid213.000000423.000000"_");
PlayerTextDrawBackgroundColor(playeridTextdraw1255);
PlayerTextDrawFont(playeridTextdraw11);
PlayerTextDrawLetterSize(playeridTextdraw10.5000000.099999);
PlayerTextDrawColor(playeridTextdraw1, -1);
PlayerTextDrawSetOutline(playeridTextdraw10);
PlayerTextDrawSetProportional(playeridTextdraw11);
PlayerTextDrawSetShadow(playeridTextdraw11);
PlayerTextDrawUseBox(playeridTextdraw11);
PlayerTextDrawBoxColor(playeridTextdraw1255);
PlayerTextDrawTextSize(playeridTextdraw10.0000000.000000);
PlayerTextDrawSetSelectable(playeridTextdraw10);

Textdraw2 CreatePlayerTextDraw(playerid217.000000428.000000"_");
PlayerTextDrawBackgroundColor(playeridTextdraw2255);
PlayerTextDrawFont(playeridTextdraw21);
PlayerTextDrawLetterSize(playeridTextdraw20.539999, -11.000005);
PlayerTextDrawColor(playeridTextdraw2, -1);
PlayerTextDrawSetOutline(playeridTextdraw20);
PlayerTextDrawSetProportional(playeridTextdraw21);
PlayerTextDrawSetShadow(playeridTextdraw21);
PlayerTextDrawUseBox(playeridTextdraw21);
PlayerTextDrawBoxColor(playeridTextdraw2255);
PlayerTextDrawTextSize(playeridTextdraw2210.000000, -18.000000);
PlayerTextDrawSetSelectable(playeridTextdraw20);

Textdraw3 CreatePlayerTextDraw(playerid3.000000423.000000"_");
PlayerTextDrawBackgroundColor(playeridTextdraw3255);
PlayerTextDrawFont(playeridTextdraw31);
PlayerTextDrawLetterSize(playeridTextdraw30.500000, -10.100002);
PlayerTextDrawColor(playeridTextdraw3, -1);
PlayerTextDrawSetOutline(playeridTextdraw30);
PlayerTextDrawSetProportional(playeridTextdraw31);
PlayerTextDrawSetShadow(playeridTextdraw31);
PlayerTextDrawUseBox(playeridTextdraw31);
PlayerTextDrawBoxColor(playeridTextdraw3255);
PlayerTextDrawTextSize(playeridTextdraw34.0000000.000000);
PlayerTextDrawSetSelectable(playeridTextdraw30);

Textdraw4 CreatePlayerTextDraw(playerid213.000000423.000000"_");
PlayerTextDrawBackgroundColor(playeridTextdraw4255);
PlayerTextDrawFont(playeridTextdraw41);
PlayerTextDrawLetterSize(playeridTextdraw40.500000, -10.100002);
PlayerTextDrawColor(playeridTextdraw4, -1);
PlayerTextDrawSetOutline(playeridTextdraw40);
PlayerTextDrawSetProportional(playeridTextdraw41);
PlayerTextDrawSetShadow(playeridTextdraw41);
PlayerTextDrawUseBox(playeridTextdraw41);
PlayerTextDrawBoxColor(playeridTextdraw4, -872415198);
PlayerTextDrawTextSize(playeridTextdraw44.0000000.000000);
PlayerTextDrawSetSelectable(playeridTextdraw40);

Textdraw5 CreatePlayerTextDraw(playerid213.000000423.000000"_");
PlayerTextDrawBackgroundColor(playeridTextdraw5255);
PlayerTextDrawFont(playeridTextdraw51);
PlayerTextDrawLetterSize(playeridTextdraw50.500000, -8.299995);
PlayerTextDrawColor(playeridTextdraw5, -1);
PlayerTextDrawSetOutline(playeridTextdraw50);
PlayerTextDrawSetProportional(playeridTextdraw51);
PlayerTextDrawSetShadow(playeridTextdraw51);
PlayerTextDrawUseBox(playeridTextdraw51);
PlayerTextDrawBoxColor(playeridTextdraw5, -1728052993);
PlayerTextDrawTextSize(playeridTextdraw5141.000000, -14.000000);
PlayerTextDrawSetSelectable(playeridTextdraw50);

Textdraw6 CreatePlayerTextDraw(playerid141.000000428.000000"_");
PlayerTextDrawBackgroundColor(playeridTextdraw6255);
PlayerTextDrawFont(playeridTextdraw61);
PlayerTextDrawLetterSize(playeridTextdraw60.539999, -11.000005);
PlayerTextDrawColor(playeridTextdraw6, -1);
PlayerTextDrawSetOutline(playeridTextdraw60);
PlayerTextDrawSetProportional(playeridTextdraw61);
PlayerTextDrawSetShadow(playeridTextdraw61);
PlayerTextDrawUseBox(playeridTextdraw61);
PlayerTextDrawBoxColor(playeridTextdraw6255);
PlayerTextDrawTextSize(playeridTextdraw6142.000000, -18.000000);
PlayerTextDrawSetSelectable(playeridTextdraw60);

Textdraw7 CreatePlayerTextDraw(playerid141.000000350.000000"13");
PlayerTextDrawBackgroundColor(playeridTextdraw70);
PlayerTextDrawFont(playeridTextdraw75);
PlayerTextDrawLetterSize(playeridTextdraw70.4500000.299999);
PlayerTextDrawColor(playeridTextdraw7, -1);
PlayerTextDrawSetOutline(playeridTextdraw70);
PlayerTextDrawSetProportional(playeridTextdraw71);
PlayerTextDrawSetShadow(playeridTextdraw71);
PlayerTextDrawUseBox(playeridTextdraw71);
PlayerTextDrawBoxColor(playeridTextdraw7255);
PlayerTextDrawTextSize(playeridTextdraw730.00000030.000000);
PlayerTextDrawSetPreviewModel(playeridTextdraw72768);
PlayerTextDrawSetPreviewRot(playeridTextdraw7, -16.0000000.000000, -55.0000001.000000);
PlayerTextDrawSetSelectable(playeridTextdraw70);

Textdraw8 CreatePlayerTextDraw(playerid139.000000385.000000"13");
PlayerTextDrawBackgroundColor(playeridTextdraw80);
PlayerTextDrawFont(playeridTextdraw85);
PlayerTextDrawLetterSize(playeridTextdraw80.4500000.299999);
PlayerTextDrawColor(playeridTextdraw8, -1);
PlayerTextDrawSetOutline(playeridTextdraw80);
PlayerTextDrawSetProportional(playeridTextdraw81);
PlayerTextDrawSetShadow(playeridTextdraw81);
PlayerTextDrawUseBox(playeridTextdraw81);
PlayerTextDrawBoxColor(playeridTextdraw8255);
PlayerTextDrawTextSize(playeridTextdraw830.00000030.000000);
PlayerTextDrawSetPreviewModel(playeridTextdraw819822);
PlayerTextDrawSetPreviewRot(playeridTextdraw8, -16.0000000.000000, -55.0000001.000000);
PlayerTextDrawSetSelectable(playeridTextdraw80);

Textdraw9 CreatePlayerTextDraw(playerid144.000000333.000000"UserName");
PlayerTextDrawBackgroundColor(playeridTextdraw9255);
PlayerTextDrawFont(playeridTextdraw91);
PlayerTextDrawLetterSize(playeridTextdraw90.4100001.800000);
PlayerTextDrawColor(playeridTextdraw9, -1);
PlayerTextDrawSetOutline(playeridTextdraw90);
PlayerTextDrawSetProportional(playeridTextdraw91);
PlayerTextDrawSetShadow(playeridTextdraw91);
PlayerTextDrawSetSelectable(playeridTextdraw90);

Textdraw10 CreatePlayerTextDraw(playerid217.000000352.000000"_");
PlayerTextDrawBackgroundColor(playeridTextdraw10255);
PlayerTextDrawFont(playeridTextdraw101);
PlayerTextDrawLetterSize(playeridTextdraw100.5000000.099999);
PlayerTextDrawColor(playeridTextdraw10, -1);
PlayerTextDrawSetOutline(playeridTextdraw100);
PlayerTextDrawSetProportional(playeridTextdraw101);
PlayerTextDrawSetShadow(playeridTextdraw101);
PlayerTextDrawUseBox(playeridTextdraw101);
PlayerTextDrawBoxColor(playeridTextdraw10255);
PlayerTextDrawTextSize(playeridTextdraw10138.0000000.000000);
PlayerTextDrawSetSelectable(playeridTextdraw100);

Textdraw11 CreatePlayerTextDraw(playerid213.000000336.000000"_");
PlayerTextDrawBackgroundColor(playeridTextdraw11255);
PlayerTextDrawFont(playeridTextdraw111);
PlayerTextDrawLetterSize(playeridTextdraw110.4200001.400000);
PlayerTextDrawColor(playeridTextdraw11, -1);
PlayerTextDrawSetOutline(playeridTextdraw110);
PlayerTextDrawSetProportional(playeridTextdraw111);
PlayerTextDrawSetShadow(playeridTextdraw111);
PlayerTextDrawUseBox(playeridTextdraw111);
PlayerTextDrawBoxColor(playeridTextdraw11, -222);
PlayerTextDrawTextSize(playeridTextdraw11142.0000000.000000);
PlayerTextDrawSetSelectable(playeridTextdraw110);

Textdraw12 CreatePlayerTextDraw(playerid209.000000365.000000"_");
PlayerTextDrawBackgroundColor(playeridTextdraw12255);
PlayerTextDrawFont(playeridTextdraw121);
PlayerTextDrawLetterSize(playeridTextdraw120.5000000.299999);
PlayerTextDrawColor(playeridTextdraw12, -1);
PlayerTextDrawSetOutline(playeridTextdraw120);
PlayerTextDrawSetProportional(playeridTextdraw121);
PlayerTextDrawSetShadow(playeridTextdraw121);
PlayerTextDrawUseBox(playeridTextdraw121);
PlayerTextDrawBoxColor(playeridTextdraw12255);
PlayerTextDrawTextSize(playeridTextdraw12168.000000, -3.000000);
PlayerTextDrawSetSelectable(playeridTextdraw120);

Textdraw13 CreatePlayerTextDraw(playerid209.000000401.000000"_");
PlayerTextDrawBackgroundColor(playeridTextdraw13255);
PlayerTextDrawFont(playeridTextdraw131);
PlayerTextDrawLetterSize(playeridTextdraw130.5000000.299999);
PlayerTextDrawColor(playeridTextdraw13, -1);
PlayerTextDrawSetOutline(playeridTextdraw130);
PlayerTextDrawSetProportional(playeridTextdraw131);
PlayerTextDrawSetShadow(playeridTextdraw131);
PlayerTextDrawUseBox(playeridTextdraw131);
PlayerTextDrawBoxColor(playeridTextdraw13255);
PlayerTextDrawTextSize(playeridTextdraw13168.000000, -3.000000);
PlayerTextDrawSetSelectable(playeridTextdraw130);

Textdraw14 CreatePlayerTextDraw(playerid208.000000364.000000"_");
PlayerTextDrawBackgroundColor(playeridTextdraw14255);
PlayerTextDrawFont(playeridTextdraw141);
PlayerTextDrawLetterSize(playeridTextdraw140.5000000.299999);
PlayerTextDrawColor(playeridTextdraw14, -1);
PlayerTextDrawSetOutline(playeridTextdraw140);
PlayerTextDrawSetProportional(playeridTextdraw141);
PlayerTextDrawSetShadow(playeridTextdraw141);
PlayerTextDrawUseBox(playeridTextdraw141);
PlayerTextDrawBoxColor(playeridTextdraw1410027263);
PlayerTextDrawTextSize(playeridTextdraw14168.000000, -3.000000);
PlayerTextDrawSetSelectable(playeridTextdraw140);

Textdraw15 CreatePlayerTextDraw(playerid208.000000400.000000"_");
PlayerTextDrawBackgroundColor(playeridTextdraw15255);
PlayerTextDrawFont(playeridTextdraw151);
PlayerTextDrawLetterSize(playeridTextdraw150.5000000.299999);
PlayerTextDrawColor(playeridTextdraw15, -1);
PlayerTextDrawSetOutline(playeridTextdraw150);
PlayerTextDrawSetProportional(playeridTextdraw151);
PlayerTextDrawSetShadow(playeridTextdraw151);
PlayerTextDrawUseBox(playeridTextdraw151);
PlayerTextDrawBoxColor(playeridTextdraw1513434879);
PlayerTextDrawTextSize(playeridTextdraw15168.000000, -3.000000);
PlayerTextDrawSetSelectable(playeridTextdraw150);

Textdraw16 CreatePlayerTextDraw(playerid6.000000336.000000"GPS");
PlayerTextDrawBackgroundColor(playeridTextdraw16255);
PlayerTextDrawFont(playeridTextdraw162);
PlayerTextDrawLetterSize(playeridTextdraw160.5299991.900000);
PlayerTextDrawColor(playeridTextdraw16, -1);
PlayerTextDrawSetOutline(playeridTextdraw160);
PlayerTextDrawSetProportional(playeridTextdraw161);
PlayerTextDrawSetShadow(playeridTextdraw161);
PlayerTextDrawSetSelectable(playeridTextdraw160);

Textdraw17 CreatePlayerTextDraw(playerid8.000000409.000000"By C4DU");
PlayerTextDrawBackgroundColor(playeridTextdraw17255);
PlayerTextDrawFont(playeridTextdraw172);
PlayerTextDrawLetterSize(playeridTextdraw170.1600001.200000);
PlayerTextDrawColor(playeridTextdraw17, -1);
PlayerTextDrawSetOutline(playeridTextdraw170);
PlayerTextDrawSetProportional(playeridTextdraw171);
PlayerTextDrawSetShadow(playeridTextdraw171);
PlayerTextDrawSetSelectable(playeridTextdraw170);

// You can now use PlayerTextDrawShow, PlayerTextDrawHide and
// PlayerTextDrawDestroy functions to show, hide, and destroy the textdraw. 

[FilterScript] New Patriot

[FilterScript] Parking Meters [Good for RP]

$
0
0
It took me about 10-15 minutes to work on this script, The reason why I made this script; I don't know, perhaps I am bored or something? Well anyways, I can't use this script on anything since I am not running a roleplay server. The idea of this script came from the roleplay server I am playing on, they had this system 2 years ago but they removed it.

Basically, You create a parking meter (The object's rotation Z always depends on where you are facing when you created the parking meter) - After created the parking meter you may now use it with /insertparkmeter, You can also erase the parking meter without having a problem. That is all about it, there are no other complex stuffs beside that (however this script uses SQLite)

Commands
* /createparkmeter = Inserts a new parking meter (Automatically assigns the ID, starting ID is #0 = The rotation Z of the object always depends on where your character is facing to)

* /eraseparkmeter [ID] = Erases the parking meter ID inserted in the parameter

* /insertparkmeter [minutes] = Sets a new parking minute (CASH_PER_MINUTE per minutes, default CASH_PER_MINUTE is $10)

Notes

You might wanna change this

PHP Code:

#define             CASH_PER_MINUTES            10        // $10 per minutes 

If you don't want to have $10 as the default cash for parking meters, per minute.

Screenshots




Required Plugins/Include

sscanf2 - Originally by Y_Less
streamer - by Incognito
zcmd - by Zeex

Download

Pastebin

[FilterScript] New Helicopter ( Maverick)

Viewing all 595 articles
Browse latest View live