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

[FilterScript] Simple basic Today's message Textdraw


[Include] Menu Textdraws and Filterscript

[FilterScript] Dynamic Org Creation

[FilterScript] Easter Quest

$
0
0
Easter System SA:MP
:clucker:

Hello, my FS include's:
  1. 15 eggs to paint in Los Santos
  2. Special location for gift [/getgift command]
  3. An shop to buy with E(aster)-Points.

Commands:
[/vopsea] - to start the Quest, you need to have a paint tube (GRAFFITI), if you tast this command you can buy it for
$50 and you can start your quest with the command: [/startquest]
[/startquest] - up
[/eshop] - the special shop with whom you buy some special things (SEE VIDEO BELOW) using E(aster)-Points
**foreach egg painted, you get a random E-Points to 20-30**
[/getgift] - you can get a special prize (you can set the time between getgift's), its a change of 80% to get an
ammount money between $5.000 and $25.000 with a random of $500, and the rest of 20% you can
get random E-Points between 50-200.
[/quest] - you can see your progres with the Quest (how many eggs you need to paint)
/* ALL OF THIS YOU CAN EDITING, DOWN IS THE PASTE BINK LINK:
LINK: https://pastebin.com/UuEs19K1 */


P.S: sorry for my english!
(!)(!)P.S: This FS is created without SQL, is not saving when you exit server!!
[/SIZE]

[FilterScript] GPS System

$
0
0
GPS System by antixgaming

Hello. This is a simple filterscript that I created. This is my first thread. This GPS system can be activated by
typing a command. There is only one command /gps

Please do not remove credits!

This is code:
https://pastebin.com/sb8q8ULp

You can edit any locations and add a locations.
You can edit anything, but you mustn't edit credits!

Version 1.0
- Added locations
- Simple and easy
- No lagg
- No bugs (report if you see any)
- Simple using checkpoints and dialogs

[FilterScript] I Need Supply Drops

$
0
0
I need Filterscript Supply Drops, but do not use Mysql or use Include Dini
Do you have?

[FilterScript] Advanced Spectating Filterscript

$
0
0
Advanced Spectating Filterscript

I was free, and i love making GUI/designs, i came up with this! Its very nice in my opinion! All spectating variables like virtual world, interior changes, death and spawn is taken care, you just have to /spec or /specoff!

There are two buttons in the design to change players, the big arrows in the picture are the buttons.
The vehicle info bar only appears when player is in a vehicle and spectate mode is set to vehicle automatically. Username will display the current player being spectated with his color.



Download
https://github.com/Agneese-Saini/SA-...s/spectate.pwn

Currently not fully tested, test it with your friends if you plan to use it and let me know of any bugs if any.

[Map] Private Island


[FilterScript] Dynamic Gate System

$
0
0
Introduction
This gate system is made to create gates easily and faster.

Features
Gate speed:So you can change gate speed any time.
Gate password:You can put password for your gate

Auto open or Auto close:So gate can open when you get near it, and close when you go away from it.



How to download.
1: Download the script from bottom.
2:Extract the file to filterscripts.
3:make sure that its .pwn and change the name if you want.
3:type "gate2"(name) in server.cfg > filterscripts

4:go scriptfiles.
5:Create a folder called:Gates
Commands
1:creategate:To create a new gate.
2:gate:Open or close a gate.
3:removegate:delete a gate.
4:editgate:Change gate settings. includes speed.etc..


What do you need?
Download:
1: sscanf2
2:zcmd
3:dini
Download
https://pastebin.com/mrN1k4ik
Good Luck

[FilterScript] [sG]Admin Script

$
0
0
Introduction

Hello, i made an simple filterscript of admin system.i hope you like it.

About It?
*In this your stats will automatically saves and also saves when player disconnects from the server
*You can edit its timing if you want.
*You can edit, it but dont remove credits and dont release before asking.
*I hope you enjoy and like it
*More Updates Soon


Funcs?
*SetPlayerAdmin(playerid, level);
*SetPlayerKills(playerid, kills);
*SetPlayerDeaths(playerid, deaths);
*GivePlayerDeaths(playerid, deaths);
*GivePlayerKills(playerid,kills);
*More Soon


What do you need?

Download:
1: sscanf2
2:zcmd
3:dini
4.dutils
5.utils


Download
Pastebin

[FilterScript] Killing Spree System

$
0
0
Hello Guys!
Today its my first release, Im releasing Filterscript for first time actually Im new in SA-MP Community so it took me time to learn scripting, well its here
How it works:
If a player kills other player so he will get 1 kill and If he kills a player 5 times he will get killing spree of 5 kills with reward.
Features:
-Reward for every killing streak.
-
Currently I have added maximum 50 killing spree but you can increase easily in script.
Screenshots:


[FilterScript] Dynamic Gate System V.2 by OsamaKurdi

$
0
0
Introduction
This is gate system version 2,
version 1 is deleted so don't try to find it.
This gate system is really developed than version 1.


Features
1)Auto(OPEN|| CLOSE) gate.
2)Gate's speed.
3)Password for gate.
4)Auto open by Horn.
5)Edit open and close positions.
6)Select gate to edit in editgate command

Commands
1_ /creategate with parameters (to create a gate)
2_ /removegate here you can select on game which gate you want to remove.
3_ /gate to open or close gate.
4_ /editgate <speed || password || autogate || open || close> to edit gate settings.
5_ /gotogate to teleport a choice gate.
6_ /nearestgate

How to download
1-download the code from pastebin.
2-paste code to filterscripts.
3-make sure that extension is .pwn not .txt .
4-run code and compile it.
5-open scriptfiles and create a new Folder called Gates G is capital letter
6-open server.cfg type at filterscripts "gate-v2".
7-now run server and game start by typing /creategate

What do you need
1-zcmd
2-dini
3-sscanf2

Credits for all creators of those includes


Download
https://pastebin.com/3giBhs77


The end.

[FilterScript] House System * C-HOUSE

$
0
0
• Introduction

I created this Filterscript especially here for the SAMP forum.
To use the members and to encourage the use of SQLite rescue, and the Pawn.CMD plugin.
Among other reasons. Remembering that the code is released for use and editing while keeping the creator's credits.

There is not much to talk about FS.
It is like any other system of houses,
but updated optimized and using current releases.



• Commands

Administrator

/createhouse
/deletehouse
/edithouse
/gohouse

Players

/buyhouse
/sellhouse
/lock


• • Imagens

Images are in Portuguese language. But the script is in English.
Album



• • Script


PHP Code:

/*



    FilterScript House System C-HOUSE.
    Create by Cleyson Stein - StNN

    Do not withdraw credits.
    All rights reserved. 05/02/2018 *

    

*/


#include <a_samp>
#include <pawn.cmd>
#include <sscanf2>
#include <streamer>

enum
{
    
MAX_HOUSE 100// Max house

    
RED 0xFF000FFF,
    
CINZA 0xCECECEFF,
    
ORANGE 0xF97804FF,
};

enum pInfo
{
    
Name[24],
    
HasHouse,
    
EnterHouse,
};
new 
p[MAX_PLAYERS][pInfo];

enum cInfo
{
    
cOwner[24],
    
Float:cX,
    
Float:cY,
    
Float:cZ,
    
cOccupied,
    
cLocked,
    
cIcon,
    
cPickup,
    
cInt,
    
Text3D:cText,
    
cPrice
};
new 
c[MAX_HOUSE][cInfo], TotalHouse;


// interior houses
enum inter
{
    
Float:iX,
    
Float:iY,
    
Float:iZ,
    
Float:iA,
    
iID
}

new 
interior[][inter] =
{
    {
2196.84, -1204.361049.0294.00106},
    {
2259.38, -1135.891050.64275.399210},
    {
2282.99, -1140.281050.89358.466011},
    {
2233.69, -1115.261050.88358.46605},
    {
2218.39, -1076.211050.4895.26351},
    {
2496.00, -1692.081014.74177.81593},
    {
2365.25, -1135.581050.88359.03678},
    {
2317.77, -1026.761050.21359.03679},
    {
2324.41, -1149.541050.71359.036712},
    {
1260.6603, -785.40051091.9063270.98915},
    {
140.281365.921083.859.69015}
};

// sqlite
new DB:Database;



public 
OnFilterScriptInit()
{
    print(
"\n-------------------------------------");
    print(
"   System C-HOUSE successfully loaded.");
    print(
"    Created by Cleyson Stein - StNN.");
    print(
"    All rights reserved - 02/05/2018");
    print(
"-------------------------------------\n");

    
ConnectDB(); 
    
LoadHouse(); 
    
EnableStuntBonusForAll(0); 
    
DisableInteriorEnterExits();
    return 
1;    
}

public 
OnFilterScriptExit()
{
    
db_close(Database);

    for(new 
0MAX_HOUSE; ++i)
    {
        
DestroyDynamicPickup(c[i][cPickup]);
        
DestroyDynamicMapIcon(c[i][cIcon]);
        
DestroyDynamic3DTextLabel(c[i][cText]);
    }    
    return 
1;
}

public 
OnPlayerConnect(playerid)
{
    
GetPlayerName(playeridp[playerid][Name], 24);
    
LoadPlayer(playerid);
    return 
1;
}

public 
OnPlayerDisconnect(playeridreason)
{
    if(
p[playerid][HasHouse] > 0SavePlayer(playerid);
    return 
1;
}





// ============= COMMANDS ADMIN
CMD:ahouse(playerid)
{
    if(!
IsPlayerAdmin(playerid)) return SendClientMessage(playeridRED"Command restricted to administrators.");

    new 
String_COMANDOS[220]; //
    
format(String_COMANDOSsizeof String_COMANDOS"");
    
    
strcat(String_COMANDOS"{009900}ADMIN C-HOUSE\n\n"); 
    
strcat(String_COMANDOS"{CECECE}/createhouse {FFFFFF}- Create a house.\n");
    
strcat(String_COMANDOS"{CECECE}/edithouse {FFFFFF}- Edit  house.\n");
    
strcat(String_COMANDOS"{CECECE}/deletehouse {FFFFFF}- Delete house.\n");
    
strcat(String_COMANDOS"{CECECE}/gohouse {FFFFFF}- Go to house.\n");

    
ShowPlayerDialog(playerid9545DIALOG_STYLE_MSGBOX"Commands Admin C-HOUSE"String_COMANDOS"Ok""");
    return 
1;
}

CMD:createhouse(playeridparams[])
{
    if(!
IsPlayerAdmin(playerid)) return SendClientMessage(playeridRED"Command restricted to administrators.");
    if(
sscanf(params"ii"params[0], params[1])) return SendClientMessage(playeridCINZA"Use /createhouse [price] [int 0a10]");

    
Create_House(playeridTotalHouse+1params[0], params[1]);
    return 
1;
}

CMD:gohouse(playeridparams[])
{
    if(!
IsPlayerAdmin(playerid)) return SendClientMessage(playeridRED"Command restricted to administrators.");
    if(
sscanf(params"i"params[0])) return SendClientMessage(playeridCINZA"Use /gohouse [id]");

    
Go_House(playeridparams[0]);
    return 
1;
}

CMD:edithouse(playeridparams[])
{
    if(!
IsPlayerAdmin(playerid)) return SendClientMessage(playeridRED"Command restricted to administrators.");
    if(
sscanf(params"iii"params[0], params[1], params[2])) return SendClientMessage(playeridCINZA"Use /edithouse [id] [price] [int 0a10]");

    
Edit_House(playeridparams[0], params[1], params[2]);
    return 
1;
}

CMD:deletehouse(playeridparams[])
{
    if(!
IsPlayerAdmin(playerid)) return SendClientMessage(playeridRED"Command restricted to administrators.");
    if(
sscanf(params"i"params[0])) return SendClientMessage(playeridCINZA"Use /deletehouse [id]");

    
Delete_House(playeridparams[0]);
    return 
1;
}






// ================= COMMANDS PLAYERS

/*CMD:money(playerid)
{
    GivePlayerMoney(playerid, 500000);
    return 1;
}
*/

CMD:buyhouse(playerid)
{
    for(new 
0MAX_HOUSEi++)
    {
        if(
IsPlayerInRangeOfPoint(playerid1c[i][cX], c[i][cY], c[i][cZ]))
        {
            if(
p[playerid][HasHouse] > 0) return SendClientMessage(playeridRED"You already own a house..");
            if(
c[i][cOccupied] == 1) return SendClientMessage(playeridRED"This house already owns.");
            if(
GetPlayerMoney(playerid) < c[i][cPrice]) return SendClientMessage(playeridRED"Insufficient moneye.");

            
format(c[i][cOwner], 24p[playerid][Name]);
            
c[i][cOccupied] = 1;
            
p[playerid][HasHouse] = i;
            
SendClientMessage(playeridORANGE"House successfully acquired.");
            
GivePlayerMoney(playerid, -c[i][cPrice]);

            
DestroyDynamicPickup(c[i][cPickup]);
            
DestroyDynamicMapIcon(c[i][cIcon]);
            
DestroyDynamic3DTextLabel(c[i][cText]);

            new 
texto[200];
            
c[i][cIcon] = CreateDynamicMapIcon(c[i][cX], c[i][cY], c[i][cZ], 32, -1);
            
c[i][cPickup] = CreateDynamicPickup(1952221c[i][cX], c[i][cY], c[i][cZ]);//1272
            
            
format(textosizeof(texto), "{B22222}HOUSE ID: {FFFFFF}%d\n{CD5C5C}Owner: {FFFFFF}%s\n{CD5C5C}Price: {FFFFFF}$ %d{CD5C5C}\n/helphouse"ic[i][cOwner], c[i][cPrice]);
            
c[i][cText] = CreateDynamic3DTextLabel(texto0xFFFFFFAAc[i][cX], c[i][cY], c[i][cZ]+120);

            new 
Query[80];
            
format(Querysizeof(Query), "UPDATE HOUSES SET OWNER ='%s', OCCUPIED = 1 WHERE ID =%d"c[i][cOwner], i);
            
db_query(DatabaseQuery);
            break;
        }
    }
    return 
1;
}

CMD:sellhouse(playerid)
{
    for(new 
0MAX_HOUSEi++)
    {
        if(
IsPlayerInRangeOfPoint(playerid1c[i][cX], c[i][cY], c[i][cZ]))
        {
            if(
p[playerid][HasHouse] == 0) return SendClientMessage(playeridRED"You do not own a house.");
            if(
c[i][cOccupied] == 0) return SendClientMessage(playeridRED"This house does not have an owner.");
            if(
p[playerid][HasHouse] == i)
            {
                
SendClientMessage(playeridORANGE"House sold successfully.");
                
GivePlayerMoney(playeridc[i][cPrice]/2);
                
format(c[i][cOwner], 24"None");
                
c[i][cOccupied] = 0;
                
p[playerid][HasHouse] = 0;

                
DestroyDynamicPickup(c[i][cPickup]);
                
DestroyDynamicMapIcon(c[i][cIcon]);
                
DestroyDynamic3DTextLabel(c[i][cText]);

                new 
texto[200];
                
c[i][cIcon] = CreateDynamicMapIcon(c[i][cX], c[i][cY], c[i][cZ], 31, -1);
                
c[i][cPickup] = CreateDynamicPickup(127321c[i][cX], c[i][cY], c[i][cZ]);

                
format(textosizeof(texto), "{2E8B57}HOUSE ID: {FFFFFF}%d\n{3CB371}Owner: {FFFFFF}%s\n{3CB371}Price: {FFFFFF}$ %d\n{3CB371}Press 'F' to enter\n/helphouse"ic[i][cOwner], c[i][cPrice]);
                
c[i][cText] = CreateDynamic3DTextLabel(texto0xFFFFFFAAc[i][cX], c[i][cY], c[i][cZ]+120);

                new 
Query[80];
                
format(Querysizeof(Query), "UPDATE HOUSES SET OWNER ='%s', OCCUPIED = 0 WHERE ID =%d"c[i][cOwner], i);
                
db_query(DatabaseQuery);
                break;

                } else {

                
SendClientMessage(playeridRED"This house is not yours.");
                return 
1;
               }
        }
    }
    return 
1;
}

CMD:lock(playerid)
{
    for(new 
0MAX_HOUSEi++)
    {
        if(
IsPlayerInRangeOfPoint(playerid1c[i][cX], c[i][cY], c[i][cZ]))
        {
            if(
p[playerid][HasHouse] == 0) return SendClientMessage(playeridRED"You do not own a house.");
            if(
c[i][cOccupied] == 0) return SendClientMessage(playeridRED"This house does not have an owner.");
            if(
p[playerid][HasHouse] == i)
            {
                new 
Query[80];
                if(
c[i][cLocked] == 0)
                {
                    
SendClientMessage(playeridORANGE"Locked house.");
                    
c[i][cLocked] = 1;
                    
                    
format(Querysizeof(Query), "UPDATE HOUSES SET LOCKED = 1 WHERE ID =%d"i);
                    
db_query(DatabaseQuery);
                    break;
                    
                    } else {
                    
                    
SendClientMessage(playeridORANGE"Unlocked house.");
                    
c[i][cLocked] = 0;
                    
                    
format(Querysizeof(Query), "UPDATE HOUSES SET LOCKED = 0 WHERE ID =%d"i);
                    
db_query(DatabaseQuery);
                    break;
                }
                } else {

                
SendClientMessage(playeridRED"This house is not yours.");
                return 
1;
               }
        }
    }
    return 
1;
}

CMD:helphouse(playerid)
{
    
ShowPlayerDialog(playerid9595DIALOG_STYLE_MSGBOX"Help C-House","{009900}HOUSES\n\n{CECECE}/buyhouse {FFFFFF}- Buy a house.\n{CECECE}/sellhouse {FFFFFF}- Sell ​​your house.\n{CECECE}/lock {FFFFFF}- lock | unlock house.\n""Ok""");
    return 
1;
}






public 
OnPlayerKeyStateChange(playeridnewkeysoldkeys)
{
    if(
newkeys == KEY_SECONDARY_ATTACK// KEY F
    
{
        for(new 
0MAX_HOUSEx++)
        {
            if(
IsPlayerInRangeOfPoint(playerid1c[x][cX], c[x][cY], c[x][cZ]))
            {
                if(
c[x][cOccupied] == 0)
                {
                    
SetPlayerPos(playeridinterior[c[x][cInt]][iX], interior[c[x][cInt]][iY], interior[c[x][cInt]][iZ]);
                    
SetPlayerFacingAngle(playeridinterior[c[x][cInt]][iA]);
                    
SetPlayerInterior(playeridinterior[c[x][cInt]][iID]);
                    
p[playerid][EnterHouse] = x;
                    
                    
SendClientMessage(playeridORANGE"House for sale! To buy use /buyhouse in the pickup from outside. Use 'N' to exit.");
                    break;
                    
                }  

                if(
c[x][cOccupied] == 1)
                {
                    if(
c[x][cLocked] == && p[playerid][HasHouse] != x) return SendClientMessage(playeridRED"Locked house.");
                    
                    if(
p[playerid][HasHouse] == x)
                    {
                        
SetPlayerPos(playeridinterior[c[x][cInt]][iX], interior[c[x][cInt]][iY], interior[c[x][cInt]][iZ]);
                        
SetPlayerFacingAngle(playeridinterior[c[x][cInt]][iA]);
                        
SetPlayerInterior(playeridinterior[c[x][cInt]][iID]);
                        
p[playerid][EnterHouse] = x;
                        
                        
SendClientMessage(playeridORANGE"Welcome to your home. Use 'N' to exit.");
                        break;
                        
                        } else {

                        
SendClientMessage(playeridRED"This house is not yours.");
                        return 
1;
                    }
                }
            }
        }
    }

    if(
newkeys == 131072// KEY N
    
{
        if(
p[playerid][EnterHouse] > 0)
        {
            
SetPlayerPos(playeridc[p[playerid][EnterHouse]][cX], c[p[playerid][EnterHouse]][cY], c[p[playerid][EnterHouse]][cZ]);
            
SetPlayerInterior(playerid0);
            
p[playerid][EnterHouse] = 0;
        }
    }
    return 
1;
}






// ============== DATA
ConnectDB()
{
    if((
Database db_open("C-House.db")) == DB:0)
    {
        
SendRconCommand("exit");
        print(
"Failed to connect to SQlite DataBase"); // DEBUG
        
        
} else {
        
        print(
"Successfully Connected to DataBase SQlite."); // DEBUG
    
}
    
//criar a db esta em db.txt

    
new Query[280];
    
format(Querysizeof(Query), "CREATE TABLE IF NOT EXISTS HOUSES(ID INTEGER PRIMARY KEY AUTOINCREMENT,\
    OWNER TEXT DEFAULT '',\
    X FLOAT DEFAULT 0.0,\
    Y FLOAT DEFAULT 0.0,\
    Z FLOAT DEFAULT 0.0,\
    INTERIOR INTEGER DEFAULT 0,\
    LOCKED INTEGER DEFAULT 0,\
    OCCUPIED INTEGER DEFAULT 0,\
    PRICE INTEGER DEFAULT 0)"
);    
    
db_query(DatabaseQuery);

    
format(Querysizeof(Query), "CREATE TABLE IF NOT EXISTS OWNERS(ID INTEGER PRIMARY KEY AUTOINCREMENT, NOME TEXT DEFAULT '', CASAID INTEGER DEFAULT 0)");    
    
db_query(DatabaseQuery);

    return 
1;
}

LoadPlayer(playerid)
{
    new 
DBResult:ResultQuery[65];
    
format(Querysizeof(Query), "SELECT * FROM OWNERS WHERE NOME = '%s'"p[playerid][Name]);
    
Result db_query(DatabaseQuery);

    if(
db_num_rows(Result))
    {
        
p[playerid][HasHouse] = db_get_field_assoc_int(Result"CASAID");

        } else {

        new 
Query2[75];
        
format(Query2sizeof(Query2), "INSERT INTO OWNERS (NOME, CASAID) VALUES ('%s', 0)"p[playerid][Name]);
        
db_query(DatabaseQuery2);

        
p[playerid][HasHouse] = 0;
    }
    
db_free_result(Result);
    return 
1;
}

SavePlayer(playerid)
{
    new 
Query[75];
    
format(Querysizeof(Query), "UPDATE OWNERS SET CASAID =%d WHERE NOME ='%s'"p[playerid][HasHouse], p[playerid][Name]);
    
db_query(DatabaseQuery); 
    return 
1;
}




// ============== INIT
LoadHouse()
{
    new 
DBResult:ResultQuery[50];
    for(new 
0MAX_HOUSEi++)
    {
        
format(Querysizeof(Query), "SELECT * FROM HOUSES WHERE ID = %d"i);
        
Result db_query(DatabaseQuery);

        if(
db_num_rows(Result))
        {
            
db_get_field_assoc(Result"OWNER"c[i][cOwner], 24);

            
c[i][cX] = db_get_field_assoc_float(Result"X");
            
c[i][cY] = db_get_field_assoc_float(Result"Y");
            
c[i][cZ] = db_get_field_assoc_float(Result"Z");

            
c[i][cOccupied] = db_get_field_assoc_int(Result"OCCUPIED");
            
c[i][cPrice] = db_get_field_assoc_int(Result"PRICE");
            
c[i][cInt] = db_get_field_assoc_int(Result"INTERIOR");
            
c[i][cLocked] = db_get_field_assoc_int(Result"LOCKED");
            
TotalHouse ++;

            
CreateHouse(i);
        }
        
db_free_result(Result);
    }

    
printf("\nHouse loaded: %d"TotalHouse);
    return 
1;
}

CreateHouse(i)
{
    new 
texto[200];
    if(
c[i][cOccupied] == 0)
    {
        
c[i][cIcon] = CreateDynamicMapIcon(c[i][cX], c[i][cY], c[i][cZ], 31, -1);
        
c[i][cPickup] = CreateDynamicPickup(127321c[i][cX], c[i][cY], c[i][cZ]);

        
format(textosizeof(texto), "{2E8B57}HOUSE ID: {FFFFFF}%d\n{3CB371}Owner: {FFFFFF}%s\n{3CB371}Price: {FFFFFF}$ %d\n{3CB371}Press 'F' to enter\n/helphouse"ic[i][cOwner], c[i][cPrice]);
        
c[i][cText] = CreateDynamic3DTextLabel(texto0xFFFFFFAAc[i][cX], c[i][cY], c[i][cZ]+120);
    }
    else if(
c[i][cOccupied] == 1)
    {
        
c[i][cIcon] = CreateDynamicMapIcon(c[i][cX], c[i][cY], c[i][cZ], 32, -1);
        
c[i][cPickup] = CreateDynamicPickup(1952221c[i][cX], c[i][cY], c[i][cZ]);//1272

        
format(textosizeof(texto), "{B22222}HOUSE ID: {FFFFFF}%d\n{CD5C5C}Owner: {FFFFFF}%s\n{CD5C5C}Price: {FFFFFF}$ %d{CD5C5C}\n/helphouse"ic[i][cOwner], c[i][cPrice]);
        
c[i][cText] = CreateDynamic3DTextLabel(texto0xFFFFFFAAc[i][cX], c[i][cY], c[i][cZ]+120);
    }
    return 
1;
}






// ============== ADMIN
Create_House(playerididprecointe)
{
    new 
DBResult:ResultQuery[160];
    
format(Querysizeof(Query), "SELECT * FROM HOUSES WHERE ID = %d"id);
    
Result db_query(DatabaseQuery);

    if(
db_num_rows(Result))
    {
        
SendClientMessage(playeridRED"Error.");

        } else {

        new 
Float:Pos[3];
        
GetPlayerPos(playeridPos[0], Pos[1], Pos[2]);

        
format(c[id][cOwner], 24"None");
        
c[id][cX] = Pos[0];
        
c[id][cY] = Pos[1];
        
c[id][cZ] = Pos[2];
        
c[id][cOccupied] = 0;
        
c[id][cPrice] = preco;
        
c[id][cInt] = inte;

        
SendClientMessage(playeridORANGE"House created successfully.");
        
CreateHouse(id);

        
format(Querysizeof(Query), "INSERT INTO HOUSES(OWNER, X, Y, Z, PRICE, INTERIOR) VALUES ('%s', %f, %f, %f, %d, %d)"c[id][cOwner], c[id][cX], c[id][cY], c[id][cZ], c[id][cPrice], c[id][cInt]);
        
db_query(DatabaseQuery);

        
TotalHouse ++;
    }
    
db_free_result(Result);
    return 
1;
}

Edit_House(playerididprecointeri)
{
    new 
DBResult:ResultQuery[50];
    
format(Querysizeof(Query), "SELECT * FROM HOUSES WHERE ID = %d"id);
    
Result db_query(DatabaseQuery);

    if(
db_num_rows(Result))
    {
        new 
string[60];
        
format(stringsizeof(string), "You have successfully edited the house id %d"id);
        
SendClientMessage(playeridORANGEstring);    

        
c[id][cPrice] = preco;
        
c[id][cInt] = interi;

        
DestroyDynamicPickup(c[id][cPickup]);
        
DestroyDynamicMapIcon(c[id][cIcon]);
        
DestroyDynamic3DTextLabel(c[id][cText]);

        
CreateHouse(id);

        } else {

        
SendClientMessage(playeridRED"Error.");
    }
    
db_free_result(Result);
    return 
1;
}

Go_House(playeridid)
{
    new 
DBResult:ResultQuery[50];
    
format(Querysizeof(Query), "SELECT * FROM HOUSES WHERE ID = %d"id);
    
Result db_query(DatabaseQuery);

    if(
db_num_rows(Result))
    {
        new 
string[60];
        
format(stringsizeof(string), "You went home id %d."id);
        
SendClientMessage(playeridORANGEstring);    

        
SetPlayerPos(playeridc[id][cX], c[id][cY], c[id][cZ]);
        
SetPlayerInterior(playerid0);

        } else {

        
SendClientMessage(playeridRED"Error.");
    }
    
db_free_result(Result);
    return 
1;
}

Delete_House(playeridid)
{
    new 
DBResult:ResultQuery[50];
    
format(Querysizeof(Query), "SELECT * FROM HOUSES WHERE ID = %d"id);
    
Result db_query(DatabaseQuery);

    if(
db_num_rows(Result))
    {
        
format(Querysizeof(Query), "DELETE FROM HOUSES WHERE ID = %d"id);
        
db_query(DatabaseQuery);

        new 
string[60];
        
format(stringsizeof(string), "You have successfully deleted the house id %d"id);
        
SendClientMessage(playeridORANGEstring);    

        
format(c[id][cOwner], 24"None");
        
c[id][cX] = -1;
        
c[id][cY] = -1;
        
c[id][cZ] = -1;

        
c[id][cOccupied] = -1;
        
c[id][cPrice] = -1;
        
c[id][cInt] = -1;
        
c[id][cLocked] = -1;

        
DestroyDynamicPickup(c[id][cPickup]);
        
DestroyDynamicMapIcon(c[id][cIcon]);
        
DestroyDynamic3DTextLabel(c[id][cText]);

        
TotalHouse --;

        } else {

        
SendClientMessage(playeridRED"Error.");
    }
    
db_free_result(Result);
    return 
1;




• Credits

Includes creators.
Cleyson by total code creation


◘ Sorry my bad english. :*

[FilterScript] Connection bar

$
0
0
CONNECTION BAR



INFO

Code:

This script gets player ping and display 5 bars which will show the connection status
Code:

5 Bars - ping (0-200) color (blue)
4 Bars - ping (201-400) color (green)
3 Bars - ping (401-550) color (yellow)
2 Bars - ping (551-700) color (red/pink)
1 Bar - ping (701+) color (red)

PICS



















DOWNLOAD





CREDITS

SA-MP TEAM for a_samp
ME for Connection bars
ADRI1 for His text draw editor

[FilterScript] Dynamic Object System (SQLite)

$
0
0
Introduction
Well, guys i made this new dynamic object system, because i didnot got any on forum from my searches. I had made my first release of SQLite today i am very happy, i hope you like the script, comment below how is it?

Commands
/createobject [id]
/destroyobject [id]
/editobject [id]

Credits
CrystalGamer: making the script of dynamic object system.
I give credits to all includes makers thanks alot.


Download
Pastebin (Code)

Other Download
Solidfiles (.PWN)

[FilterScript] New Quiz System Make Question and Answers..

$
0
0
INTRO:
Basically it's an filterscript which allow you to make same sort of question in game and assign price for each question..

COMMANDS:
/makequiz,
/quizans

DOWNLOAD LINK:


soon i will provide some screen shots, and I didn't found any bug if you saw any sort of bug please mention it here.

[FilterScript] Player Info System By HoussamMaroc

$
0
0
ScreenShots



PHP Code:

//================================ [Includes] ==================================
#include          <a_samp>             //Credits to SAMP-Team
//================================= [Script] ===================================
new VehicleNames[212][] = {
{
"Landstalker"},{"Bravura"},{"Buffalo"},{"Linerunner"},{"Perrenial"},{"Sentinel"},{"Dumper"},
{
"Firetruck"},{"Trashmaster"},{"Stretch"},{"Manana"},{"Infernus"},{"Voodoo"},{"Pony"},{"Mule"},
{
"Cheetah"},{"Ambulance"},{"Leviathan"},{"Moonbeam"},{"Esperanto"},{"Taxi"},{"Washington"},
{
"Bobcat"},{"Mr Whoopee"},{"BF Injection"},{"Hunter"},{"Premier"},{"Enforcer"},{"Securicar"},
{
"Banshee"},{"Predator"},{"Bus"},{"Rhino"},{"Barracks"},{"Hotknife"},{"Trailer 1"},{"Previon"},
{
"Coach"},{"Cabbie"},{"Stallion"},{"Rumpo"},{"RC Bandit"},{"Romero"},{"Packer"},{"Monster"},
{
"Admiral"},{"Squalo"},{"Seasparrow"},{"Pizzaboy"},{"Tram"},{"Trailer 2"},{"Turismo"},
{
"Speeder"},{"Reefer"},{"Tropic"},{"Flatbed"},{"Yankee"},{"Caddy"},{"Solair"},{"Berkley's RC Van"},
{
"Skimmer"},{"PCJ-600"},{"Faggio"},{"Freeway"},{"RC Baron"},{"RC Raider"},{"Glendale"},{"Oceanic"},
{
"Sanchez"},{"Sparrow"},{"Patriot"},{"Quad"},{"Coastguard"},{"Dinghy"},{"Hermes"},{"Sabre"},
{
"Rustler"},{"ZR-350"},{"Walton"},{"Regina"},{"Comet"},{"BMX"},{"Burrito"},{"Camper"},{"Marquis"},
{
"Baggage"},{"Dozer"},{"Maverick"},{"News Chopper"},{"Rancher"},{"FBI Rancher"},{"Virgo"},{"Greenwood"},
{
"Jetmax"},{"Hotring"},{"Sandking"},{"Blista Compact"},{"Police Maverick"},{"Boxville"},{"Benson"},
{
"Mesa"},{"RC Goblin"},{"Hotring Racer A"},{"Hotring Racer B"},{"Bloodring Banger"},{"Rancher"},
{
"Super GT"},{"Elegant"},{"Journey"},{"Bike"},{"Mountain Bike"},{"Beagle"},{"Cropdust"},{"Stunt"},
{
"Tanker"}, {"Roadtrain"},{"Nebula"},{"Majestic"},{"Buccaneer"},{"Shamal"},{"Hydra"},{"FCR-900"},
{
"NRG-500"},{"HPV1000"},{"Cement Truck"},{"Tow Truck"},{"Fortune"},{"Cadrona"},{"FBI Truck"},
{
"Willard"},{"Forklift"},{"Tractor"},{"Combine"},{"Feltzer"},{"Remington"},{"Slamvan"},
{
"Blade"},{"Freight"},{"Streak"},{"Vortex"},{"Vincent"},{"Bullet"},{"Clover"},{"Sadler"},
{
"Firetruck LA"},{"Hustler"},{"Intruder"},{"Primo"},{"Cargobob"},{"Tampa"},{"Sunrise"},{"Merit"},
{
"Utility"},{"Nevada"},{"Yosemite"},{"Windsor"},{"Monster A"},{"Monster B"},{"Uranus"},{"Jester"},
{
"Sultan"},{"Stratum"},{"Elegy"},{"Raindance"},{"RC Tiger"},{"Flash"},{"Tahoma"},{"Savanna"},
{
"Bandito"},{"Freight Flat"},{"Streak Carriage"},{"Kart"},{"Mower"},{"Duneride"},{"Sweeper"},
{
"Broadway"},{"Tornado"},{"AT-400"},{"DFT-30"},{"Huntley"},{"Stafford"},{"BF-400"},{"Newsvan"},
{
"Tug"},{"Trailer 3"},{"Emperor"},{"Wayfarer"},{"Euros"},{"Hotdog"},{"Club"},{"Freight Carriage"},
{
"Trailer 3"},{"Andromada"},{"Dodo"},{"RC Cam"},{"Launch"},{"Police Car (LSPD)"},{"Police Car (SFPD)"},
{
"Police Car (LVPD)"},{"Police Ranger"},{"Picador"},{"S.W.A.T. Van"},{"Alpha"},{"Phoenix"},{"Glendale"},
{
"Sadler"},{"Luggage Trailer A"},{"Luggage Trailer B"},{"Stair Trailer"},{"Boxville"},{"Farm Plow"},
{
"Utility Trailer"}
};
enum TimePlayed
{
    
hours,
    
mins,
    
secs,
    
TotalTime,
    
ConnectTime
};

new 
PlayerText:InfoTD[42][MAX_PLAYERS];
new 
PlayerTimePlayed[MAX_PLAYERS][TimePlayed];
//------------------------------------------------------------------------------
//Forwards
forward AutoPlayerUpdate(playerid);
//CallBacks & Functions
public OnFilterScriptInit()
{
    print(
"--------------------------------");
    print(
"| Player Stats by HoussamMaroc |");
    print(
"|             Loaded           |");
    print(
"--------------------------------");
    return 
1;
}
//------------------------------------------------------------------------------
public OnFilterScriptExit()
{
    print(
"---------------------------------");
    print(
"| Player Stats by HoussamMaroc |");
    print(
"|            Unloaded          |");
    print(
"---------------------------------");
    return 
1;
}
//------------------------------------------------------------------------------
public OnPlayerConnect(playerid)
{
    
CreatePlayerInfo(playerid);
    
PlayerTimePlayed[playerid][ConnectTime] = gettime();
    return 
1;
}
//------------------------------------------------------------------------------
public OnPlayerSpawn(playerid)
{
    
ShowPlayerInfo(playerid);
    
ShowInfoBar(playerid);
    
SetTimerEx("AutoPlayerUpdate"60true,"i"playerid);
    return 
1;
}
//------------------------------------------------------------------------------
public OnPlayerDisconnect(playeridreason)
{
    
DestroyAllTextDraws(playerid);
    
DestroyPlayerInfo(playerid);
    
HideInfo(playerid);
    return 
1;
}
//------------------------------------------------------------------------------
public AutoPlayerUpdate(playerid)
{
    
/* ** *** Part 1 *** ** */
    
    
new PScore,ip[50],cash,ipa[50],money[50],score[50];
    
PScore GetPlayerScore(playerid);
    
GetPlayerIp(playeridipsizeof(ip));
    
cash GetPlayerMoney(playerid);
     
format(ipasizeof(ipa), "Ip Adress: %s"ip);
      
format(moneysizeof(money), "Money: %d"cash);
       
format(scoresizeof(score), "Score: %d"PScore);
       
PlayerTextDrawSetString(playeridInfoTD[18][playerid], ipa);
    
PlayerTextDrawSetString(playeridInfoTD[19][playerid], money);
     
PlayerTextDrawSetString(playeridInfoTD[20][playerid], score);


    new 
Float:HPHPstr[50];
    
GetPlayerHealth(playeridHP);
    
format(HPstrsizeof(HPstr), "Health: %.0f%%"HP);
    
PlayerTextDrawSetString(playeridInfoTD[8][playerid], HPstr);

    new 
Float:APAPstr[50];
    
GetPlayerArmour(playeridAP);
    
format(APstrsizeof(APstr), "Armour: %.0f%%"AP);
    
PlayerTextDrawSetString(playeridInfoTD[9][playerid], APstr);

    new 
WeapWeapN[50], Wstr[100];
    
Weap GetPlayerWeapon(playerid);
    if(
Weap != 0)
    {
        
GetWeaponName(WeapWeapNsizeof(WeapN));
        
format(Wstrsizeof(Wstr), "Weapon: %d/%s"WeapWeapN);
        
PlayerTextDrawSetString(playeridInfoTD[10][playerid], Wstr);
    }
    if(
Weap == 0PlayerTextDrawSetString(playeridInfoTD[10][playerid], "Weapon: 0/Fist");

    new 
SKstr[50];
    
format(SKstrsizeof(SKstr), "Skin: %d"GetPlayerSkin(playerid));
    
PlayerTextDrawSetString(playeridInfoTD[11][playerid], SKstr);

    
/* ** *** Part 2 *** ** */

    
new Float:XFloat:YFloat:ZFloat:An;
    new 
Xstr[50], Ystr[50], Zstr[50], Anstr[50];
    
GetPlayerPos(playeridXYZ);
    
GetPlayerFacingAngle(playeridAn);
    
format(Xstrsizeof(Xstr), "Position X: %.3f"X);
    
format(Ystrsizeof(Ystr), "Position Y: %.3f"Y);
    
format(Zstrsizeof(Zstr), "Position Z: %.3f"Z);
    
format(Anstrsizeof(Anstr), "Facing Angle: %.3f"An);
    
PlayerTextDrawSetString(playeridInfoTD[13][playerid], Xstr);
    
PlayerTextDrawSetString(playeridInfoTD[14][playerid], Ystr);
    
PlayerTextDrawSetString(playeridInfoTD[15][playerid], Zstr);
    
PlayerTextDrawSetString(playeridInfoTD[16][playerid], Anstr);
     
    
/* ** *** Part 3 *** ** */


    
new SAstr[50];
    
format(SAstrsizeof(SAstr), "Special Action: %d"GetPlayerSpecialAction(playerid));
    
PlayerTextDrawSetString(playeridInfoTD[21][playerid], SAstr);

    
/* ** *** Part 4 *** ** */

    
new Name[MAX_PLAYER_NAME], Nstr[50];
    
GetPlayerName(playeridNamesizeof(Name));
    
format(Nstrsizeof(Nstr), "Name: %s"Name);
    
PlayerTextDrawSetString(playeridInfoTD[23][playerid], Nstr);

    new 
IDstr[50];
    
format(IDstrsizeof(IDstr), "ID: %d"playerid);
    
PlayerTextDrawSetString(playeridInfoTD[24][playerid], IDstr);

     new 
Pstr[144],hms;
    
TotalGameTime(playeridhms);
    
format(Pstrsizeof(Pstr), "Time Played: %dh %dm %ds",h,m,s);
    
PlayerTextDrawSetString(playeridInfoTD[25][playerid], Pstr);

    
/* ** *** Part 5 *** ** */

    
new YearMonthDayDTstr[50];
    
getdate(YearMonthDay);
    
format(DTstrsizeof(DTstr), "Date: %02d/%02d/%02d"DayMonthYear);
    
PlayerTextDrawSetString(playeridInfoTD[27][playerid], DTstr);

    new 
HourMinuteSecondTMstr[50];
    
gettime(HourMinuteSecond);
    
format(TMstrsizeof(TMstr), "Time: %02d:%02d:%02d"HourMinuteSecond);
    
PlayerTextDrawSetString(playeridInfoTD[28][playerid], TMstr);

    
/* ** *** Part 6 *** ** */

    
new VWstr[50];
    
format(VWstrsizeof(VWstr), "Virtual World: %d"GetPlayerVirtualWorld(playerid));
    
PlayerTextDrawSetString(playeridInfoTD[30][playerid], VWstr);

    new 
Istr[50];
    
format(Istrsizeof(Istr), "Interior: %d"GetPlayerInterior(playerid));
    
PlayerTextDrawSetString(playeridInfoTD[31][playerid], Istr);

    
/* ** *** Part 7 *** ** */

    
if(IsPlayerInAnyVehicle(playerid))
    {
        new 
vIDvModFloat:vHPvIDstr[50], vModstr[50], vHPstr[50];
        
vID GetPlayerVehicleID(playerid);
        
vMod GetVehicleModel(vID);
           
GetVehicleHealth(vIDvHP);
           
format(vIDstrsizeof(vIDstr), "Vehicle Name: %s"VehicleNames[GetVehicleModel(vID)-400]);
           
format(vModstrsizeof(vModstr), "Vehicle Model: %d"vMod);
           
format(vHPstrsizeof(vHPstr), "Vehicle Health: %.2f"vHP);
        
PlayerTextDrawSetString(playeridInfoTD[33][playerid], vIDstr);
        
PlayerTextDrawSetString(playeridInfoTD[34][playerid], vModstr);
        
PlayerTextDrawSetString(playeridInfoTD[35][playerid], vHPstr);
    }
    else
    {
        
PlayerTextDrawSetString(playeridInfoTD[33][playerid], "Vehicle Name: None");
        
PlayerTextDrawSetString(playeridInfoTD[34][playerid], "Vehicle Model: None");
        
PlayerTextDrawSetString(playeridInfoTD[35][playerid], "Vehicle Health: None");
    }
    return 
1;
}
//================================= [Stocks] ===================================
stock ShowInfoBar(playerid)
{
    
PlayerTextDrawShow(playeridInfoTD[1][playerid]);
    
PlayerTextDrawShow(playeridInfoTD[2][playerid]);
    return 
1;
}
//------------------------------------------------------------------------------
stock HideStatsBar(playerid)
{
    
PlayerTextDrawHide(playeridInfoTD[1][playerid]);
    
PlayerTextDrawHide(playeridInfoTD[2][playerid]);
    return 
1;
}
//------------------------------------------------------------------------------
stock CreatePlayerInfo(playerid)
{
    
InfoTD[1][playerid] = CreatePlayerTextDraw(playerid310.000000429.000000"Info system by HoussamMaroc");
    
PlayerTextDrawAlignment(playeridInfoTD[1][playerid], 2);
    
PlayerTextDrawBackgroundColor(playeridInfoTD[1][playerid], 255);
    
PlayerTextDrawFont(playeridInfoTD[1][playerid], 0);
    
PlayerTextDrawLetterSize(playeridInfoTD[1][playerid], 0.5000001.799999);
    
PlayerTextDrawColor(playeridInfoTD[1][playerid], -1526726401);
    
PlayerTextDrawSetOutline(playeridInfoTD[1][playerid], 1);
    
PlayerTextDrawSetProportional(playeridInfoTD[1][playerid], 1);
    
PlayerTextDrawUseBox(playeridInfoTD[1][playerid], 1);
    
PlayerTextDrawBoxColor(playeridInfoTD[1][playerid], 16843158);
    
PlayerTextDrawTextSize(playeridInfoTD[1][playerid], 0.0000001050.000000);

    
InfoTD[2][playerid] = CreatePlayerTextDraw(playerid303.000000429.000000"_");
    
PlayerTextDrawAlignment(playeridInfoTD[2][playerid], 2);
    
PlayerTextDrawBackgroundColor(playeridInfoTD[2][playerid], 255);
    
PlayerTextDrawFont(playeridInfoTD[2][playerid], 0);
    
PlayerTextDrawLetterSize(playeridInfoTD[2][playerid], 0.500000, -0.500000);
    
PlayerTextDrawColor(playeridInfoTD[2][playerid], -939523841);
    
PlayerTextDrawSetOutline(playeridInfoTD[2][playerid], 1);
    
PlayerTextDrawSetProportional(playeridInfoTD[2][playerid], 1);
    
PlayerTextDrawUseBox(playeridInfoTD[2][playerid], 1);
    
PlayerTextDrawBoxColor(playeridInfoTD[2][playerid], 255);
    
PlayerTextDrawTextSize(playeridInfoTD[2][playerid], 0.0000001050.000000);

    
InfoTD[3][playerid] = CreatePlayerTextDraw(playerid637.000000105.000000"_");
    
PlayerTextDrawAlignment(playeridInfoTD[3][playerid], 2);
    
PlayerTextDrawBackgroundColor(playeridInfoTD[3][playerid], 255);
    
PlayerTextDrawFont(playeridInfoTD[3][playerid], 1);
    
PlayerTextDrawLetterSize(playeridInfoTD[3][playerid], 0.50000035.299999);
    
PlayerTextDrawColor(playeridInfoTD[3][playerid], -1);
    
PlayerTextDrawSetOutline(playeridInfoTD[3][playerid], 0);
    
PlayerTextDrawSetProportional(playeridInfoTD[3][playerid], 1);
    
PlayerTextDrawSetShadow(playeridInfoTD[3][playerid], 1);
    
PlayerTextDrawUseBox(playeridInfoTD[3][playerid], 1);
    
PlayerTextDrawBoxColor(playeridInfoTD[3][playerid], 16843158);
    
PlayerTextDrawTextSize(playeridInfoTD[3][playerid], 3.000000289.000000);

    
InfoTD[4][playerid] = CreatePlayerTextDraw(playerid1018.000000104.000000"_");
    
PlayerTextDrawAlignment(playeridInfoTD[4][playerid], 2);
    
PlayerTextDrawBackgroundColor(playeridInfoTD[4][playerid], 255);
    
PlayerTextDrawFont(playeridInfoTD[4][playerid], 0);
    
PlayerTextDrawLetterSize(playeridInfoTD[4][playerid], 0.500000, -0.500000);
    
PlayerTextDrawColor(playeridInfoTD[4][playerid], -939523841);
    
PlayerTextDrawSetOutline(playeridInfoTD[4][playerid], 1);
    
PlayerTextDrawSetProportional(playeridInfoTD[4][playerid], 1);
    
PlayerTextDrawUseBox(playeridInfoTD[4][playerid], 1);
    
PlayerTextDrawBoxColor(playeridInfoTD[4][playerid], 255);
    
PlayerTextDrawTextSize(playeridInfoTD[4][playerid], 0.0000001050.000000);

    
InfoTD[5][playerid] = CreatePlayerTextDraw(playerid490.000000104.000000"_");
    
PlayerTextDrawAlignment(playeridInfoTD[5][playerid], 2);
    
PlayerTextDrawBackgroundColor(playeridInfoTD[5][playerid], 255);
    
PlayerTextDrawFont(playeridInfoTD[5][playerid], 0);
    
PlayerTextDrawLetterSize(playeridInfoTD[5][playerid], 0.50000035.499977);
    
PlayerTextDrawColor(playeridInfoTD[5][playerid], -939523841);
    
PlayerTextDrawSetOutline(playeridInfoTD[5][playerid], 1);
    
PlayerTextDrawSetProportional(playeridInfoTD[5][playerid], 1);
    
PlayerTextDrawUseBox(playeridInfoTD[5][playerid], 1);
    
PlayerTextDrawBoxColor(playeridInfoTD[5][playerid], 255);
    
PlayerTextDrawTextSize(playeridInfoTD[5][playerid], -39.000000, -5.000000);

    
InfoTD[6][playerid] = CreatePlayerTextDraw(playerid567.000000104.000000"Your Info");
    
PlayerTextDrawAlignment(playeridInfoTD[6][playerid], 2);
    
PlayerTextDrawBackgroundColor(playeridInfoTD[6][playerid], 255);
    
PlayerTextDrawFont(playeridInfoTD[6][playerid], 2);
    
PlayerTextDrawLetterSize(playeridInfoTD[6][playerid], 0.5000001.799999);
    
PlayerTextDrawColor(playeridInfoTD[6][playerid], -1526726401);
    
PlayerTextDrawSetOutline(playeridInfoTD[6][playerid], 1);
    
PlayerTextDrawSetProportional(playeridInfoTD[6][playerid], 1);

    
InfoTD[7][playerid] = CreatePlayerTextDraw(playerid1019.000000126.000000"_");
    
PlayerTextDrawAlignment(playeridInfoTD[7][playerid], 2);
    
PlayerTextDrawBackgroundColor(playeridInfoTD[7][playerid], 255);
    
PlayerTextDrawFont(playeridInfoTD[7][playerid], 0);
    
PlayerTextDrawLetterSize(playeridInfoTD[7][playerid], 0.500000, -0.500000);
    
PlayerTextDrawColor(playeridInfoTD[7][playerid], -939523841);
    
PlayerTextDrawSetOutline(playeridInfoTD[7][playerid], 1);
    
PlayerTextDrawSetProportional(playeridInfoTD[7][playerid], 1);
    
PlayerTextDrawUseBox(playeridInfoTD[7][playerid], 1);
    
PlayerTextDrawBoxColor(playeridInfoTD[7][playerid], 255);
    
PlayerTextDrawTextSize(playeridInfoTD[7][playerid], 0.0000001050.000000);

    
InfoTD[12][playerid] = CreatePlayerTextDraw(playerid1018.000000179.000000"_");
    
PlayerTextDrawAlignment(playeridInfoTD[12][playerid], 2);
    
PlayerTextDrawBackgroundColor(playeridInfoTD[12][playerid], 255);
    
PlayerTextDrawFont(playeridInfoTD[12][playerid], 0);
    
PlayerTextDrawLetterSize(playeridInfoTD[12][playerid], 0.500000, -0.500000);
    
PlayerTextDrawColor(playeridInfoTD[12][playerid], -939523841);
    
PlayerTextDrawSetOutline(playeridInfoTD[12][playerid], 1);
    
PlayerTextDrawSetProportional(playeridInfoTD[12][playerid], 1);
    
PlayerTextDrawUseBox(playeridInfoTD[12][playerid], 1);
    
PlayerTextDrawBoxColor(playeridInfoTD[12][playerid], 255);
    
PlayerTextDrawTextSize(playeridInfoTD[12][playerid], 0.0000001050.000000);

    
InfoTD[17][playerid] = CreatePlayerTextDraw(playerid1018.000000231.000000"_");
    
PlayerTextDrawAlignment(playeridInfoTD[17][playerid], 2);
    
PlayerTextDrawBackgroundColor(playeridInfoTD[17][playerid], 255);
    
PlayerTextDrawFont(playeridInfoTD[17][playerid], 0);
    
PlayerTextDrawLetterSize(playeridInfoTD[17][playerid], 0.500000, -0.500000);
    
PlayerTextDrawColor(playeridInfoTD[17][playerid], -939523841);
    
PlayerTextDrawSetOutline(playeridInfoTD[17][playerid], 1);
    
PlayerTextDrawSetProportional(playeridInfoTD[17][playerid], 1);
    
PlayerTextDrawUseBox(playeridInfoTD[17][playerid], 1);
    
PlayerTextDrawBoxColor(playeridInfoTD[17][playerid], 255);
    
PlayerTextDrawTextSize(playeridInfoTD[17][playerid], 0.0000001050.000000);

    
InfoTD[22][playerid] = CreatePlayerTextDraw(playerid1018.000000286.000000"_");
    
PlayerTextDrawAlignment(playeridInfoTD[22][playerid], 2);
    
PlayerTextDrawBackgroundColor(playeridInfoTD[22][playerid], 255);
    
PlayerTextDrawFont(playeridInfoTD[22][playerid], 0);
    
PlayerTextDrawLetterSize(playeridInfoTD[22][playerid], 0.500000, -0.500000);
    
PlayerTextDrawColor(playeridInfoTD[22][playerid], -939523841);
    
PlayerTextDrawSetOutline(playeridInfoTD[22][playerid], 1);
    
PlayerTextDrawSetProportional(playeridInfoTD[22][playerid], 1);
    
PlayerTextDrawUseBox(playeridInfoTD[22][playerid], 1);
    
PlayerTextDrawBoxColor(playeridInfoTD[22][playerid], 255);
    
PlayerTextDrawTextSize(playeridInfoTD[22][playerid], 0.0000001050.000000);

    
InfoTD[26][playerid] = CreatePlayerTextDraw(playerid1018.000000331.000000"_");
    
PlayerTextDrawAlignment(playeridInfoTD[26][playerid], 2);
    
PlayerTextDrawBackgroundColor(playeridInfoTD[26][playerid], 255);
    
PlayerTextDrawFont(playeridInfoTD[26][playerid], 0);
    
PlayerTextDrawLetterSize(playeridInfoTD[26][playerid], 0.500000, -0.500000);
    
PlayerTextDrawColor(playeridInfoTD[26][playerid], -939523841);
    
PlayerTextDrawSetOutline(playeridInfoTD[26][playerid], 1);
    
PlayerTextDrawSetProportional(playeridInfoTD[26][playerid], 1);
    
PlayerTextDrawUseBox(playeridInfoTD[26][playerid], 1);
    
PlayerTextDrawBoxColor(playeridInfoTD[26][playerid], 255);
    
PlayerTextDrawTextSize(playeridInfoTD[26][playerid], 0.0000001050.000000);

    
InfoTD[29][playerid] = CreatePlayerTextDraw(playerid1018.000000361.000000"_");
    
PlayerTextDrawAlignment(playeridInfoTD[29][playerid], 2);
    
PlayerTextDrawBackgroundColor(playeridInfoTD[29][playerid], 255);
    
PlayerTextDrawFont(playeridInfoTD[29][playerid], 0);
    
PlayerTextDrawLetterSize(playeridInfoTD[29][playerid], 0.500000, -0.500000);
    
PlayerTextDrawColor(playeridInfoTD[29][playerid], -939523841);
    
PlayerTextDrawSetOutline(playeridInfoTD[29][playerid], 1);
    
PlayerTextDrawSetProportional(playeridInfoTD[29][playerid], 1);
    
PlayerTextDrawUseBox(playeridInfoTD[29][playerid], 1);
    
PlayerTextDrawBoxColor(playeridInfoTD[29][playerid], 255);
    
PlayerTextDrawTextSize(playeridInfoTD[29][playerid], 0.0000001050.000000);

    
InfoTD[32][playerid] = CreatePlayerTextDraw(playerid1018.000000390.000000"_");
    
PlayerTextDrawAlignment(playeridInfoTD[32][playerid], 2);
    
PlayerTextDrawBackgroundColor(playeridInfoTD[32][playerid], 255);
    
PlayerTextDrawFont(playeridInfoTD[32][playerid], 0);
    
PlayerTextDrawLetterSize(playeridInfoTD[32][playerid], 0.500000, -0.500000);
    
PlayerTextDrawColor(playeridInfoTD[32][playerid], -939523841);
    
PlayerTextDrawSetOutline(playeridInfoTD[32][playerid], 1);
    
PlayerTextDrawSetProportional(playeridInfoTD[32][playerid], 1);
    
PlayerTextDrawUseBox(playeridInfoTD[32][playerid], 1);
    
PlayerTextDrawBoxColor(playeridInfoTD[32][playerid], 255);
    
PlayerTextDrawTextSize(playeridInfoTD[32][playerid], 0.0000001050.000000);

    
InfoTD[36][playerid] = CreatePlayerTextDraw(playerid489.604675425.250000"LD_SPAC:white");
    
PlayerTextDrawLetterSize(playeridInfoTD[36][playerid], 0.0000000.000000);
    
PlayerTextDrawTextSize(playeridInfoTD[36][playerid], 150.3953091.750020);
    
PlayerTextDrawAlignment(playeridInfoTD[36][playerid], 1);
    
PlayerTextDrawColor(playeridInfoTD[36][playerid], 255);
    
PlayerTextDrawSetShadow(playeridInfoTD[36][playerid], 0);
    
PlayerTextDrawSetOutline(playeridInfoTD[36][playerid], 0);
    
PlayerTextDrawFont(playeridInfoTD[36][playerid], 4);

    
InfoTD[37][playerid] = CreatePlayerTextDraw(playerid490.541717329.000000"LD_SPAC:white");
    
PlayerTextDrawLetterSize(playeridInfoTD[37][playerid], 0.0000000.000000);
    
PlayerTextDrawTextSize(playeridInfoTD[37][playerid], 149.458282, -0.583312);
    
PlayerTextDrawAlignment(playeridInfoTD[37][playerid], 1);
    
PlayerTextDrawColor(playeridInfoTD[37][playerid], 255);
    
PlayerTextDrawSetShadow(playeridInfoTD[37][playerid], 0);
    
PlayerTextDrawSetOutline(playeridInfoTD[37][playerid], 0);
    
PlayerTextDrawFont(playeridInfoTD[37][playerid], 4);

    
InfoTD[38][playerid] = CreatePlayerTextDraw(playerid491.073211284.500213"LD_SPAC:white");
    
PlayerTextDrawLetterSize(playeridInfoTD[38][playerid], 0.0000000.000000);
    
PlayerTextDrawTextSize(playeridInfoTD[38][playerid], 149.458282, -0.583312);
    
PlayerTextDrawAlignment(playeridInfoTD[38][playerid], 1);
    
PlayerTextDrawColor(playeridInfoTD[38][playerid], 255);
    
PlayerTextDrawSetShadow(playeridInfoTD[38][playerid], 0);
    
PlayerTextDrawSetOutline(playeridInfoTD[38][playerid], 0);
    
PlayerTextDrawFont(playeridInfoTD[38][playerid], 4);

    
InfoTD[39][playerid] = CreatePlayerTextDraw(playerid490.667663388.166748"LD_SPAC:white");
    
PlayerTextDrawLetterSize(playeridInfoTD[39][playerid], 0.0000000.000000);
    
PlayerTextDrawTextSize(playeridInfoTD[39][playerid], 149.458282, -0.583312);
    
PlayerTextDrawAlignment(playeridInfoTD[39][playerid], 1);
    
PlayerTextDrawColor(playeridInfoTD[39][playerid], 255);
    
PlayerTextDrawSetShadow(playeridInfoTD[39][playerid], 0);
    
PlayerTextDrawSetOutline(playeridInfoTD[39][playerid], 0);
    
PlayerTextDrawFont(playeridInfoTD[39][playerid], 4);

    
InfoTD[40][playerid] = CreatePlayerTextDraw(playerid, -0.874101425.083404"LD_SPAC:white");
    
PlayerTextDrawLetterSize(playeridInfoTD[40][playerid], 0.0000000.000000);
    
PlayerTextDrawTextSize(playeridInfoTD[40][playerid], 491.0110161.750021);
    
PlayerTextDrawAlignment(playeridInfoTD[40][playerid], 1);
    
PlayerTextDrawColor(playeridInfoTD[40][playerid], 255);
    
PlayerTextDrawSetShadow(playeridInfoTD[40][playerid], 0);
    
PlayerTextDrawSetOutline(playeridInfoTD[40][playerid], 0);
    
PlayerTextDrawFont(playeridInfoTD[40][playerid], 4);

    
InfoTD[41][playerid] = CreatePlayerTextDraw(playerid489.198913101.916679"LD_SPAC:white");
    
PlayerTextDrawLetterSize(playeridInfoTD[41][playerid], 0.0000000.000000);
    
PlayerTextDrawTextSize(playeridInfoTD[41][playerid], 150.3953091.750020);
    
PlayerTextDrawAlignment(playeridInfoTD[41][playerid], 1);
    
PlayerTextDrawColor(playeridInfoTD[41][playerid], 255);
    
PlayerTextDrawSetShadow(playeridInfoTD[41][playerid], 0);
    
PlayerTextDrawSetOutline(playeridInfoTD[41][playerid], 0);
    
PlayerTextDrawFont(playeridInfoTD[41][playerid], 4);

    
InfoTD[8][playerid] = CreatePlayerTextDraw(playerid494.000000127.000000"Health: 100%");
    
PlayerTextDrawBackgroundColor(playeridInfoTD[8][playerid], 255);
    
PlayerTextDrawFont(playeridInfoTD[8][playerid], 1);
    
PlayerTextDrawLetterSize(playeridInfoTD[8][playerid], 0.2800001.099999);
    
PlayerTextDrawColor(playeridInfoTD[8][playerid], -4652801);
    
PlayerTextDrawSetOutline(playeridInfoTD[8][playerid], 1);
    
PlayerTextDrawSetProportional(playeridInfoTD[8][playerid], 1);

    
InfoTD[9][playerid] = CreatePlayerTextDraw(playerid494.000000138.000000"Armour: 100%");
    
PlayerTextDrawBackgroundColor(playeridInfoTD[9][playerid], 255);
    
PlayerTextDrawFont(playeridInfoTD[9][playerid], 1);
    
PlayerTextDrawLetterSize(playeridInfoTD[9][playerid], 0.2800001.099999);
    
PlayerTextDrawColor(playeridInfoTD[9][playerid], -4652801);
    
PlayerTextDrawSetOutline(playeridInfoTD[9][playerid], 1);
    
PlayerTextDrawSetProportional(playeridInfoTD[9][playerid], 1);

    
InfoTD[10][playerid] = CreatePlayerTextDraw(playerid494.000000150.000000"Weapon: 39/Stachel Charge");
    
PlayerTextDrawBackgroundColor(playeridInfoTD[10][playerid], 255);
    
PlayerTextDrawFont(playeridInfoTD[10][playerid], 1);
    
PlayerTextDrawLetterSize(playeridInfoTD[10][playerid], 0.2800001.099999);
    
PlayerTextDrawColor(playeridInfoTD[10][playerid], -4652801);
    
PlayerTextDrawSetOutline(playeridInfoTD[10][playerid], 1);
    
PlayerTextDrawSetProportional(playeridInfoTD[10][playerid], 1);

    
InfoTD[11][playerid] = CreatePlayerTextDraw(playerid494.000000162.000000"Skin: 0");
    
PlayerTextDrawBackgroundColor(playeridInfoTD[11][playerid], 255);
    
PlayerTextDrawFont(playeridInfoTD[11][playerid], 1);
    
PlayerTextDrawLetterSize(playeridInfoTD[11][playerid], 0.2800001.099999);
    
PlayerTextDrawColor(playeridInfoTD[11][playerid], -4652801);
    
PlayerTextDrawSetOutline(playeridInfoTD[11][playerid], 1);
    
PlayerTextDrawSetProportional(playeridInfoTD[11][playerid], 1);

    
InfoTD[13][playerid] = CreatePlayerTextDraw(playerid495.000000179.000000"Position X: 00.000");
    
PlayerTextDrawBackgroundColor(playeridInfoTD[13][playerid], 255);
    
PlayerTextDrawFont(playeridInfoTD[13][playerid], 1);
    
PlayerTextDrawLetterSize(playeridInfoTD[13][playerid], 0.2800001.099999);
    
PlayerTextDrawColor(playeridInfoTD[13][playerid], 1270415615);
    
PlayerTextDrawSetOutline(playeridInfoTD[13][playerid], 1);
    
PlayerTextDrawSetProportional(playeridInfoTD[13][playerid], 1);

    
InfoTD[14][playerid] = CreatePlayerTextDraw(playerid495.000000191.000000"Position Y: 00.000");
    
PlayerTextDrawBackgroundColor(playeridInfoTD[14][playerid], 255);
    
PlayerTextDrawFont(playeridInfoTD[14][playerid], 1);
    
PlayerTextDrawLetterSize(playeridInfoTD[14][playerid], 0.2800001.099999);
    
PlayerTextDrawColor(playeridInfoTD[14][playerid], 1270415615);
    
PlayerTextDrawSetOutline(playeridInfoTD[14][playerid], 1);
    
PlayerTextDrawSetProportional(playeridInfoTD[14][playerid], 1);

    
InfoTD[15][playerid] = CreatePlayerTextDraw(playerid495.000000202.000000"Position Z: 00.000");
    
PlayerTextDrawBackgroundColor(playeridInfoTD[15][playerid], 255);
    
PlayerTextDrawFont(playeridInfoTD[15][playerid], 1);
    
PlayerTextDrawLetterSize(playeridInfoTD[15][playerid], 0.2800001.099999);
    
PlayerTextDrawColor(playeridInfoTD[15][playerid], 1270415615);
    
PlayerTextDrawSetOutline(playeridInfoTD[15][playerid], 1);
    
PlayerTextDrawSetProportional(playeridInfoTD[15][playerid], 1);

    
InfoTD[16][playerid] = CreatePlayerTextDraw(playerid494.000000214.000000"Facing Angle: 00.000");
    
PlayerTextDrawBackgroundColor(playeridInfoTD[16][playerid], 255);
    
PlayerTextDrawFont(playeridInfoTD[16][playerid], 1);
    
PlayerTextDrawLetterSize(playeridInfoTD[16][playerid], 0.2800001.099999);
    
PlayerTextDrawColor(playeridInfoTD[16][playerid], 1270415615);
    
PlayerTextDrawSetOutline(playeridInfoTD[16][playerid], 1);
    
PlayerTextDrawSetProportional(playeridInfoTD[16][playerid], 1);

    
InfoTD[18][playerid] = CreatePlayerTextDraw(playerid493.000000232.000000"Ip Adress: 127.0.0.1");
    
PlayerTextDrawBackgroundColor(playeridInfoTD[18][playerid], 255);
    
PlayerTextDrawFont(playeridInfoTD[18][playerid], 1);
    
PlayerTextDrawLetterSize(playeridInfoTD[18][playerid], 0.2800001.099999);
    
PlayerTextDrawColor(playeridInfoTD[18][playerid], -12189441);
    
PlayerTextDrawSetOutline(playeridInfoTD[18][playerid], 1);
    
PlayerTextDrawSetProportional(playeridInfoTD[18][playerid], 1);

    
InfoTD[19][playerid] = CreatePlayerTextDraw(playerid493.000000244.000000"Money: 0");
    
PlayerTextDrawBackgroundColor(playeridInfoTD[19][playerid], 255);
    
PlayerTextDrawFont(playeridInfoTD[19][playerid], 1);
    
PlayerTextDrawLetterSize(playeridInfoTD[19][playerid], 0.2800001.099999);
    
PlayerTextDrawColor(playeridInfoTD[19][playerid], -12189441);
    
PlayerTextDrawSetOutline(playeridInfoTD[19][playerid], 1);
    
PlayerTextDrawSetProportional(playeridInfoTD[19][playerid], 1);

    
InfoTD[20][playerid] = CreatePlayerTextDraw(playerid493.000000256.000000"Score: 0");
    
PlayerTextDrawBackgroundColor(playeridInfoTD[20][playerid], 255);
    
PlayerTextDrawFont(playeridInfoTD[20][playerid], 1);
    
PlayerTextDrawLetterSize(playeridInfoTD[20][playerid], 0.2800001.099999);
    
PlayerTextDrawColor(playeridInfoTD[20][playerid], -12189441);
    
PlayerTextDrawSetOutline(playeridInfoTD[20][playerid], 1);
    
PlayerTextDrawSetProportional(playeridInfoTD[20][playerid], 1);

    
InfoTD[21][playerid] = CreatePlayerTextDraw(playerid493.000000268.000000"Special Action: 0");
    
PlayerTextDrawBackgroundColor(playeridInfoTD[21][playerid], 255);
    
PlayerTextDrawFont(playeridInfoTD[21][playerid], 1);
    
PlayerTextDrawLetterSize(playeridInfoTD[21][playerid], 0.2800001.099999);
    
PlayerTextDrawColor(playeridInfoTD[21][playerid], -12189441);
    
PlayerTextDrawSetOutline(playeridInfoTD[21][playerid], 1);
    
PlayerTextDrawSetProportional(playeridInfoTD[21][playerid], 1);

    
InfoTD[23][playerid] = CreatePlayerTextDraw(playerid494.000000288.000000"Name: HoussamMaroc");
    
PlayerTextDrawBackgroundColor(playeridInfoTD[23][playerid], 255);
    
PlayerTextDrawFont(playeridInfoTD[23][playerid], 1);
    
PlayerTextDrawLetterSize(playeridInfoTD[23][playerid], 0.2800001.099999);
    
PlayerTextDrawColor(playeridInfoTD[23][playerid], 8912895);
    
PlayerTextDrawSetOutline(playeridInfoTD[23][playerid], 1);
    
PlayerTextDrawSetProportional(playeridInfoTD[23][playerid], 1);

    
InfoTD[24][playerid] = CreatePlayerTextDraw(playerid494.000000300.000000"ID: 0");
    
PlayerTextDrawBackgroundColor(playeridInfoTD[24][playerid], 255);
    
PlayerTextDrawFont(playeridInfoTD[24][playerid], 1);
    
PlayerTextDrawLetterSize(playeridInfoTD[24][playerid], 0.2800001.099999);
    
PlayerTextDrawColor(playeridInfoTD[24][playerid], 8912895);
    
PlayerTextDrawSetOutline(playeridInfoTD[24][playerid], 1);
    
PlayerTextDrawSetProportional(playeridInfoTD[24][playerid], 1);

    
InfoTD[25][playerid] = CreatePlayerTextDraw(playerid494.000000313.000000"TimePlayed: 0h 0m 0s");
    
PlayerTextDrawBackgroundColor(playeridInfoTD[25][playerid], 255);
    
PlayerTextDrawFont(playeridInfoTD[25][playerid], 1);
    
PlayerTextDrawLetterSize(playeridInfoTD[25][playerid], 0.2800001.099999);
    
PlayerTextDrawColor(playeridInfoTD[25][playerid], 8912895);
    
PlayerTextDrawSetOutline(playeridInfoTD[25][playerid], 1);
    
PlayerTextDrawSetProportional(playeridInfoTD[25][playerid], 1);

    
InfoTD[27][playerid] = CreatePlayerTextDraw(playerid494.000000332.000000"Date: 2/25/2014");
    
PlayerTextDrawBackgroundColor(playeridInfoTD[27][playerid], 255);
    
PlayerTextDrawFont(playeridInfoTD[27][playerid], 1);
    
PlayerTextDrawLetterSize(playeridInfoTD[27][playerid], 0.2800001.099999);
    
PlayerTextDrawColor(playeridInfoTD[27][playerid], -1442775041);
    
PlayerTextDrawSetOutline(playeridInfoTD[27][playerid], 1);
    
PlayerTextDrawSetProportional(playeridInfoTD[27][playerid], 1);

    
InfoTD[28][playerid] = CreatePlayerTextDraw(playerid494.000000344.000000"Time: 11:00:00");
    
PlayerTextDrawBackgroundColor(playeridInfoTD[28][playerid], 255);
    
PlayerTextDrawFont(playeridInfoTD[28][playerid], 1);
    
PlayerTextDrawLetterSize(playeridInfoTD[28][playerid], 0.2800001.099999);
    
PlayerTextDrawColor(playeridInfoTD[28][playerid], -1442775041);
    
PlayerTextDrawSetOutline(playeridInfoTD[28][playerid], 1);
    
PlayerTextDrawSetProportional(playeridInfoTD[28][playerid], 1);

    
InfoTD[30][playerid] = CreatePlayerTextDraw(playerid494.000000362.000000"Virtul World: 0");
    
PlayerTextDrawBackgroundColor(playeridInfoTD[30][playerid], 255);
    
PlayerTextDrawFont(playeridInfoTD[30][playerid], 1);
    
PlayerTextDrawLetterSize(playeridInfoTD[30][playerid], 0.2800001.099999);
    
PlayerTextDrawColor(playeridInfoTD[30][playerid], -16727041);
    
PlayerTextDrawSetOutline(playeridInfoTD[30][playerid], 1);
    
PlayerTextDrawSetProportional(playeridInfoTD[30][playerid], 1);

    
InfoTD[31][playerid] = CreatePlayerTextDraw(playerid494.000000373.000000"Interior: 0");
    
PlayerTextDrawBackgroundColor(playeridInfoTD[31][playerid], 255);
    
PlayerTextDrawFont(playeridInfoTD[31][playerid], 1);
    
PlayerTextDrawLetterSize(playeridInfoTD[31][playerid], 0.2800001.099999);
    
PlayerTextDrawColor(playeridInfoTD[31][playerid], -16727041);
    
PlayerTextDrawSetOutline(playeridInfoTD[31][playerid], 1);
    
PlayerTextDrawSetProportional(playeridInfoTD[31][playerid], 1);

    
InfoTD[33][playerid] = CreatePlayerTextDraw(playerid494.000000391.000000"Vehicle Name: 0");
    
PlayerTextDrawBackgroundColor(playeridInfoTD[33][playerid], 255);
    
PlayerTextDrawFont(playeridInfoTD[33][playerid], 1);
    
PlayerTextDrawLetterSize(playeridInfoTD[33][playerid], 0.2800001.099999);
    
PlayerTextDrawColor(playeridInfoTD[33][playerid], 1852731135);
    
PlayerTextDrawSetOutline(playeridInfoTD[33][playerid], 1);
    
PlayerTextDrawSetProportional(playeridInfoTD[33][playerid], 1);

    
InfoTD[34][playerid] = CreatePlayerTextDraw(playerid494.000000402.000000"Vehicle Model: 0");
    
PlayerTextDrawBackgroundColor(playeridInfoTD[34][playerid], 255);
    
PlayerTextDrawFont(playeridInfoTD[34][playerid], 1);
    
PlayerTextDrawLetterSize(playeridInfoTD[34][playerid], 0.2800001.099999);
    
PlayerTextDrawColor(playeridInfoTD[34][playerid], 1852731135);
    
PlayerTextDrawSetOutline(playeridInfoTD[34][playerid], 1);
    
PlayerTextDrawSetProportional(playeridInfoTD[34][playerid], 1);

    
InfoTD[35][playerid] = CreatePlayerTextDraw(playerid494.000000413.000000"Vehicle Health: 0");
    
PlayerTextDrawBackgroundColor(playeridInfoTD[35][playerid], 255);
    
PlayerTextDrawFont(playeridInfoTD[35][playerid], 1);
    
PlayerTextDrawLetterSize(playeridInfoTD[35][playerid], 0.2800001.099999);
    
PlayerTextDrawColor(playeridInfoTD[35][playerid], 1852731135);
    
PlayerTextDrawSetOutline(playeridInfoTD[35][playerid], 1);
    
PlayerTextDrawSetProportional(playeridInfoTD[35][playerid], 1);
    return 
1;
}
//------------------------------------------------------------------------------
stock DestroyPlayerInfo(playerid)
{
    
PlayerTextDrawDestroy(playeridInfoTD[8][playerid]);
    
PlayerTextDrawDestroy(playeridInfoTD[9][playerid]);
    
PlayerTextDrawDestroy(playeridInfoTD[10][playerid]);
    
PlayerTextDrawDestroy(playeridInfoTD[11][playerid]);
    
PlayerTextDrawDestroy(playeridInfoTD[13][playerid]);
    
PlayerTextDrawDestroy(playeridInfoTD[14][playerid]);
    
PlayerTextDrawDestroy(playeridInfoTD[15][playerid]);
    
PlayerTextDrawDestroy(playeridInfoTD[16][playerid]);
    
PlayerTextDrawDestroy(playeridInfoTD[18][playerid]);
    
PlayerTextDrawDestroy(playeridInfoTD[19][playerid]);
    
PlayerTextDrawDestroy(playeridInfoTD[20][playerid]);
    
PlayerTextDrawDestroy(playeridInfoTD[21][playerid]);
    
PlayerTextDrawDestroy(playeridInfoTD[23][playerid]);
    
PlayerTextDrawDestroy(playeridInfoTD[24][playerid]);
    
PlayerTextDrawDestroy(playeridInfoTD[25][playerid]);
    
PlayerTextDrawDestroy(playeridInfoTD[27][playerid]);
    
PlayerTextDrawDestroy(playeridInfoTD[28][playerid]);
    
PlayerTextDrawDestroy(playeridInfoTD[30][playerid]);
    
PlayerTextDrawDestroy(playeridInfoTD[31][playerid]);
    
PlayerTextDrawDestroy(playeridInfoTD[33][playerid]);
    
PlayerTextDrawDestroy(playeridInfoTD[34][playerid]);
    
PlayerTextDrawDestroy(playeridInfoTD[35][playerid]);
    return 
1;
}
//------------------------------------------------------------------------------
stock ShowPlayerInfo(playerid)
{
    
PlayerTextDrawShow(playeridInfoTD[3][playerid]);
    
PlayerTextDrawShow(playeridInfoTD[36][playerid]);
    
PlayerTextDrawShow(playeridInfoTD[37][playerid]);
    
PlayerTextDrawShow(playeridInfoTD[38][playerid]);
    
PlayerTextDrawShow(playeridInfoTD[39][playerid]);
    
PlayerTextDrawShow(playeridInfoTD[40][playerid]);
    
PlayerTextDrawShow(playeridInfoTD[41][playerid]);
    
PlayerTextDrawShow(playeridInfoTD[4][playerid]);
    
PlayerTextDrawShow(playeridInfoTD[5][playerid]);
    
PlayerTextDrawShow(playeridInfoTD[6][playerid]);
    
PlayerTextDrawShow(playeridInfoTD[7][playerid]);
    
PlayerTextDrawShow(playeridInfoTD[8][playerid]);
    
PlayerTextDrawShow(playeridInfoTD[9][playerid]);
    
PlayerTextDrawShow(playeridInfoTD[10][playerid]);
    
PlayerTextDrawShow(playeridInfoTD[11][playerid]);
    
PlayerTextDrawShow(playeridInfoTD[12][playerid]);
    
PlayerTextDrawShow(playeridInfoTD[13][playerid]);
    
PlayerTextDrawShow(playeridInfoTD[14][playerid]);
    
PlayerTextDrawShow(playeridInfoTD[15][playerid]);
    
PlayerTextDrawShow(playeridInfoTD[16][playerid]);
    
PlayerTextDrawShow(playeridInfoTD[17][playerid]);
    
PlayerTextDrawShow(playeridInfoTD[18][playerid]);
    
PlayerTextDrawShow(playeridInfoTD[19][playerid]);
    
PlayerTextDrawShow(playeridInfoTD[20][playerid]);
    
PlayerTextDrawShow(playeridInfoTD[21][playerid]);
    
PlayerTextDrawShow(playeridInfoTD[22][playerid]);
    
PlayerTextDrawShow(playeridInfoTD[23][playerid]);
    
PlayerTextDrawShow(playeridInfoTD[24][playerid]);
    
PlayerTextDrawShow(playeridInfoTD[25][playerid]);
    
PlayerTextDrawShow(playeridInfoTD[26][playerid]);
    
PlayerTextDrawShow(playeridInfoTD[27][playerid]);
    
PlayerTextDrawShow(playeridInfoTD[28][playerid]);
    
PlayerTextDrawShow(playeridInfoTD[29][playerid]);
    
PlayerTextDrawShow(playeridInfoTD[30][playerid]);
    
PlayerTextDrawShow(playeridInfoTD[31][playerid]);
    
PlayerTextDrawShow(playeridInfoTD[32][playerid]);
    
PlayerTextDrawShow(playeridInfoTD[33][playerid]);
    
PlayerTextDrawShow(playeridInfoTD[34][playerid]);
    
PlayerTextDrawShow(playeridInfoTD[35][playerid]);

    return 
1;
}
//------------------------------------------------------------------------------
stock HideInfo(playerid)
{
    
PlayerTextDrawHide(playeridInfoTD[3][playerid]);
    
PlayerTextDrawHide(playeridInfoTD[4][playerid]);
    
PlayerTextDrawHide(playeridInfoTD[5][playerid]);
    
PlayerTextDrawHide(playeridInfoTD[6][playerid]);
    
PlayerTextDrawHide(playeridInfoTD[7][playerid]);
    
PlayerTextDrawHide(playeridInfoTD[36][playerid]);
    
PlayerTextDrawHide(playeridInfoTD[37][playerid]);
    
PlayerTextDrawHide(playeridInfoTD[38][playerid]);
    
PlayerTextDrawHide(playeridInfoTD[39][playerid]);
    
PlayerTextDrawHide(playeridInfoTD[40][playerid]);
    
PlayerTextDrawHide(playeridInfoTD[41][playerid]);
    
PlayerTextDrawHide(playeridInfoTD[8][playerid]);
    
PlayerTextDrawHide(playeridInfoTD[9][playerid]);
    
PlayerTextDrawHide(playeridInfoTD[10][playerid]);
    
PlayerTextDrawHide(playeridInfoTD[11][playerid]);
    
PlayerTextDrawHide(playeridInfoTD[12][playerid]);
    
PlayerTextDrawHide(playeridInfoTD[13][playerid]);
    
PlayerTextDrawHide(playeridInfoTD[14][playerid]);
    
PlayerTextDrawHide(playeridInfoTD[15][playerid]);
    
PlayerTextDrawHide(playeridInfoTD[16][playerid]);
    
PlayerTextDrawHide(playeridInfoTD[17][playerid]);
    
PlayerTextDrawHide(playeridInfoTD[18][playerid]);
    
PlayerTextDrawHide(playeridInfoTD[19][playerid]);
    
PlayerTextDrawHide(playeridInfoTD[20][playerid]);
    
PlayerTextDrawHide(playeridInfoTD[21][playerid]);
    
PlayerTextDrawHide(playeridInfoTD[22][playerid]);
    
PlayerTextDrawHide(playeridInfoTD[23][playerid]);
    
PlayerTextDrawHide(playeridInfoTD[24][playerid]);
    
PlayerTextDrawHide(playeridInfoTD[25][playerid]);
    
PlayerTextDrawHide(playeridInfoTD[26][playerid]);
    
PlayerTextDrawHide(playeridInfoTD[27][playerid]);
    
PlayerTextDrawHide(playeridInfoTD[28][playerid]);
    
PlayerTextDrawHide(playeridInfoTD[29][playerid]);
    
PlayerTextDrawHide(playeridInfoTD[30][playerid]);
    
PlayerTextDrawHide(playeridInfoTD[31][playerid]);
    
PlayerTextDrawHide(playeridInfoTD[32][playerid]);
    
PlayerTextDrawHide(playeridInfoTD[33][playerid]);
    
PlayerTextDrawHide(playeridInfoTD[34][playerid]);
    
PlayerTextDrawHide(playeridInfoTD[35][playerid]);
    return 
1;
}
//------------------------------------------------------------------------------
stock DestroyAllTextDraws(playerid)
{
    
PlayerTextDrawDestroy(playeridInfoTD[3][playerid]);
    
PlayerTextDrawDestroy(playeridInfoTD[4][playerid]);
    
PlayerTextDrawDestroy(playeridInfoTD[5][playerid]);
    
PlayerTextDrawDestroy(playeridInfoTD[6][playerid]);
    
PlayerTextDrawDestroy(playeridInfoTD[7][playerid]);
    
PlayerTextDrawDestroy(playeridInfoTD[12][playerid]);
    
PlayerTextDrawDestroy(playeridInfoTD[17][playerid]);
    
PlayerTextDrawDestroy(playeridInfoTD[22][playerid]);
    
PlayerTextDrawDestroy(playeridInfoTD[26][playerid]);
    
PlayerTextDrawDestroy(playeridInfoTD[29][playerid]);
    
PlayerTextDrawDestroy(playeridInfoTD[32][playerid]);
    for(new 
ii<GetMaxPlayers(); i++)
    {
        if(
IsPlayerConnected(i))
        {
            
DestroyPlayerInfo(i);
        }
    }
    return 
1;
}
//------------------------------------------------------------------------------
stock TotalGameTime(playerid, &h=0, &m=0, &s=0)
{
    
PlayerTimePlayed[playerid][TotalTime] = ( (gettime() - PlayerTimePlayed[playerid][ConnectTime]) + (PlayerTimePlayed[playerid][hours]*60*60) + (PlayerTimePlayed[playerid][mins]*60) + (PlayerTimePlayed[playerid][secs]) );

    
floatround(PlayerTimePlayed[playerid][TotalTime] / 3600floatround_floor);
    
floatround(PlayerTimePlayed[playerid][TotalTime] / 60,   floatround_floor) % 60;
    
floatround(PlayerTimePlayed[playerid][TotalTime] % 60,   floatround_floor);

    return 
PlayerTimePlayed[playerid][TotalTime];



PHP Code:

Credits:
     
"a_samp" //SAMP-Team
     
"Texdraws" //iPLEOmax
     
"Scripting" //HoussamMaroc 

Bugs
If have found a bug please REPORT in this thread

[FilterScript] Perks System (v: [On Update]) [DINI, ZCMD]

$
0
0
Introduction
Well i worked alot on this scrip, i have searched perk system but i didnot got any on sa:mp forum and here my new filterscript of perks system which includes some cool features which i will describe below..

Commands
*/perks (to see availabel perks)
*/setperkpoints (to set your perk points which you have to buy)
*/setperklevel (to set perk [admin command])

Perks
*Untouchable
*Juggernaut
*Recovering
*Shockwave

Uses
*Untouchable: Temporary Invurability
*Juggernaut: Super Heavy Armour
*Recovering: Regenerate Health
*Shockwave: Stun Players

Credits
Code:

/*******************************************************************
 *                                  Credits......                *
 *                                                                                                                                  *
 *                                                                                                                                  *
 * >>>>>>>>>>> Don't remove credits..............<<<<<<<<<<<      *
 *                                                                                                                                  *
 * >>>>>>>>>>>>Don't release it without my permission...<<<<<<<    *
 *                                                                                                                                  *
 * >>>>CaptainBoi: Working on it all the time.. <<<                *
 *                                                                                                                                  *
 * >>>>Morken: Helping me... <<<<                                                                  *
 *                                                                                                                                  *
 * Includes : <a_samp> | SA:MP  || <sscanf2> |  [well]idk ||<dini> | Dracoblue || <zcmd> | Zeex
 *                                                                                                                                  *
 *>>>>>>>>>>>>> Comment Below How Is It.... <<<<<<<<<<<<          *
 *                                                                                                                                  *
 ******************************************************************/

Codes
Pastebin

Bugs
*I didnot got any bug yet, if you found report it here.

[FilterScript] Simple Speedo

$
0
0
Simple Speedo


Whats This now?
Its a simple textdraw based Speedo Meter which shows your speed of your vehicle, its model information and server vehicle id.

Why did I do this?
I know, I know people are thinking there are already many speedo available on forums, why another one? Well, This has nothing special To be honest but, I was getting bored and I thought what is it that I could script this fast? I thought of Speedo so I did this. Took me around 30 mins including making textdraws.

Screens:



Here is the Source:
PHP Code:

/*======================[Simple Speedo by GTLS]=====================================*/

#include <a_samp>
#include <zcmd>

//Forwards
forward ShowPlayerSpeedo(playerid);
forward HidePlayerSpeedo(playerid);
forward SpeedoUpdate(playerid);

//TextDraw
new PlayerText:SpeedoTextDraws[7];

new 
SpeedoTimer[MAX_PLAYERS];

public 
OnFilterScriptInit()
{
    print(
"\nSpeed-o-Meter Loaded.");
    return 
1;
}

public 
OnFilterScriptExit()
{
    
printf("\nSpeed-o-Meter Unloaded.");
    return 
1;
}
new 
VehicleNames[212][] = {
   
"Landstalker",  "Bravura",  "Buffalo""Linerunner""Perennial""Sentinel",
   
"Dumper",  "Firetruck" ,  "Trashmaster" ,  "Stretch",  "Manana",  "Infernus",
   
"Voodoo""Pony",  "Mule""Cheetah""Ambulance",  "Leviathan",  "Moonbeam",
   
"Esperanto""Taxi",  "Washington",  "Bobcat",  "Mr Whoopee""BF Injection",
   
"Hunter""Premier",  "Enforcer",  "Securicar""Banshee""Predator""Bus",
   
"Rhino",  "Barracks",  "Hotknife",  "Trailer",  "Previon""Coach""Cabbie",
   
"Stallion""Rumpo""RC Bandit",  "Romero""Packer""Monster",  "Admiral",
   
"Squalo""Seasparrow""Pizzaboy""Tram""Trailer",  "Turismo""Speeder",
   
"Reefer""Tropic""Flatbed","Yankee""Caddy""Solair","Berkley's RC Van",
   
"Skimmer""PCJ-600""Faggio""Freeway""RC Baron","RC Raider","Glendale",
   
"Oceanic""Sanchez""Sparrow",  "Patriot""Quad",  "Coastguard""Dinghy",
   
"Hermes""Sabre""Rustler""ZR-350""Walton",  "Regina",  "Comet""BMX",
   
"Burrito""Camper""Marquis""Baggage""Dozer","Maverick","News Chopper",
   
"Rancher""FBI Rancher""Virgo""Greenwood","Jetmax","Hotring","Sandking",
   
"Blista Compact""Police Maverick""Boxville""Benson","Mesa","RC Goblin",
   
"Hotring Racer""Hotring Racer""Bloodring Banger""Rancher",  "Super GT",
   
"Elegant""Journey""Bike""Mountain Bike""Beagle""Cropdust""Stunt",
   
"Tanker""RoadTrain""Nebula""Majestic""Buccaneer""Shamal",  "Hydra",
   
"FCR-900","NRG-500","HPV1000","Cement Truck","Tow Truck","Fortune","Cadrona",
   
"FBI Truck""Willard""Forklift","Tractor","Combine","Feltzer","Remington",
   
"Slamvan""Blade""Freight""Streak","Vortex","Vincent","Bullet","Clover",
   
"Sadler",  "Firetruck""Hustler""Intruder""Primo""Cargobob",  "Tampa",
   
"Sunrise""Merit",  "Utility Truck",  "Nevada""Yosemite""Windsor",  "Monster",
   
"Monster","Uranus","Jester","Sultan","Stratum","Elegy","Raindance","RCTiger",
   
"Flash","Tahoma","Savanna""Bandito""Freight""Trailer""Kart""Mower",
   
"Dune""Sweeper""Broadway""Tornado""AT-400",  "DFT-30""Huntley",
   
"Stafford""BF-400""Newsvan","Tug","Trailer","Emperor","Wayfarer","Euros",
   
"Hotdog""Club""Trailer""Trailer","Andromada","Dodo","RC Cam""Launch",
   
"Police Car (LSPD)""Police Car (SFPD)","Police Car (LVPD)","Police Ranger",
   
"Picador",   "S.W.A.T. Van",  "Alpha",   "Phoenix",   "Glendale",   "Sadler",
   
"Luggage Trailer","Luggage Trailer","Stair Trailer""Boxville""Farm Plow",
   
"Utility Trailer"
};

stock GetVehicleName(vehicleid//Thanks to Tee
{
    new 
String[25];
    
format(String,sizeof(String),"%s",VehicleNames[GetVehicleModel(vehicleid) - 400]);
    return 
String;
}

LoadSpeedoTextDraws(playerid//Loading TextDraws
{
    
SpeedoTextDraws[0] = CreatePlayerTextDraw(playerid541.250000358.583343"box");
    
PlayerTextDrawLetterSize(playeridSpeedoTextDraws[0], 0.0000001.562500);
    
PlayerTextDrawTextSize(playeridSpeedoTextDraws[0], 540.0000000.000000);
    
PlayerTextDrawAlignment(playeridSpeedoTextDraws[0], 1);
    
PlayerTextDrawColor(playeridSpeedoTextDraws[0], -1);
    
PlayerTextDrawUseBox(playeridSpeedoTextDraws[0], 1);
    
PlayerTextDrawBoxColor(playeridSpeedoTextDraws[0], 8388863);
    
PlayerTextDrawSetShadow(playeridSpeedoTextDraws[0], 0);
    
PlayerTextDrawBackgroundColor(playeridSpeedoTextDraws[0], 255);
    
PlayerTextDrawFont(playeridSpeedoTextDraws[0], 1);
    
PlayerTextDrawSetProportional(playeridSpeedoTextDraws[0], 1);

    
SpeedoTextDraws[1] = CreatePlayerTextDraw(playerid545.000000375.499969"box");
    
PlayerTextDrawLetterSize(playeridSpeedoTextDraws[1], 0.000000, -0.250000);
    
PlayerTextDrawTextSize(playeridSpeedoTextDraws[1], 630.0000000.000000);
    
PlayerTextDrawAlignment(playeridSpeedoTextDraws[1], 1);
    
PlayerTextDrawColor(playeridSpeedoTextDraws[1], -1);
    
PlayerTextDrawUseBox(playeridSpeedoTextDraws[1], 1);
    
PlayerTextDrawBoxColor(playeridSpeedoTextDraws[1], 8388863);
    
PlayerTextDrawSetShadow(playeridSpeedoTextDraws[1], 0);
    
PlayerTextDrawBackgroundColor(playeridSpeedoTextDraws[1], 255);
    
PlayerTextDrawFont(playeridSpeedoTextDraws[1], 1);
    
PlayerTextDrawSetProportional(playeridSpeedoTextDraws[1], 1);

    
SpeedoTextDraws[2] = CreatePlayerTextDraw(playerid540.000000378.416687"box");
    
PlayerTextDrawLetterSize(playeridSpeedoTextDraws[2], 0.0000003.875000);
    
PlayerTextDrawTextSize(playeridSpeedoTextDraws[2], 632.0000000.000000);
    
PlayerTextDrawAlignment(playeridSpeedoTextDraws[2], 1);
    
PlayerTextDrawColor(playeridSpeedoTextDraws[2], -1);
    
PlayerTextDrawUseBox(playeridSpeedoTextDraws[2], 1);
    
PlayerTextDrawBoxColor(playeridSpeedoTextDraws[2], -252645251);
    
PlayerTextDrawSetShadow(playeridSpeedoTextDraws[2], 0);
    
PlayerTextDrawBackgroundColor(playeridSpeedoTextDraws[2], 255);
    
PlayerTextDrawFont(playeridSpeedoTextDraws[2], 1);
    
PlayerTextDrawSetProportional(playeridSpeedoTextDraws[2], 1);

    
SpeedoTextDraws[3] = CreatePlayerTextDraw(playerid538.750000376.083343"");
    
PlayerTextDrawTextSize(playeridSpeedoTextDraws[3], 43.00000036.000000);
    
PlayerTextDrawAlignment(playeridSpeedoTextDraws[3], 1);
    
PlayerTextDrawColor(playeridSpeedoTextDraws[3], -1);
    
PlayerTextDrawSetShadow(playeridSpeedoTextDraws[3], 0);
    
PlayerTextDrawBackgroundColor(playeridSpeedoTextDraws[3], -252645246);
    
PlayerTextDrawFont(playeridSpeedoTextDraws[3], 5);
    
PlayerTextDrawSetProportional(playeridSpeedoTextDraws[3], 0);
    
PlayerTextDrawSetPreviewModel(playeridSpeedoTextDraws[3], 411);
    
PlayerTextDrawSetPreviewRot(playeridSpeedoTextDraws[3], 0.0000000.00000060.0000001.000000);
    
PlayerTextDrawSetPreviewVehCol(playeridSpeedoTextDraws[3], 31);

    
SpeedoTextDraws[4] = CreatePlayerTextDraw(playerid591.250000376.666625"Infernus");
    
PlayerTextDrawLetterSize(playeridSpeedoTextDraws[4], 0.2343741.074999);
    
PlayerTextDrawTextSize(playeridSpeedoTextDraws[4], -44.0000000.000000);
    
PlayerTextDrawAlignment(playeridSpeedoTextDraws[4], 1);
    
PlayerTextDrawColor(playeridSpeedoTextDraws[4], -16776961);
    
PlayerTextDrawSetShadow(playeridSpeedoTextDraws[4], 0);
    
PlayerTextDrawBackgroundColor(playeridSpeedoTextDraws[4], 255);
    
PlayerTextDrawFont(playeridSpeedoTextDraws[4], 1);
    
PlayerTextDrawSetProportional(playeridSpeedoTextDraws[4], 1);

    
SpeedoTextDraws[5] = CreatePlayerTextDraw(playerid603.125000393.583435"65");
    
PlayerTextDrawLetterSize(playeridSpeedoTextDraws[5], 0.2587491.104165);
    
PlayerTextDrawAlignment(playeridSpeedoTextDraws[5], 1);
    
PlayerTextDrawColor(playeridSpeedoTextDraws[5], 41215);
    
PlayerTextDrawSetShadow(playeridSpeedoTextDraws[5], 0);
    
PlayerTextDrawBackgroundColor(playeridSpeedoTextDraws[5], 255);
    
PlayerTextDrawFont(playeridSpeedoTextDraws[5], 1);
    
PlayerTextDrawSetProportional(playeridSpeedoTextDraws[5], 1);

    
SpeedoTextDraws[6] = CreatePlayerTextDraw(playerid560.000000358.583343"0 Mph");
    
PlayerTextDrawLetterSize(playeridSpeedoTextDraws[6], 0.3793751.401666);
    
PlayerTextDrawTextSize(playeridSpeedoTextDraws[6], 655.0000000.000000);
    
PlayerTextDrawAlignment(playeridSpeedoTextDraws[6], 1);
    
PlayerTextDrawColor(playeridSpeedoTextDraws[6], -65281);
    
PlayerTextDrawSetShadow(playeridSpeedoTextDraws[6], 0);
    
PlayerTextDrawBackgroundColor(playeridSpeedoTextDraws[6], 255);
    
PlayerTextDrawFont(playeridSpeedoTextDraws[6], 2);
    
PlayerTextDrawSetProportional(playeridSpeedoTextDraws[6], 1);

}
public 
OnPlayerConnect(playerid)
{
    
SetPVarInt(playerid"SpeedoON"1);
    
SendClientMessage(playerid0xFF00AAFF,"Speedo Enabled. You can use /togspeedo to disable/re-enable it.");
    
LoadSpeedoTextDraws(playerid);
    return 
1;
}

public 
ShowPlayerSpeedo(playerid)
{
    new 
vehname[16],vehid GetPlayerVehicleID(playerid), idstr[4], vehmodel GetVehicleModel(vehid);
    
    
SpeedoTimer[playerid] = SetTimerEx("SpeedoUpdate",1000,1,"i",playerid); //Timer for Updating Speed.

    
    
PlayerTextDrawSetPreviewModel(playeridSpeedoTextDraws[3], vehmodel); //Setting the PreviewModel
    
format(vehnamesizeof(vehname), "%s"GetVehicleName(vehid));
    
format(idstrsizeof(idstr), "%d"vehid);
    
PlayerTextDrawSetString(playeridSpeedoTextDraws[4], vehname); //Setting Vehicle Name
    
PlayerTextDrawSetString(playeridSpeedoTextDraws[5], idstr); //Setting Vehicle ID

    
PlayerTextDrawShow(playeridSpeedoTextDraws[0]);
    
PlayerTextDrawShow(playeridSpeedoTextDraws[1]);
    
PlayerTextDrawShow(playeridSpeedoTextDraws[2]);
    
PlayerTextDrawShow(playeridSpeedoTextDraws[3]);
    
PlayerTextDrawShow(playeridSpeedoTextDraws[4]);
    
PlayerTextDrawShow(playeridSpeedoTextDraws[5]);
    
PlayerTextDrawShow(playeridSpeedoTextDraws[6]);
    return 
1;
}

public 
HidePlayerSpeedo(playerid)
{
    
KillTimer(SpeedoTimer[playerid]); //Killing of Timer
    
    
PlayerTextDrawHide(playeridSpeedoTextDraws[0]);
    
PlayerTextDrawHide(playeridSpeedoTextDraws[1]);
    
PlayerTextDrawHide(playeridSpeedoTextDraws[2]);
    
PlayerTextDrawHide(playeridSpeedoTextDraws[3]);
    
PlayerTextDrawHide(playeridSpeedoTextDraws[4]);
    
PlayerTextDrawHide(playeridSpeedoTextDraws[5]);
    
PlayerTextDrawHide(playeridSpeedoTextDraws[6]);
    return 
1;
}


stock GetVehicleSpeed(vehicleid//Credits someone on SAMP Forums forgot the name
{
    new 
Float:xFloat:yFloat:zvel;

    
GetVehicleVelocity(vehicleidxyz);

    
//vel = floatround( floatsqroot( x*x + y*y + z*z ) * 180 );            // KM/H
    
vel floatroundfloatsqrootx*y*z*) * 180 1.60934); // MPH (Comment this line if you want speed in KM

    
return vel;
}

public 
SpeedoUpdate(playerid)
{
    new 
pSpeed[8], vehid GetPlayerVehicleID(playerid);
    
format(pSpeedsizeof(pSpeed), "%i MPH",GetVehicleSpeed(vehid)); //Mph
//    format(pSpeed, sizeof(pSpeed), "%i KMpH",GetVehicleSpeed(vehid)); //KmpH
    
PlayerTextDrawSetString(playeridSpeedoTextDraws[6], pSpeed);
    return 
1;
}

public 
OnPlayerDisconnect(playeridreason)
{
    
KillTimer(SpeedoTimer[playerid]); //Just a Precaution, not needed.
    
return 1;
}

CMD:togspeedo(playeridparams[])
{
    if(
GetPVarInt(playerid"SpeedoON") == 0)
    {
        
SendClientMessage(playerid, -1"You have enabled the Speedo.");
        
SetPVarInt(playerid"SpeedoON"1);
         if(
IsPlayerInAnyVehicle(playerid)) ShowPlayerSpeedo(playerid);
     }
     else
     {
        
SendClientMessage(playerid, -1"You have disabled the Speedo.");
        
SetPVarInt(playerid"SpeedoON"0);
        
HidePlayerSpeedo(playerid);
     }

    return 
1;
}
public 
OnPlayerEnterVehicle(playeridvehicleidispassenger)
{
    if(
GetPVarInt(playerid"SpeedoON") == 0SendClientMessage(playerid, -1"You have disabled Speedo. Use /togspeedo to tog back in.");
    if(
GetPVarInt(playerid"SpeedoON") == 1)
        
ShowPlayerSpeedo(playerid);
    return 
1;
}

public 
OnPlayerExitVehicle(playeridvehicleid)
{
    return 
1;
}

public 
OnPlayerStateChange(playeridnewstateoldstate)
{
    if(
newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER)
    {
        if(
GetPVarInt(playerid"SpeedoON") == 1)
                
ShowPlayerSpeedo(playerid);
    }

    if(
oldstate == PLAYER_STATE_DRIVER || oldstate == PLAYER_STATE_PASSENGER && newstate == PLAYER_STATE_ONFOOT)
    {
        
HidePlayerSpeedo(playerid);
    }
    return 
1;


How to Use?
Well, Here are the steps if you dont know how to start.
  1. Copy this code into a blank .pwn file.
  2. You will need zcmd include to compile this. If you use something else, you can modify the command.
  3. Now, this shows Speed in MpH and Kmph what ever you want. If you want to show speed in KMph, comment the line inside GetVehicleSpeed Function and Uncomment a line inside ShowPlayerSpeedo().
  4. Once its compiled, add it to your filterscripts folder and inside your server.cfg
    Code:

    filterscripts Speedo
    .
  5. Thats it! Enter a Vehicle you want and Speedo will work automatically.

Note: This may or may not be 100% Accurate Speed of a vehicle.

Credits:
Kalcor - SAMP
ZCMD - Zeex
adri1 - I used his TextDraw editor.
Credits for Functions are given inside the code.

If you have any problem running this, ask me here. :)

[FilterScript] Dynamic Gas station system.

$
0
0
Just a simple Dynamic Gas Station creation,Just follow the next steps carefully . . .
If you're a new scripter i suggest you ignoring it

Commands:
/creategasstation [Exterior & Complete]
/deletegasstation [ID]

Code:

#define MAX_GSTATION 500 //Use any amount you want instead of '500'
Gstation text labels
Code:

new Text3D:GSTATION[MAX_GSTATION];
Code:

new SpawnedGSTATION;
Scroll down, try finding any 'stock' function and paste this text
Code:

forward SaveGSTATIONs();
stock SaveGSTATIONs()
{
    for(new i = 0; i < MAX_GSTATION; i++)
    {
                SaveGSTATION(i);
    }
        return 1;
}
stock SaveGSTATION(i)
{
    new FileName[128];
    format(FileName, sizeof(FileName), "GSTATIONs/GSTATION_%d.ini", i);
    if(dini_Exists(FileName))
    {
        dini_IntSet(FileName, "PickupID", GSTATIONInfo[i][gstationPickupID]);
        dini_FloatSet(FileName, "X", GSTATIONInfo[i][gstationX]);
        dini_FloatSet(FileName, "Y", GSTATIONInfo[i][gstationY]);
        dini_FloatSet(FileName, "Z", GSTATIONInfo[i][gstationZ]);
                  printf( "[system] Gas Station %d saved.", i);
    }
        return 1;
}


Paste the next text in your 'pInfo' or whatever you're using, just try searching for ' pLevel, ' in top of your page and paste them.
Code:

GSTATIONID,
GSTATIONExterior,



Search for any 'enum' text and paste this:
Code:

enum gstationInfo
{
        gstationPickupID,
        Float:gstationX,
        Float:gstationY,
        Float:gstationZ,
};
new GSTATIONInfo[MAX_GSTATION][gstationInfo];

Also use this stock function to load your Gas Station when hosting the server.
Code:

stock LoadGSTATION()
{
        new FileName[128], string[256];
    for(new i = 0; i < MAX_GSTATION; i++)
    {
        format(FileName, sizeof(FileName), "GSTATIONs/GSTATION_%d.ini", i);
        if(dini_Exists(FileName))
        {
            GSTATIONInfo[i][gstationPickupID] = dini_Int(FileName, "PickupID" );
            GSTATIONInfo[i][gstationX] = dini_Float(FileName, "X" );
            GSTATIONInfo[i][gstationY] = dini_Float(FileName, "Y" );
            GSTATIONInfo[i][gstationZ] = dini_Float(FileName, "Z" );
            GSTATIONInfo[i][gstationPickupID] = CreateDynamicPickup(1239, 23, GSTATIONInfo[i][gstationX], GSTATIONInfo[i][gstationY], GSTATIONInfo[i][gstationZ]);
                        printf( "[system] Gas Station %d spawned.", i);
            SpawnedGSTATION++;
                        format(string, sizeof(string), "{01FCFF}[Gas Station]{F0CC00}\nYou can refill your vehicle here\nGas Station ID: %d\n[/refuel]", i);
                        GSTATION[i] = CreateDynamic3DTextLabel(string, COLOR_DCHAT, GSTATIONInfo[i][gstationX], GSTATIONInfo[i][gstationY], GSTATIONInfo[i][gstationZ]+0.75,10.0,INVALID_PLAYER_ID,INVALID_VEHICLE_ID,0,0,-1,-1, 100.0);
            }
    }
        return 1;
}

THEN ADD THIS in your OnGameModinit to load them
Code:

LoadGSTATION();


Code:

public OnPlayerRegister(playerid, password[])
{
        if(IsPlayerConnected(playerid))
        {
                        new string3[32];
                        new PlayerName3[MAX_PLAYER_NAME];
                        GetPlayerName(playerid, PlayerName3, sizeof(PlayerName3));
                        format(string3, sizeof(string3), "%s.ini", PlayerName3);
                        new File: hFile = fopen(string3, io_write);
                        if(hFile)
                        {
                            new var[32];
                                    format(var, 32, "GSTATIONExterior=%d\n", PlayerInfo[playerid][GSTATIONExterior]);fwrite(hFile, var);
                                    format(var, 32, "GSTATIONID=%d\n",PlayerInfo[playerid][GSTATIONID]);fwrite(hFile, var);
                        }
        }
        return 1;
}



Code:

public OnPlayerSave(playerid)
{
        if(IsPlayerConnected(playerid))
        {
            if(IsPlayerNPC(playerid)) return 1;
                if(gPlayerLogged[playerid] != 0 && gPlayerSpawned[playerid] == 1)
                {
                        new string3[32];
                        new PlayerName3[MAX_PLAYER_NAME];

                        GetPlayerName(playerid, PlayerName3, sizeof(PlayerName3));
                        format(string3, sizeof(string3), "%s.ini", PlayerName3);
                        new File: hFile = fopen(string3, io_write);
                        if(hFile)
                        {
                                new var[64];
format(var, 32, "GSTATIONExterior=%d\n", PlayerInfo[playerid][GSTATIONExterior]);fwrite(hFile, var);
                        }
                }
        }
        return 1;
}


Code:

public OnPlayerLogin(playerid,password[])
{
        new tmp2[256];
    new string2[128];
        format(string2, sizeof(string2), "%s.ini", PlayerName(playerid));
        new File: UserFile = fopen(string2, io_read);
        if ( UserFile )
    {
        new PassData[128];
            new keytmp[256], valtmp[256];
            fread( UserFile , PassData , sizeof( PassData ) );
            keytmp = ini_GetKey( PassData );
            if( strcmp( keytmp , "Key" , true ) == 0 )
                {
                        valtmp = ini_GetValue( PassData );
                        strmid(PlayerInfo[playerid][pKey], valtmp, 0, strlen(valtmp)-1, 255);
                }
                if(strcmp(PlayerInfo[playerid][pKey],password, true ) == 0 )
        {
                    new key[ 256 ] , val[ 256 ];
                        new Data[ 256 ];
                        while ( fread( UserFile , Data , sizeof( Data ) ) )
                        {
                            key = ini_GetKey( Data );
if( strcmp( key , "GSTATIONExterior" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][GSTATIONExterior] = strvalEx( val ); }
if( strcmp( key , "GSTATIONID" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][GSTATIONID] = strvalEx( val ); }
              }
                        fclose(UserFile);
        }
      }
    return 1;
}

then add this
Code:

public OnPlayerCommandText(playerid, cmdtext[])
{
dcmd(creategstation, 14, cmdtext);
dcmd(deletegstation, 14, cmdtext);
}

Code:

public GameModeInitExitFunc()
{
SaveGSTATIONs();
return 1;
}


(Choose any location you like In-Game and use/creategasstation Exterior ) then (/creategasstation complete)
You are able whenever you want to delete it using (/deletegasstation)
Code:

dcmd_creategasstation(playerid, params[])
{
        new Usage[128], string[128];
        if( sscanf( params, "s", Usage))
        {
            if( PlayerInfo[playerid][pAdmin] >= 3)
            {
                        SendClientMessage(playerid, COLOR_WHITE, "USAGE: /creategasstation [name]" );
                        SendClientMessage(playerid, COLOR_GREY, "Available Names: Exterior and Complete" );
                }
        }
        else
        {
            if(PlayerInfo[playerid][pAdmin] >= 3)
            {
                    if(strcmp(Usage, "exterior", true) == 0)
                    {
                                PlayerInfo[playerid][GSTATIONExterior]++;
                            GetPlayerPos( playerid, PlayerInfo[playerid][dExtX], PlayerInfo[playerid][dExtY], PlayerInfo[playerid][dExtZ]);
                            GetPlayerFacingAngle(playerid, PlayerInfo[playerid][dAngle]);
                            format( string, sizeof( string ), "Exterior set! (X: %f, Y: %f, Z: %f, A: %f).", PlayerInfo[playerid][dExtX], PlayerInfo[playerid][dExtY], PlayerInfo[playerid][dExtZ], PlayerInfo[playerid][dAngle]);
                              SendClientMessage( playerid, COLOR_WHITE, string);
                          }
                      if(strcmp(Usage, "complete", true) == 0)
                      {
                              if(PlayerInfo[playerid][GSTATIONExterior] > 0)
                        {
                                        new NewGSTATIONID = SpawnedGSTATION+1;
                                  if(NewGSTATIONID >= MAX_GSTATION)
                                  {
                                    SendClientMessage( playerid, COLOR_WHITE, "Too many Gas Stations are currently spawned!");
                            }
                            format( string, sizeof( string ), "GSTATIONs/GSTATION_%d.ini", NewGSTATIONID);
                            if(dini_Exists(string))
                            {
                                                SpawnedGSTATION++;
                                    format( string, sizeof( string ), "Gas Station- (ID: %d) already exist!", NewGSTATIONID);
                                      SendClientMessage( playerid, COLOR_GREY, string);
                                    SendClientMessage( playerid, COLOR_YELLOW, "Please try again by typing /creategasstation complete" );
                              }
                              else
                              {
                                                GSTATIONInfo[NewGSTATIONID][gstationX] = PlayerInfo[playerid][dExtX];
                                                GSTATIONInfo[NewGSTATIONID][gstationY] = PlayerInfo[playerid][dExtY];
                                                GSTATIONInfo[NewGSTATIONID][gstationZ] = PlayerInfo[playerid][dExtZ];
                                                dini_Create(string);
                                          dini_FloatSet( string, "X", GSTATIONInfo[NewGSTATIONID][gstationX]);
                                    dini_FloatSet( string, "Y", GSTATIONInfo[NewGSTATIONID][gstationY]);
                                    dini_FloatSet( string, "Z", GSTATIONInfo[NewGSTATIONID][gstationZ]);
                                    PlayerInfo[playerid][GSTATIONExterior]--;
                                    SpawnedGSTATION++;
                                    GSTATIONInfo[NewGSTATIONID][gstationPickupID] = CreateDynamicPickup(1239, 23, GSTATIONInfo[NewGSTATIONID][gstationX], GSTATIONInfo[NewGSTATIONID][gstationY], GSTATIONInfo[NewGSTATIONID][gstationZ]);
                                    format(string, sizeof(string), "{01FCFF}[Gas Station]{F0CC00}\nYou can refill your vehicle here\nGas Station ID: %d\n[/refuel]", NewGSTATIONID);
                                                GSTATION[NewGSTATIONID] = CreateDynamic3DTextLabel(string, COLOR_DCHAT, GSTATIONInfo[NewGSTATIONID][gstationX], GSTATIONInfo[N        if(!fexist( string) )
                {
                    SendClientMessage( playerid, COLOR_GREY, "Invalid Gas-Station ID!" );
                    return 1;
                }
                else
                {
                                GSTATIONInfo[id][gstationX] = 0;
                                GSTATIONInfo[id][gstationY] = 0;
                                GSTATIONInfo[id][gstationZ] = 0;
                            DestroyDynamicPickup(GSTATIONInfo[id][gstationPickupID]);
                            DestroyDynamic3DTextLabel(GSTATION[id]);
                                format(string, sizeof(string), "You have deleted the Gas Station (ID: %d).", id);
                                  SendClientMessage( playerid, COLOR_WHITE, string);
                              format(FileName, sizeof(FileName), "GSTATIONs/GSTATION_%d.ini", id);
                        dini_Remove(FileName);
                        SpawnedGSTATION--;
                }
                }
        }
        return 1;
}

Make sure to add 'GSTATIONs' file in your scriptfiles file.
Viewing all 595 articles
Browse latest View live


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