Changing Job Pays
#1

Hello, Basically, i have A-RP Script, American roleplay made by Roy Nash and iRage, and when you do the trucker job, with overload, you get 6000$. I need to change that, can anyone help me?
Reply
#2

Show the code.
Reply
#3

Do we meant to guess your code?
Reply
#4

What code? It's like 55k lines long.. Pastebin wont take it
Reply
#5

The trucking job one.
Reply
#6

I dont know where it is -_-
Reply
#7

Quote:
Originally Posted by Jigsaw123
Посмотреть сообщение
What code? It's like 55k lines long.. Pastebin wont take it
When you get the 6K, copy the line about the 6K and search it in the script (CTRL+F)

Then post it here.
Reply
#8

Код:
CMD:deliverpackages(playerid, params[])
{
	new string[128], packages, oldj, newj, price;
	// L1: 0 | L2: 100 | L3: 300 | L4: 700 | L5: 1200
	if(PlayerInfo[playerid][pJobSkill][JOB_TRUCKER] < 100) packages = 15;
	else if(PlayerInfo[playerid][pJobSkill][JOB_TRUCKER] < 300) packages = 25;
	else if(PlayerInfo[playerid][pJobSkill][JOB_TRUCKER] < 700) packages = 40;
	else if(PlayerInfo[playerid][pJobSkill][JOB_TRUCKER] < 1200) packages = 60;
	else if(PlayerInfo[playerid][pJobSkill][JOB_TRUCKER] >= 1200) packages = 70;
   	if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command.");
   	if(PlayerInfo[playerid][pJob] != JOB_TRUCKER && PlayerInfo[playerid][pVIPJob] != JOB_TRUCKER) return SendClientMessage(playerid, COLOR_GREY, "You are not a Trucker.");
	if(!IsPlayerInAnyVehicle(playerid) || !IsTruckerVehicle(GetPlayerVehicleID(playerid)) || !IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid))) return SendClientMessage(playerid, COLOR_GREY, "You are not in a Trucker vehicle or you have no trailer attached.");
   	if(!PlayerInfo[playerid][pTPackages]) return SendClientMessage(playerid, COLOR_GREY, "You have no packages on you.");
   	if(PlayerInfo[playerid][pDeliverTruck] != GetPlayerVehicleID(playerid)) return SendClientMessage(playerid, COLOR_GREY, "This is not the vehicle that your packages were loaded to.");
   	if(!IsPlayerInRangeOfPoint(playerid, 5, 1025.9645,2110.4167,10.8203)) return SendClientMessage(playerid, COLOR_GREY, "You are not near a packages dropoff.");
	if(Products >= 20000) return SendClientMessage(playerid, COLOR_GREY, "The dropoff can't hold anymore products at the moment.");
	oldj = strval(RPJL(playerid,JOB_TRUCKER));
	PlayerInfo[playerid][pJobSkill][JOB_TRUCKER] ++;
	Products += packages;
	if(Products > 20000) Products = 20000;
	newj = strval(RPJL(playerid,JOB_TRUCKER));
	if(PlayerInfo[playerid][pTPackages] == 1) {price = packages*200;}
	else if(PlayerInfo[playerid][pTPackages] == 2) {price = packages*400;}
    GiveZaiatMoney(playerid, price);
    PlayerInfo[playerid][pDeliverTruck] = -1;
    TruckPackages[GetPlayerVehicleID(playerid)] = -1;
    format(string, sizeof(string), "* %s has delivered %d products packages to the dropoff.", RPN(playerid), PlayerInfo[playerid][pTPackages]*5);
	SendNearbyMessage(playerid, 15, string, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE);
	format(string, sizeof(string), "* You have delivered {FF6347}%d products{33CCFF} packages for {FF6347}$%d{33CCFF}", PlayerInfo[playerid][pTPackages]*5, price);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
    if(oldj < newj)
	{
	    format(string, sizeof(string), "** Your Trucker level is now %d, you can now carry %d packages. **", newj, newj*5);
		SendClientMessage(playerid, COLOR_YELLOW, string);
	}
	format(string, sizeof(string), "Packages Dropoff\n{FFFF00}/deliverpackages to deliver crates\nAvailable Products: %d/20000", Products);
	UpdateDynamic3DTextLabelText(ProductsText, COLOR_RED, string);
	PlayerInfo[playerid][pTPackages] = 0;
	return 1;
}
Reply
#9

Change the indicated line
pawn Код:
CMD:deliverpackages(playerid, params[])
{
    new string[128], packages, oldj, newj, price;
    // L1: 0 | L2: 100 | L3: 300 | L4: 700 | L5: 1200
    if(PlayerInfo[playerid][pJobSkill][JOB_TRUCKER] < 100) packages = 15;
    else if(PlayerInfo[playerid][pJobSkill][JOB_TRUCKER] < 300) packages = 25;
    else if(PlayerInfo[playerid][pJobSkill][JOB_TRUCKER] < 700) packages = 40;
    else if(PlayerInfo[playerid][pJobSkill][JOB_TRUCKER] < 1200) packages = 60;
    else if(PlayerInfo[playerid][pJobSkill][JOB_TRUCKER] >= 1200) packages = 70;
    if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command.");
    if(PlayerInfo[playerid][pJob] != JOB_TRUCKER && PlayerInfo[playerid][pVIPJob] != JOB_TRUCKER) return SendClientMessage(playerid, COLOR_GREY, "You are not a Trucker.");
    if(!IsPlayerInAnyVehicle(playerid) || !IsTruckerVehicle(GetPlayerVehicleID(playerid)) || !IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid))) return SendClientMessage(playerid, COLOR_GREY, "You are not in a Trucker vehicle or you have no trailer attached.");
    if(!PlayerInfo[playerid][pTPackages]) return SendClientMessage(playerid, COLOR_GREY, "You have no packages on you.");
    if(PlayerInfo[playerid][pDeliverTruck] != GetPlayerVehicleID(playerid)) return SendClientMessage(playerid, COLOR_GREY, "This is not the vehicle that your packages were loaded to.");
    if(!IsPlayerInRangeOfPoint(playerid, 5, 1025.9645,2110.4167,10.8203)) return SendClientMessage(playerid, COLOR_GREY, "You are not near a packages dropoff.");
    if(Products >= 20000) return SendClientMessage(playerid, COLOR_GREY, "The dropoff can't hold anymore products at the moment.");
    oldj = strval(RPJL(playerid,JOB_TRUCKER));
    PlayerInfo[playerid][pJobSkill][JOB_TRUCKER] ++;
    Products += packages;
    if(Products > 20000) Products = 20000;
    newj = strval(RPJL(playerid,JOB_TRUCKER));
    if(PlayerInfo[playerid][pTPackages] == 1) {price = packages*200;} // change can be done here and
    else if(PlayerInfo[playerid][pTPackages] == 2) {price = packages*400;} // here
    GiveZaiatMoney(playerid, price);
    PlayerInfo[playerid][pDeliverTruck] = -1;
    TruckPackages[GetPlayerVehicleID(playerid)] = -1;
    format(string, sizeof(string), "* %s has delivered %d products packages to the dropoff.", RPN(playerid), PlayerInfo[playerid][pTPackages]*5);
    SendNearbyMessage(playerid, 15, string, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE);
    format(string, sizeof(string), "* You have delivered {FF6347}%d products{33CCFF} packages for {FF6347}$%d{33CCFF}", PlayerInfo[playerid][pTPackages]*5, price);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
    if(oldj < newj)
    {
        format(string, sizeof(string), "** Your Trucker level is now %d, you can now carry %d packages. **", newj, newj*5);
        SendClientMessage(playerid, COLOR_YELLOW, string);
    }
    format(string, sizeof(string), "Packages Dropoff\n{FFFF00}/deliverpackages to deliver crates\nAvailable Products: %d/20000", Products);
    UpdateDynamic3DTextLabelText(ProductsText, COLOR_RED, string);
    PlayerInfo[playerid][pTPackages] = 0;
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)