[FilterScript] [FilterScripts] Brinks Job
#1

This is my first post on this forum and I hope this script will like you
The Codes of this Job

/* BRinks job this job is for roleplay*/
#include <a_samp>
#include <streamer>

#define COLOR_VIP 0xC93CCE00
#define COLOR_BLUE 0x0000A0C8
#define COLOR_ORANGE 0xFF8000FF
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_FORSTATS 0xFFFF91AA
#define COLOR_HOUSEGREEN 0x00E605AA
#define COLOR_GREEN 0x33AA33AA
#define COLOR_RED 0xF30303AA
#define COLOR_KALTER 0x33BBFFAA
#define COLOR_LIGHTGREEN 0x9ACD32AA
#define COLOR_LIME 0x00FF00FF
#define COLOR_CYAN 0x40FFFFFF
#define COLOR_PURPLE 0xC2A2DAAA
#define COLOR_BLACK 0x000000AA
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_FADE1 0xE6E6E6E6
#define COLOR_FADE2 0xC8C8C8C8
#define COLOR_FADE3 0xAAAAAAAA
#define COLOR_FADE4 0x8C8C8C8C
#define COLOR_FADE5 0x6E6E6E6E
#define COLOR_LIGHTRED 0xFF6347AA
#define COLOR_NEWS 0xFFA500AA
#define COLOR_LIGHTBLUE 0x33CCFFAA

new BrinksJob[256];

public OnFilterScriptInit()
{
CreateDynamic3DTextLabel("Brinks Job\n/getmoney to start the job",COLOR_LIGHTBLUE,1546.7836,-1009.7602,23.9140+0.6,10.0); // Pickup Point (LA)
CreatePickup(1247, 23, 1528.082397, -1677.978637, 5.890625, -1); //
//trucks
AddStaticVehicle(428,1542.6086,-1024.1860,24.0305,343.6036,1,3); // labrinks
AddStaticVehicle(428,1546.9899,-1025.3708,24.0302,343.7522,1,3); // labrinks
AddStaticVehicle(428,1551.1394,-1027.1367,24.0295,344.5570,1,3); // labrinks
AddStaticVehicle(428,1558.3331,-1012.1339,24.0309,181.2181,1,3); // labrinks
AddStaticVehicle(428,1562.7538,-1011.7735,24.0315,181.9679,1,3); // labrinks
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/getmoney", cmdtext, true, 10) == 0)
{
if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
if(!IsPlayerInRangeOfPoint(playerid,5.0,2297.3889,-15.1795,26.4521))
{
SendClientMessage(playerid, COLOR_WHITE, " You are not in the place where you take the money!");
SetPlayerCheckpoint(playerid,2297.3889,-15.1795,26.4521,5);
return 1;
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 42
{
BrinksJob[playerid] = 1;
SendClientMessage(playerid,COLOR_LIGHTBLUE,"* Go in the Checkpoint to deliver the money");
SetPlayerCheckpoint(playerid,1528.082397, -1677.978637, 5.890625,5);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_RED,"You have to be in a brinks truck to start the job");
}
}
}
return 0;
}
public OnPlayerEnterCheckpoint(playerid)
{
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 42
{
DisablePlayerCheckpoint(playerid);
GivePlayerMoney(playerid,2000);
SendClientMessage(playerid,COLOR_YELLOW,"* You successfully transported and you get 2000$!");
}
return 1;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 42
{
SendClientMessage(playerid, COLOR_RED, "* You can start the brinks job by using /getmoney");
}
return 0;
}
forward BackToTruck(playerid);
public BackToTruck(playerid)
{
BrinksJob[playerid] = 0;
SendClientMessage(playerid, -1, "You have lose the money,to start again,/getmoney in the checkpoint");
SetPlayerCheckpoint(playerid,2297.3889,-15.1795,26.4521,5);
}

public OnPlayerExitVehicle(playerid, vehicleid)
{
if(BrinksJob[playerid] == 1)
{
SendClientMessage(playerid, COLOR_RED, "* You have ten seconds to back in your trucks,or you will lose money!");
SetTimerEx("BackToTruck", 10000, false, "i", playerid);
}
}


The link in pastebin:https://pastebin.com/kUT0D5WJ
Reply
#2

Or you can download in my link https://www.mediafire.com/?743vrqul998cpu9
Thank you
Reply
#3

To add content, edit your main post,
the representation is terrible, and omg that color is blinding my eyes, I also recommend using a command processor, (Y_CMD, iZCMD...etc)

Use pastbine or github
or make use of [PHP] and [CODE] wrappers
Reply
#4

THank you :d
Reply
#5

I madh je shqipee
Reply
#6

nice and cool good job
Reply
#7

Thanks Petrit [MY SON]
Reply
#8

Thank for the comment,im so happy
I made a small mistake,but now i will repair in 1minute
Reply
#9

Good job
Reply
#10

My Friend Do not pollute the Topico use Pastebin and post the link here just to see this topic or the willingness to read.

@Edit

Another tip is to use ZCMD or YCMD almost anyone nowadays uses Strcmp but of course only use ZCMD or YCMD if you want others to use your FS I would not use.

Pastebin:https://pastebin.com

WARNING: This was a constructive criticism to improve your FS
Reply
#11

Totally messed thread, no images, why would someone download it?
Reply
#12

Quote:
Originally Posted by PetritImeri
View Post
I madh je shqipee
No politics hete,plz
And,yeah
Kosovo is a heart of the Serbia
And enough with politics
Reply
#13

Quote:
Originally Posted by Misomir
View Post
No politics hete,plz
And,yeah
Kosovo is a heart of the Serbia
And enough with politics
A faggot remains a faggot till he dies.
Reply
#14

Engoo "MARSHALL HERE"
_________
You are Boss(Clay)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)