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
}
forward BrinksFinish(playerid);
public BrinksFinish(playerid)
{
if(BrinksJob[playerid] == 0){ return 1; }
GivePlayerMoney(playerid,200);
SendClientMessage(playerid,COLOR_YELLOW,"* You have been payed for your job! - $200");
BrinksJob[playerid] = 0;
return 1;
}
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)) == 428)
{
BrinksJob[playerid] = 1;
SendClientMessage(playerid,COLOR_LIGHTBLUE,"* Go in the Checkpoint to deliver the money");
SetPlayerCheckpoint(playerid,2297.3889,-15.1795,26.4521,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)) == 428)
{
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)) == 428)
{
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/wASSr5nr
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
}
forward BrinksFinish(playerid);
public BrinksFinish(playerid)
{
if(BrinksJob[playerid] == 0){ return 1; }
GivePlayerMoney(playerid,200);
SendClientMessage(playerid,COLOR_YELLOW,"* You have been payed for your job! - $200");
BrinksJob[playerid] = 0;
return 1;
}
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)) == 428)
{
BrinksJob[playerid] = 1;
SendClientMessage(playerid,COLOR_LIGHTBLUE,"* Go in the Checkpoint to deliver the money");
SetPlayerCheckpoint(playerid,2297.3889,-15.1795,26.4521,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)) == 428)
{
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)) == 428)
{
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/wASSr5nr