FS robbing system making more cash.
#1

Hello and i had a question i downloaded an FS about robbing so i found but it is when you had a gun like 31(M4)
you only got 5100 dollars every time how do i can make it difrend and with no code
here is de FS
https://sampforum.blast.hk/showthread.php?tid=324202

Here in code
Код:
#include <a_samp>
#include <zcmd>

#define COLOR_LOCALMSG 0xEC5413AA
#define COLOR_BLUE 0x0000FFAA
#define COLOR_AQUA 0x00FFFFAA
#define COLOR_ADMINCMD 0xF97804FF
#define COLOR_ADMINDUTY 0x007E96F6
#define COLOR_NOTLOGGED 0x00000000
#define COLOR_GRAD1 0xB4B5B7FF
#define COLOR_GRAD2 0xBFC0C2FF
#define	COLOR_MONEYBAR 0x005800FF
#define COLOR_GRAD3 0xCBCCCEFF
#define COLOR_GRAD4 0xD8D8D8FF
#define COLOR_GRAD5 0xE3E3E3FF
#define COLOR_GRAD6 0xF0F0F0FF
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_GREEN 0x33AA33AA
#define COLOR_DARKRED 0xCD000000
#define COLOR_ANTICHEAT 0xAA3333AA
#define COLOR_LIGHTBLUE 0x33CCFFAA
#define COLOR_LIGHTGREEN 0x9ACD32AA
#define COLOR_LIGHTRED 0xFF6347AA
#define COLOR_LIGHTBLUE 0x33CCFFAA
#define COLOR_LIGHTBLUE2 0x0080FFAA
#define COLOR_LIGHTGREEN 0x9ACD32AA
#define COLOR_LIGHTORANGE 0xFF8000FF
#define COLOR_DARKBROWN 0xB36C42FF
#define COLOR_MEDIUMBLUE 0x1ED5C7FF
#define COLOR_LIGHTYELLOW 0xE0E377AA
#define COLOR_LIGHTYELLOW2 0xE0EA64AA
#define COLOR_LIGHTYELLOW3 0xFF6347AA
#define COLOR_DARKPURPLE 0x5F56F8AA
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_YELLOW2 0xF5DEB3AA
#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_PURPLE 0xC2A2DAAA
#define COLOR_DBLUE 0x2641FEAA
#define COLOR_ALLDEPT 0xFF8282AA
#define COLOR_NEWS 0xFFA500AA
#define COLOR_OOC 0xE0FFFFAA
#define COLOR_NEWOOC 0x0080FFAA
#define COLOR_RED 0xFF0000FF
public OnFilterScriptInit()
{
	print("\n--------------------------------------");
	print(" Simple Robbing System by rumen98");
	print("--------------------------------------\n");
	Create3DTextLabel("/robbank",COLOR_WHITE,2309.6543,-8.5004,26.7422,15.0,0,1);
	Create3DTextLabel("/robammu",COLOR_WHITE,1367.3114,-1280.8257,13.5469,15.0,0,1);
	Create3DTextLabel("/robcityhall",COLOR_WHITE,1481.0194,-1771.5581,18.7958,15.0,0,1);
	Create3DTextLabel("/robgasstation",COLOR_WHITE,1929.1865,-1776.2770,13.1186,15.0,0,1);
	Create3DTextLabel("/robpizza",COLOR_WHITE,2104.8455,-1806.5627,13.1193,15.0,0,1);
	Create3DTextLabel("/robgym",COLOR_WHITE,2228.6638,-1722.2960,13.1336,15.0,0,1);
	Create3DTextLabel("/robatm",COLOR_WHITE,1919.0094,-1764.5574,13.1131,15.0,0,1);
	Create3DTextLabel("/robatm",COLOR_WHITE,2107.4668,-1789.6288,13.1291,15.0,0,1);
	Create3DTextLabel("/robatm",COLOR_WHITE,2476.2017,-1747.2950,13.1127,15.0,0,1);
 	CreateObject(2942, 2475.4091796875, -1747.2602539063, 13.189774513245, 0.000000, 0.000000, 92.780029296875); //object (kmb_atm1) (1)
	CreateObject(2942, 2107.5859375, -1790.6883544922, 13.197587013245, 0.000000, 0.000000, 185.85498046875); //object (kmb_atm1) (2)
	CreateObject(2942, 1919.0524902344, -1765.8768310547, 13.189774513245, 0.000000, 0.000000, 179.10003662109); //object (kmb_atm1) (3)

	return 1;
}

new timer1,timer2,timer3,timer4,timer5,timer6,timer7;



new Robbank[MAX_PLAYERS];
new Robammu[MAX_PLAYERS];
new Robcityhall[MAX_PLAYERS];
new Robgasstation[MAX_PLAYERS];
new Robpizza[MAX_PLAYERS];
new Robgym[MAX_PLAYERS];
new Robatm[MAX_PLAYERS];

CMD:robbank(playerid, params[])
{
    if (Robbank[playerid] == 0 )
 	if(IsPlayerInRangeOfPoint(playerid,2.0,2309.6543,-8.5004,26.7422))
    {
    SendClientMessage(playerid, COLOR_GREEN, "You start robbing bank!");
	Robbank[playerid] = 1;
	SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid)+3);
    timer1 = SetTimerEx("RobBank", 10000, false, "i", playerid);
    SetTimerEx("after1", 50000, false, "i", playerid);
    } else {
	SendClientMessage(playerid, COLOR_RED, "[ERROR:]You are no in rob checkpoint!");
    }
    return 1;
}
forward RobBank(playerid);
public RobBank(playerid)
{
    if(GetPlayerWeapon(playerid) == 0) GivePlayerMoney(playerid,20);
    if(GetPlayerWeapon(playerid) == 22) GivePlayerMoney(playerid,380);
    if(GetPlayerWeapon(playerid) == 23) GivePlayerMoney(playerid,640);
    if(GetPlayerWeapon(playerid) == 24) GivePlayerMoney(playerid,800);
    if(GetPlayerWeapon(playerid) == 25) GivePlayerMoney(playerid,1000);
    if(GetPlayerWeapon(playerid) == 26) GivePlayerMoney(playerid,1450);
    if(GetPlayerWeapon(playerid) == 27) GivePlayerMoney(playerid,2000);
    if(GetPlayerWeapon(playerid) == 28) GivePlayerMoney(playerid,2300);
    if(GetPlayerWeapon(playerid) == 29) GivePlayerMoney(playerid,2600);
    if(GetPlayerWeapon(playerid) == 30) GivePlayerMoney(playerid,4200);
    if(GetPlayerWeapon(playerid) == 31) GivePlayerMoney(playerid,5100);
    if(GetPlayerWeapon(playerid) == 32) GivePlayerMoney(playerid,3000);
    if(GetPlayerWeapon(playerid) == 33) GivePlayerMoney(playerid,6000);
    if(GetPlayerWeapon(playerid) == 34) GivePlayerMoney(playerid,6000);
    if(GetPlayerWeapon(playerid) == 35) GivePlayerMoney(playerid,8500);
    if(GetPlayerWeapon(playerid) == 36) GivePlayerMoney(playerid,10000);
    SendClientMessage(playerid, COLOR_GREEN, "You Rob the bank and now have 3 wanted level!");
    TogglePlayerControllable(playerid,1);
    return 1;
}
CMD:robammu(playerid, params[])
{
    if (Robammu[playerid] == 0 )
 	if(IsPlayerInRangeOfPoint(playerid,2.0,1367.3114,-1280.8257,13.5469))
	{
    SendClientMessage(playerid, COLOR_GREEN, "You start robbing Ammu-Nation!");
	Robammu[playerid] = 1;
    timer2 = SetTimerEx("RobAmmu", 10000, false, "i", playerid);
    SetTimerEx("after2", 50000, false, "i", playerid);
	SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid)+3);
    } else {
	SendClientMessage(playerid, COLOR_RED, "[ERROR:]You are no in rob checkpoint!");
    }
    return 1;
}
forward RobAmmu(playerid);
public RobAmmu(playerid)
{
    if(GetPlayerWeapon(playerid) == 0) GivePlayerMoney(playerid,20);
    if(GetPlayerWeapon(playerid) == 22) GivePlayerMoney(playerid,380);
    if(GetPlayerWeapon(playerid) == 23) GivePlayerMoney(playerid,640);
    if(GetPlayerWeapon(playerid) == 24) GivePlayerMoney(playerid,800);
    if(GetPlayerWeapon(playerid) == 25) GivePlayerMoney(playerid,1000);
    if(GetPlayerWeapon(playerid) == 26) GivePlayerMoney(playerid,1450);
    if(GetPlayerWeapon(playerid) == 27) GivePlayerMoney(playerid,2000);
    if(GetPlayerWeapon(playerid) == 28) GivePlayerMoney(playerid,2300);
    if(GetPlayerWeapon(playerid) == 29) GivePlayerMoney(playerid,2600);
    if(GetPlayerWeapon(playerid) == 30) GivePlayerMoney(playerid,4200);
    if(GetPlayerWeapon(playerid) == 31) GivePlayerMoney(playerid,5100);
    if(GetPlayerWeapon(playerid) == 32) GivePlayerMoney(playerid,3000);
    if(GetPlayerWeapon(playerid) == 33) GivePlayerMoney(playerid,6000);
    if(GetPlayerWeapon(playerid) == 34) GivePlayerMoney(playerid,6000);
    if(GetPlayerWeapon(playerid) == 35) GivePlayerMoney(playerid,8500);
    if(GetPlayerWeapon(playerid) == 36) GivePlayerMoney(playerid,10000);
    SendClientMessage(playerid, COLOR_GREEN, "You Rob the amuu-nation and now have 3 wanted level!");
    TogglePlayerControllable(playerid,1);
    return 1;
}
CMD:robcityhall(playerid, params[])
{
    if (Robcityhall[playerid] == 0 )
	if(IsPlayerInRangeOfPoint(playerid,2.0,1481.0194,-1771.5581,18.7958))
	{
    SendClientMessage(playerid, COLOR_GREEN, "You start robbing City Hall!");
	Robcityhall[playerid] = 1;
	SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid)+3);
    timer3 = SetTimerEx("Robcity", 10000, false, "i", playerid);
    SetTimerEx("after3", 50000, false, "i", playerid);
    } else {
	SendClientMessage(playerid, COLOR_RED, "[ERROR:]You are no in rob checkpoint!");
    }
    return 1;
}
forward Robcity(playerid);
public Robcity(playerid)
{
    if(GetPlayerWeapon(playerid) == 0) GivePlayerMoney(playerid,20);
    if(GetPlayerWeapon(playerid) == 22) GivePlayerMoney(playerid,380);
    if(GetPlayerWeapon(playerid) == 23) GivePlayerMoney(playerid,640);
    if(GetPlayerWeapon(playerid) == 24) GivePlayerMoney(playerid,800);
    if(GetPlayerWeapon(playerid) == 25) GivePlayerMoney(playerid,1000);
    if(GetPlayerWeapon(playerid) == 26) GivePlayerMoney(playerid,1450);
    if(GetPlayerWeapon(playerid) == 27) GivePlayerMoney(playerid,2000);
    if(GetPlayerWeapon(playerid) == 28) GivePlayerMoney(playerid,2300);
    if(GetPlayerWeapon(playerid) == 29) GivePlayerMoney(playerid,2600);
    if(GetPlayerWeapon(playerid) == 30) GivePlayerMoney(playerid,4200);
    if(GetPlayerWeapon(playerid) == 31) GivePlayerMoney(playerid,5100);
    if(GetPlayerWeapon(playerid) == 32) GivePlayerMoney(playerid,3000);
    if(GetPlayerWeapon(playerid) == 33) GivePlayerMoney(playerid,6000);
    if(GetPlayerWeapon(playerid) == 34) GivePlayerMoney(playerid,6000);
    if(GetPlayerWeapon(playerid) == 35) GivePlayerMoney(playerid,8500);
    if(GetPlayerWeapon(playerid) == 36) GivePlayerMoney(playerid,10000);
    SendClientMessage(playerid, COLOR_GREEN, "You Rob the city hall and now have 3 wanted level!");
    TogglePlayerControllable(playerid,1);
    return 1;
  }
CMD:robgasstation(playerid, params[])
{
    if (Robgasstation[playerid] == 0 )
	if(IsPlayerInRangeOfPoint(playerid,2.0,1929.1865,-1776.2770,13.1186))
	{
    SendClientMessage(playerid, COLOR_GREEN, "You start robbing Gas Station!");
	Robgasstation[playerid] = 1;
    timer4 = SetTimerEx("Robgas", 10000, false, "i", playerid);
    SetTimerEx("after4", 50000, false, "i", playerid);
	SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid)+3);
    } else {
	SendClientMessage(playerid, COLOR_RED, "[ERROR:]You are no in rob checkpoint!");
    }
    return 1;
}
forward Robgas(playerid);
public Robgas(playerid)
{
    if(GetPlayerWeapon(playerid) == 0) GivePlayerMoney(playerid,20);
    if(GetPlayerWeapon(playerid) == 22) GivePlayerMoney(playerid,380);
    if(GetPlayerWeapon(playerid) == 23) GivePlayerMoney(playerid,640);
    if(GetPlayerWeapon(playerid) == 24) GivePlayerMoney(playerid,800);
    if(GetPlayerWeapon(playerid) == 25) GivePlayerMoney(playerid,1000);
    if(GetPlayerWeapon(playerid) == 26) GivePlayerMoney(playerid,1450);
    if(GetPlayerWeapon(playerid) == 27) GivePlayerMoney(playerid,2000);
    if(GetPlayerWeapon(playerid) == 28) GivePlayerMoney(playerid,2300);
    if(GetPlayerWeapon(playerid) == 29) GivePlayerMoney(playerid,2600);
    if(GetPlayerWeapon(playerid) == 30) GivePlayerMoney(playerid,4200);
    if(GetPlayerWeapon(playerid) == 31) GivePlayerMoney(playerid,5100);
    if(GetPlayerWeapon(playerid) == 32) GivePlayerMoney(playerid,3000);
    if(GetPlayerWeapon(playerid) == 33) GivePlayerMoney(playerid,6000);
    if(GetPlayerWeapon(playerid) == 34) GivePlayerMoney(playerid,6000);
    if(GetPlayerWeapon(playerid) == 35) GivePlayerMoney(playerid,8500);
    if(GetPlayerWeapon(playerid) == 36) GivePlayerMoney(playerid,10000);
    SendClientMessage(playerid, COLOR_GREEN, "You Rob the gas station and now have 3 wanted level!");
    TogglePlayerControllable(playerid,1);
    return 1;
  }
CMD:robpizza(playerid, params[])
{
    if (Robpizza[playerid] == 0 )
	if(IsPlayerInRangeOfPoint(playerid,2.0,2104.8455,-1806.5627,13.1193))
	{
    SendClientMessage(playerid, COLOR_GREEN, "You start robbing Pizza!");
	Robpizza[playerid] = 1;
	SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid)+3);
    timer5 = SetTimerEx("RobPizza", 10000, false, "i", playerid);
    SetTimerEx("after5", 50000, false, "i", playerid);
    } else {
	SendClientMessage(playerid, COLOR_RED, "[ERROR:]You are no in rob checkpoint!");
    }
    return 1;
}
forward RobPizza(playerid);
public RobPizza(playerid)
{
    if(GetPlayerWeapon(playerid) == 0) GivePlayerMoney(playerid,20);
    if(GetPlayerWeapon(playerid) == 22) GivePlayerMoney(playerid,380);
    if(GetPlayerWeapon(playerid) == 23) GivePlayerMoney(playerid,640);
    if(GetPlayerWeapon(playerid) == 24) GivePlayerMoney(playerid,800);
    if(GetPlayerWeapon(playerid) == 25) GivePlayerMoney(playerid,1000);
    if(GetPlayerWeapon(playerid) == 26) GivePlayerMoney(playerid,1450);
    if(GetPlayerWeapon(playerid) == 27) GivePlayerMoney(playerid,2000);
    if(GetPlayerWeapon(playerid) == 28) GivePlayerMoney(playerid,2300);
    if(GetPlayerWeapon(playerid) == 29) GivePlayerMoney(playerid,2600);
    if(GetPlayerWeapon(playerid) == 30) GivePlayerMoney(playerid,4200);
    if(GetPlayerWeapon(playerid) == 31) GivePlayerMoney(playerid,5100);
    if(GetPlayerWeapon(playerid) == 32) GivePlayerMoney(playerid,3000);
    if(GetPlayerWeapon(playerid) == 33) GivePlayerMoney(playerid,6000);
    if(GetPlayerWeapon(playerid) == 34) GivePlayerMoney(playerid,6000);
    if(GetPlayerWeapon(playerid) == 35) GivePlayerMoney(playerid,8500);
    if(GetPlayerWeapon(playerid) == 36) GivePlayerMoney(playerid,10000);
    SendClientMessage(playerid, COLOR_GREEN, "You Rob the pizza and now have 3 wanted level!");
    TogglePlayerControllable(playerid,1);
    return 1;
  }
CMD:robgym(playerid, params[])
{
    if (Robgym[playerid] == 0 )
	if(IsPlayerInRangeOfPoint(playerid,2.0,2228.6638,-1722.2960,13.1336))
	{
    SendClientMessage(playerid, COLOR_GREEN, "You start robbing Gym!");
	Robgym[playerid] = 1;
	SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid)+3);
    timer6 = SetTimerEx("RobGym", 10000, false, "i", playerid);
    SetTimerEx("after6", 50000, false, "i", playerid);
    } else {
	SendClientMessage(playerid, COLOR_RED, "[ERROR:]You are no in rob checkpoint!");
    }
    return 1;
}
forward RobGym(playerid);
public RobGym(playerid)
{
    if(GetPlayerWeapon(playerid) == 0) GivePlayerMoney(playerid,20);
    if(GetPlayerWeapon(playerid) == 22) GivePlayerMoney(playerid,380);
    if(GetPlayerWeapon(playerid) == 23) GivePlayerMoney(playerid,640);
    if(GetPlayerWeapon(playerid) == 24) GivePlayerMoney(playerid,800);
    if(GetPlayerWeapon(playerid) == 25) GivePlayerMoney(playerid,1000);
    if(GetPlayerWeapon(playerid) == 26) GivePlayerMoney(playerid,1450);
    if(GetPlayerWeapon(playerid) == 27) GivePlayerMoney(playerid,2000);
    if(GetPlayerWeapon(playerid) == 28) GivePlayerMoney(playerid,2300);
    if(GetPlayerWeapon(playerid) == 29) GivePlayerMoney(playerid,2600);
    if(GetPlayerWeapon(playerid) == 30) GivePlayerMoney(playerid,4200);
    if(GetPlayerWeapon(playerid) == 31) GivePlayerMoney(playerid,5100);
    if(GetPlayerWeapon(playerid) == 32) GivePlayerMoney(playerid,3000);
    if(GetPlayerWeapon(playerid) == 33) GivePlayerMoney(playerid,6000);
    if(GetPlayerWeapon(playerid) == 34) GivePlayerMoney(playerid,6000);
    if(GetPlayerWeapon(playerid) == 35) GivePlayerMoney(playerid,8500);
    if(GetPlayerWeapon(playerid) == 36) GivePlayerMoney(playerid,10000);
    SendClientMessage(playerid, COLOR_GREEN, "You Rob the gym and now have 3 wanted level!");
    TogglePlayerControllable(playerid,1);
    return 1;
  }
CMD:robatm(playerid, params[])
{
    if (Robatm[playerid] == 0 )
	if(IsPlayerInRangeOfPoint(playerid,2.0,1919.0094,-1764.5574,13.1131) || IsPlayerInRangeOfPoint(playerid,2.0,2476.2017,-1747.2950,13.1127) || IsPlayerInRangeOfPoint(playerid,2.0,2107.4668,-1789.6288,13.1291))
	{
    SendClientMessage(playerid, COLOR_GREEN, "You start robbing atm!");
	Robatm[playerid] = 1;
	SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid)+3);
    timer7 = SetTimerEx("RobAtm", 10000, false, "i", playerid);
    SetTimerEx("after7", 50000, false, "i", playerid);
    } else {
	SendClientMessage(playerid, COLOR_RED, "[ERROR:]You are no in rob checkpoint!");
    }
    return 1;
}

forward RobAtm(playerid);
public RobAtm(playerid)
{
    if(GetPlayerWeapon(playerid) == 0) GivePlayerMoney(playerid,20);
    if(GetPlayerWeapon(playerid) == 22) GivePlayerMoney(playerid,380);
    if(GetPlayerWeapon(playerid) == 23) GivePlayerMoney(playerid,640);
    if(GetPlayerWeapon(playerid) == 24) GivePlayerMoney(playerid,800);
    if(GetPlayerWeapon(playerid) == 25) GivePlayerMoney(playerid,1000);
    if(GetPlayerWeapon(playerid) == 26) GivePlayerMoney(playerid,1450);
    if(GetPlayerWeapon(playerid) == 27) GivePlayerMoney(playerid,2000);
    if(GetPlayerWeapon(playerid) == 28) GivePlayerMoney(playerid,2300);
    if(GetPlayerWeapon(playerid) == 29) GivePlayerMoney(playerid,2600);
    if(GetPlayerWeapon(playerid) == 30) GivePlayerMoney(playerid,4200);
    if(GetPlayerWeapon(playerid) == 31) GivePlayerMoney(playerid,5100);
    if(GetPlayerWeapon(playerid) == 32) GivePlayerMoney(playerid,3000);
    if(GetPlayerWeapon(playerid) == 33) GivePlayerMoney(playerid,6000);
    if(GetPlayerWeapon(playerid) == 34) GivePlayerMoney(playerid,6000);
    if(GetPlayerWeapon(playerid) == 35) GivePlayerMoney(playerid,8500);
    if(GetPlayerWeapon(playerid) == 36) GivePlayerMoney(playerid,10000);
    SendClientMessage(playerid, COLOR_GREEN, "You Rob the bank and now have 3 wanted level!");
    TogglePlayerControllable(playerid,1);
    return 1;
  }
forward after1(playerid);
public after1(playerid)
{
	Robbank[playerid] = 0;
	SendClientMessage(playerid, COLOR_RED, "[ERROR:]You can rob bank again!");
    return 1;
  }
forward after2(playerid);
public after2(playerid)
{
	Robammu[playerid] = 0;
	SendClientMessage(playerid, COLOR_RED, "[ERROR:]You can rob ammu-nation again!");
    return 1;
  }
forward after3(playerid);
public after3(playerid)
{
	Robcityhall[playerid] = 0;
	SendClientMessage(playerid, COLOR_RED, "[ERROR:]You can rob city hall again!");
    return 1;
  }
forward after4(playerid);
public after4(playerid)
{
	Robgasstation[playerid] = 0;
	SendClientMessage(playerid, COLOR_RED, "[ERROR:]You can rob gas station again!");
    return 1;
  }
forward after5(playerid);
public after5(playerid)
{
	Robpizza[playerid] = 0;
	SendClientMessage(playerid, COLOR_RED, "[ERROR:]You can rob pizza again!");
    return 1;
  }
forward after6(playerid);
public after6(playerid)
{
	Robgym[playerid] = 0;
	SendClientMessage(playerid, COLOR_RED, "[ERROR:]You can rob gym again!");
    return 1;
  }
forward after7(playerid);
public after7(playerid)
{
	Robatm[playerid] = 0;
	SendClientMessage(playerid, COLOR_RED, "[ERROR:]You can rob atm again!");
    return 1;
  }

public OnPlayerDeath(playerid, killerid, reason)
{
    KillTimer(timer1);
    KillTimer(timer2);
    KillTimer(timer3);
    KillTimer(timer4);
    KillTimer(timer5);
    KillTimer(timer6);
    KillTimer(timer7);
	return 1;
}
CMD:robhelp(playerid, params[])
{
    SendClientMessage(playerid, COLOR_GREEN, "Robing System by Rumen98");
    SendClientMessage(playerid, COLOR_GREEN, "You can rob every 30 minutes");
    SendClientMessage(playerid, COLOR_GREEN, "CMDS:");
    SendClientMessage(playerid, COLOR_GREEN, "/robbank , /robammu , /robcity , /robgas");
    SendClientMessage(playerid, COLOR_GREEN, "/robpizza , /robgym , /robatm");
    return 1;
}
Thx.
Reply
#2

Change lines with this on;

if(GetPlayerWeapon(playerid) == 31) GivePlayerMoney(playerid,5100);

To however much you want them to get
Reply
#3

Quote:

Change lines with this on;

if(GetPlayerWeapon(playerid) == 31) GivePlayerMoney(playerid,5100);

To however much you want them to get

I'am trying to say that how do i can make it with no gun just fist that you get random cash not always 5100
How do i can make that difrent thats my question.
Reply
#4

Somebody?
Reply
#5

Bump
Reply
#6

pawn Код:
forward RobBank(playerid);
public RobBank(playerid)
{
    new rand = random(50000)
    if(GetPlayerWeapon(playerid) == 0) GivePlayerMoney(playerid,rand);
    if(GetPlayerWeapon(playerid) == 22) GivePlayerMoney(playerid,rand);
    if(GetPlayerWeapon(playerid) == 23) GivePlayerMoney(playerid,rand);
    if(GetPlayerWeapon(playerid) == 24) GivePlayerMoney(playerid,rand);
    if(GetPlayerWeapon(playerid) == 25) GivePlayerMoney(playerid,rand);
    if(GetPlayerWeapon(playerid) == 26) GivePlayerMoney(playerid,rand);
    if(GetPlayerWeapon(playerid) == 27) GivePlayerMoney(playerid,rand);
    if(GetPlayerWeapon(playerid) == 28) GivePlayerMoney(playerid,rand);
    if(GetPlayerWeapon(playerid) == 29) GivePlayerMoney(playerid,rand);
    if(GetPlayerWeapon(playerid) == 30) GivePlayerMoney(playerid,rand);
    if(GetPlayerWeapon(playerid) == 31) GivePlayerMoney(playerid,rand);
    if(GetPlayerWeapon(playerid) == 32) GivePlayerMoney(playerid,rand);
    if(GetPlayerWeapon(playerid) == 33) GivePlayerMoney(playerid,rand);
    if(GetPlayerWeapon(playerid) == 34) GivePlayerMoney(playerid,rand);
    if(GetPlayerWeapon(playerid) == 35) GivePlayerMoney(playerid,rand);
    if(GetPlayerWeapon(playerid) == 36) GivePlayerMoney(playerid,rand);
    SendClientMessage(playerid, COLOR_GREEN, "You Rob the bank and now have 3 wanted level!");
    TogglePlayerControllable(playerid,1);
    return 1;
}
Try now.
Reply
#7

i think you are looking for this
pawn Код:
new rand = random(50000)+0;
GivePlayerMoney(playerid,rand);
this will give a random money MAX is 50000$
Reply
#8

Thanks Data now when somebody robs het get 0-50000 thx you so much +rep
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)