Four Dragon Casino + Bank Robbery %
#1

hello guys I want to know how to I can When

how to the heist of thier Four Dragon Casino 100K-150K ________________ and also what I steal him give me 60K-130K?

Possible solution?
Reply
#2

Show me the code of this all.
Reply
#3

This Code For Four Dragon Casino

Код:
CMD:robdrag(playerid, params[])
{
	if(GetTeam{playerid} != CLASS_CIV) return SendClientMessage(playerid, RED, "Only civilians can rob places.");
	if(IsRobbingDrag{playerid} == true) return SendClientMessage(playerid, RED, "Your already robbing the joint.");
	if(IsPlayerHoldingAGun(playerid) == 0 || HasBeenCuffed{playerid} == true) return SendClientMessage(playerid, RED, "You must be holding a gun to rob places.");
    if((gettime() - 120) < TimerInfo[playerid][CMD_timer20]) return SendClientMessage(playerid, RED, "Please wait before using this command again.");
    TimerInfo[playerid][CMD_timer20] = gettime();
	new chance = random(3);
	if(chance == 0)
	{
	    format(fstr, sizeof(fstr),  "[DISPATCH]: Suspect %s [%d] has attempted to rob the 4 Dragons Casino at The New Vegas Strip[South]", GetName(playerid), playerid);
        CopRadio(BLUE, fstr);
        SendClientMessage(playerid, RED, "You have failed to rob the 4 Dragons Casino.");
	    GameTextForPlayer(playerid, "~w~Robbery ~r~Failed", 5000, 5);
        SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid) + 4);
	}
	else if(IsPlayerInRangeOfPoint(playerid,1.0,1955.3691,1018.0455,992.4688))
    {
	    if((gettime() - 120) < dragrobbed) return SendClientMessage(playerid, RED, "This place has been robbed recently, try again later.");
        format(fstr, sizeof(fstr), "[DISPATCH]: Suspect %s [%d] is now robbing 4 Dragons Casino at The New Vegas Strip[South]", GetName(playerid), playerid);
        CopRadio(BLUE, fstr);
        SendClientMessage(playerid, LIGHTGREEN, "Your robbing 4 Dragons Casino, DON'T LEAVE THE CHECKPOINT!");
	    GameTextForPlayer(playerid, "~r~Holdup ~w~In ~g~Progress...~n~~r~Dont Leave ~w~The ~r~Checkpoint.", 25000, 5);
        SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+6);
        IsRobbingDrag{playerid} = true;
        dragtimer{playerid} = SetTimerEx("DragRob", 25000, false, "d", playerid);
        ApplyAnimation(playerid,"ped","ARRESTgun",4.1,0,1,1,1,1);
        dragrobbed = gettime();
	}
	else
	{
        SendClientMessage(playerid, RED, "Your not at the robbery checkpoint.");
	}
	new astring[100],pName[24];
	GetPlayerName(playerid,(pName),sizeof(pName));
    format(astring,sizeof(astring),"%s [%d] typed: /robdrag",pName,playerid);
    SendAdminMessage(GREY,astring);
	return true;
}
This Code For Rob Bank

Код:
CMD:robbank(playerid, params[])
{
	if(GetTeam{playerid} != CLASS_CIV) return SendClientMessage(playerid, RED, "Only civilians can rob places.");
	if(IsRobbingBank1{playerid} == true) return SendClientMessage(playerid, RED, "Your already robbing the joint.");
	if(IsRobbingBank2{playerid} == true) return SendClientMessage(playerid, RED, "Your already robbing the joint.");
	if(IsRobbingBank3{playerid} == true) return SendClientMessage(playerid, RED, "Your already robbing the joint.");
	if(IsRobbingBank4{playerid} == true) return SendClientMessage(playerid, RED, "Your already robbing the joint.");
	if(IsPlayerHoldingAGun(playerid) == 0 || HasBeenCuffed{playerid} == true) return SendClientMessage(playerid, RED, "You must be holding a gun to rob places.");
    if((gettime() - 120) < TimerInfo[playerid][CMD_timer23]) return SendClientMessage(playerid, RED, "Please wait before using this command again.");
    TimerInfo[playerid][CMD_timer23] = gettime();
	if(IsPlayerInRangeOfPoint(playerid,1.0,2316.6169,-7.3947,26.7422) && GetPlayerVirtualWorld(playerid) == 1)
    {
        new chance = random(3);
		if(chance == 0)
		{
	    	format(fstr, sizeof(fstr),  "[DISPATCH]: Suspect %s [%d] has attempted to rob the Bank at New Vegas Square.", GetName(playerid), playerid);
        	CopRadio(BLUE, fstr);
        	SendClientMessage(playerid, RED, "You have failed to rob the Bank.");
	    	GameTextForPlayer(playerid, "~w~Robbery ~r~Failed", 5000, 5);
        	SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid) + 4);
		}
		else
		{
	    	if((gettime() - 120) < bank1robbed) return SendClientMessage(playerid, RED, "This place has been robbed recently, try again later.");
        	format(fstr, sizeof(fstr), "[DISPATCH]: Suspect %s [%d] is now robbing the Bank at New Vegas Square.", GetName(playerid), playerid);
        	CopRadio(BLUE, fstr);
        	SendClientMessage(playerid, LIGHTGREEN, "Your robbing the Bank, DON'T LEAVE THE CHECKPOINT!");
	    	GameTextForPlayer(playerid, "~r~Holdup ~w~In ~g~Progress...~n~~r~Dont Leave ~w~The ~r~Checkpoint.", 25000, 5);
        	IsRobbingBank1{playerid} = true;
        	SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+6);
        	banktimer{playerid} = SetTimerEx("BankRob", 25000, false, "d", playerid);
        	ApplyAnimation(playerid,"ped","ARRESTgun",4.1,0,1,1,1,1);
        	bank1robbed = gettime();
        }
	}
	else if(IsPlayerInRangeOfPoint(playerid,1.0,2316.6169,-7.3947,26.7422) && GetPlayerVirtualWorld(playerid) == 2)
    {
        new chance = random(3);
		if(chance == 0)
		{
	    	format(fstr, sizeof(fstr),  "[DISPATCH]: Suspect %s [%d] has attempted to rob the Bank at El Quebrados.", GetName(playerid), playerid);
        	CopRadio(BLUE, fstr);
        	SendClientMessage(playerid, RED, "You have failed to rob the Bank.");
	    	GameTextForPlayer(playerid, "~w~Robbery ~r~Failed", 5000, 5);
        	SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid) + 4);
		}
		else
		{
	    	if((gettime() - 120) < bank2robbed) return SendClientMessage(playerid, RED, "This place has been robbed recently, try again later.");
        	format(fstr, sizeof(fstr), "[DISPATCH]: Suspect %s [%d] is now robbing the Bank at El Quebrados.", GetName(playerid), playerid);
        	CopRadio(BLUE, fstr);
        	SendClientMessage(playerid, LIGHTGREEN, "Your robbing the Bank, DON'T LEAVE THE CHECKPOINT!");
	    	GameTextForPlayer(playerid, "~r~Holdup ~w~In ~g~Progress...~n~~r~Dont Leave ~w~The ~r~Checkpoint.", 25000, 5);
        	IsRobbingBank2{playerid} = true;
        	SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+6);
        	banktimer{playerid} = SetTimerEx("BankRob", 25000, false, "d", playerid);
        	ApplyAnimation(playerid,"ped","ARRESTgun",4.1,0,1,1,1,1);
        	bank2robbed = gettime();
        }
	}
	else if(IsPlayerInRangeOfPoint(playerid,1.0,2316.6169,-7.3947,26.7422) && GetPlayerVirtualWorld(playerid) == 3)
    {
		new chance = random(3);
		if(chance == 0)
		{
	    	format(fstr, sizeof(fstr),  "[DISPATCH]: Suspect %s [%d] has attempted to rob the Bank at Fort Carson.", GetName(playerid), playerid);
        	CopRadio(BLUE, fstr);
        	SendClientMessage(playerid, RED, "You have failed to rob the Bank.");
	    	GameTextForPlayer(playerid, "~w~Robbery ~r~Failed", 5000, 5);
        	SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid) + 4);
		}
		else
		{
	    	if((gettime() - 120) < bank3robbed) return SendClientMessage(playerid, RED, "This place has been robbed recently, try again later.");
        	format(fstr, sizeof(fstr), "[DISPATCH]: Suspect %s [%d] is now robbing the Bank at Fort Carson.", GetName(playerid), playerid);
        	CopRadio(BLUE, fstr);
        	SendClientMessage(playerid, LIGHTGREEN, "Your robbing the Bank, DON'T LEAVE THE CHECKPOINT!");
	    	GameTextForPlayer(playerid, "~r~Holdup ~w~In ~g~Progress...~n~~r~Dont Leave ~w~The ~r~Checkpoint.", 25000, 5);
        	IsRobbingBank3{playerid} = true;
        	SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+6);
        	banktimer{playerid} = SetTimerEx("BankRob", 25000, false, "d", playerid);
        	ApplyAnimation(playerid,"ped","ARRESTgun",4.1,0,1,1,1,1);
        	bank3robbed = gettime();
        }
	}
	else if(IsPlayerInRangeOfPoint(playerid,1.0,2316.6169,-7.3947,26.7422) && GetPlayerVirtualWorld(playerid) == 4)
    {
		new chance = random(3);
		if(chance == 0)
		{
	    	format(fstr, sizeof(fstr),  "[DISPATCH]: Suspect %s [%d] has attempted to rob the Bank at Tierra Robada.", GetName(playerid), playerid);
        	CopRadio(BLUE, fstr);
        	SendClientMessage(playerid, RED, "You have failed to rob the Bank.");
	    	GameTextForPlayer(playerid, "~w~Robbery ~r~Failed", 5000, 5);
        	SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid) + 4);
		}
		else
		{
	    	if((gettime() - 120) < bank4robbed) return SendClientMessage(playerid, RED, "This place has been robbed recently, try again later.");
        	format(fstr, sizeof(fstr), "[DISPATCH]: Suspect %s [%d] is now robbing the Bank at Tierra Robada.", GetName(playerid), playerid);
        	CopRadio(BLUE, fstr);
        	SendClientMessage(playerid, LIGHTGREEN, "Your robbing the Bank, DON'T LEAVE THE CHECKPOINT!");
	    	GameTextForPlayer(playerid, "~r~Holdup ~w~In ~g~Progress...~n~~r~Dont Leave ~w~The ~r~Checkpoint.", 25000, 5);
        	IsRobbingBank4{playerid} = true;
        	SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+6);
        	banktimer{playerid} = SetTimerEx("BankRob", 25000, false, "d", playerid);
        	ApplyAnimation(playerid,"ped","ARRESTgun",4.1,0,1,1,1,1);
        	bank4robbed = gettime();
        }
	}
	else
	{
        SendClientMessage(playerid, RED, "Your not at the robbery checkpoint.");
	}
    new astring[100],pName[24];
    GetPlayerName(playerid,(pName),sizeof(pName));
    format(astring,sizeof(astring),"%s [%d] typed: /robbank",pName,playerid);
    SendAdminMessage(GREY,astring);
	return true;
}
Reply
#4

This Code For Four Dragon Casino

Код:
CMD:robdrag(playerid, params[])
{
	if(GetTeam{playerid} != CLASS_CIV) return SendClientMessage(playerid, RED, "Only civilians can rob places.");
	if(IsRobbingDrag{playerid} == true) return SendClientMessage(playerid, RED, "Your already robbing the joint.");
	if(IsPlayerHoldingAGun(playerid) == 0 || HasBeenCuffed{playerid} == true) return SendClientMessage(playerid, RED, "You must be holding a gun to rob places.");
    if((gettime() - 120) < TimerInfo[playerid][CMD_timer20]) return SendClientMessage(playerid, RED, "Please wait before using this command again.");
    TimerInfo[playerid][CMD_timer20] = gettime();
	new chance = random(3);
	if(chance == 0)
	{
	    format(fstr, sizeof(fstr),  "[DISPATCH]: Suspect %s [%d] has attempted to rob the 4 Dragons Casino at The New Vegas Strip[South]", GetName(playerid), playerid);
        CopRadio(BLUE, fstr);
        SendClientMessage(playerid, RED, "You have failed to rob the 4 Dragons Casino.");
	    GameTextForPlayer(playerid, "~w~Robbery ~r~Failed", 5000, 5);
        SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid) + 4);
	}
	else if(IsPlayerInRangeOfPoint(playerid,1.0,1955.3691,1018.0455,992.4688))
    {
	    if((gettime() - 120) < dragrobbed) return SendClientMessage(playerid, RED, "This place has been robbed recently, try again later.");
        format(fstr, sizeof(fstr), "[DISPATCH]: Suspect %s [%d] is now robbing 4 Dragons Casino at The New Vegas Strip[South]", GetName(playerid), playerid);
        CopRadio(BLUE, fstr);
        SendClientMessage(playerid, LIGHTGREEN, "Your robbing 4 Dragons Casino, DON'T LEAVE THE CHECKPOINT!");
	    GameTextForPlayer(playerid, "~r~Holdup ~w~In ~g~Progress...~n~~r~Dont Leave ~w~The ~r~Checkpoint.", 25000, 5);
        SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+6);
        IsRobbingDrag{playerid} = true;
        dragtimer{playerid} = SetTimerEx("DragRob", 25000, false, "d", playerid);
        ApplyAnimation(playerid,"ped","ARRESTgun",4.1,0,1,1,1,1);
        dragrobbed = gettime();
	}
	else
	{
        SendClientMessage(playerid, RED, "Your not at the robbery checkpoint.");
	}
	new astring[100],pName[24];
	GetPlayerName(playerid,(pName),sizeof(pName));
    format(astring,sizeof(astring),"%s [%d] typed: /robdrag",pName,playerid);
    SendAdminMessage(GREY,astring);
	return true;
}
This Code For Rob Bank

Код:
CMD:robbank(playerid, params[])
{
	if(GetTeam{playerid} != CLASS_CIV) return SendClientMessage(playerid, RED, "Only civilians can rob places.");
	if(IsRobbingBank1{playerid} == true) return SendClientMessage(playerid, RED, "Your already robbing the joint.");
	if(IsRobbingBank2{playerid} == true) return SendClientMessage(playerid, RED, "Your already robbing the joint.");
	if(IsRobbingBank3{playerid} == true) return SendClientMessage(playerid, RED, "Your already robbing the joint.");
	if(IsRobbingBank4{playerid} == true) return SendClientMessage(playerid, RED, "Your already robbing the joint.");
	if(IsPlayerHoldingAGun(playerid) == 0 || HasBeenCuffed{playerid} == true) return SendClientMessage(playerid, RED, "You must be holding a gun to rob places.");
    if((gettime() - 120) < TimerInfo[playerid][CMD_timer23]) return SendClientMessage(playerid, RED, "Please wait before using this command again.");
    TimerInfo[playerid][CMD_timer23] = gettime();
	if(IsPlayerInRangeOfPoint(playerid,1.0,2316.6169,-7.3947,26.7422) && GetPlayerVirtualWorld(playerid) == 1)
    {
        new chance = random(3);
		if(chance == 0)
		{
	    	format(fstr, sizeof(fstr),  "[DISPATCH]: Suspect %s [%d] has attempted to rob the Bank at New Vegas Square.", GetName(playerid), playerid);
        	CopRadio(BLUE, fstr);
        	SendClientMessage(playerid, RED, "You have failed to rob the Bank.");
	    	GameTextForPlayer(playerid, "~w~Robbery ~r~Failed", 5000, 5);
        	SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid) + 4);
		}
		else
		{
	    	if((gettime() - 120) < bank1robbed) return SendClientMessage(playerid, RED, "This place has been robbed recently, try again later.");
        	format(fstr, sizeof(fstr), "[DISPATCH]: Suspect %s [%d] is now robbing the Bank at New Vegas Square.", GetName(playerid), playerid);
        	CopRadio(BLUE, fstr);
        	SendClientMessage(playerid, LIGHTGREEN, "Your robbing the Bank, DON'T LEAVE THE CHECKPOINT!");
	    	GameTextForPlayer(playerid, "~r~Holdup ~w~In ~g~Progress...~n~~r~Dont Leave ~w~The ~r~Checkpoint.", 25000, 5);
        	IsRobbingBank1{playerid} = true;
        	SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+6);
        	banktimer{playerid} = SetTimerEx("BankRob", 25000, false, "d", playerid);
        	ApplyAnimation(playerid,"ped","ARRESTgun",4.1,0,1,1,1,1);
        	bank1robbed = gettime();
        }
	}
	else if(IsPlayerInRangeOfPoint(playerid,1.0,2316.6169,-7.3947,26.7422) && GetPlayerVirtualWorld(playerid) == 2)
    {
        new chance = random(3);
		if(chance == 0)
		{
	    	format(fstr, sizeof(fstr),  "[DISPATCH]: Suspect %s [%d] has attempted to rob the Bank at El Quebrados.", GetName(playerid), playerid);
        	CopRadio(BLUE, fstr);
        	SendClientMessage(playerid, RED, "You have failed to rob the Bank.");
	    	GameTextForPlayer(playerid, "~w~Robbery ~r~Failed", 5000, 5);
        	SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid) + 4);
		}
		else
		{
	    	if((gettime() - 120) < bank2robbed) return SendClientMessage(playerid, RED, "This place has been robbed recently, try again later.");
        	format(fstr, sizeof(fstr), "[DISPATCH]: Suspect %s [%d] is now robbing the Bank at El Quebrados.", GetName(playerid), playerid);
        	CopRadio(BLUE, fstr);
        	SendClientMessage(playerid, LIGHTGREEN, "Your robbing the Bank, DON'T LEAVE THE CHECKPOINT!");
	    	GameTextForPlayer(playerid, "~r~Holdup ~w~In ~g~Progress...~n~~r~Dont Leave ~w~The ~r~Checkpoint.", 25000, 5);
        	IsRobbingBank2{playerid} = true;
        	SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+6);
        	banktimer{playerid} = SetTimerEx("BankRob", 25000, false, "d", playerid);
        	ApplyAnimation(playerid,"ped","ARRESTgun",4.1,0,1,1,1,1);
        	bank2robbed = gettime();
        }
	}
	else if(IsPlayerInRangeOfPoint(playerid,1.0,2316.6169,-7.3947,26.7422) && GetPlayerVirtualWorld(playerid) == 3)
    {
		new chance = random(3);
		if(chance == 0)
		{
	    	format(fstr, sizeof(fstr),  "[DISPATCH]: Suspect %s [%d] has attempted to rob the Bank at Fort Carson.", GetName(playerid), playerid);
        	CopRadio(BLUE, fstr);
        	SendClientMessage(playerid, RED, "You have failed to rob the Bank.");
	    	GameTextForPlayer(playerid, "~w~Robbery ~r~Failed", 5000, 5);
        	SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid) + 4);
		}
		else
		{
	    	if((gettime() - 120) < bank3robbed) return SendClientMessage(playerid, RED, "This place has been robbed recently, try again later.");
        	format(fstr, sizeof(fstr), "[DISPATCH]: Suspect %s [%d] is now robbing the Bank at Fort Carson.", GetName(playerid), playerid);
        	CopRadio(BLUE, fstr);
        	SendClientMessage(playerid, LIGHTGREEN, "Your robbing the Bank, DON'T LEAVE THE CHECKPOINT!");
	    	GameTextForPlayer(playerid, "~r~Holdup ~w~In ~g~Progress...~n~~r~Dont Leave ~w~The ~r~Checkpoint.", 25000, 5);
        	IsRobbingBank3{playerid} = true;
        	SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+6);
        	banktimer{playerid} = SetTimerEx("BankRob", 25000, false, "d", playerid);
        	ApplyAnimation(playerid,"ped","ARRESTgun",4.1,0,1,1,1,1);
        	bank3robbed = gettime();
        }
	}
	else if(IsPlayerInRangeOfPoint(playerid,1.0,2316.6169,-7.3947,26.7422) && GetPlayerVirtualWorld(playerid) == 4)
    {
		new chance = random(3);
		if(chance == 0)
		{
	    	format(fstr, sizeof(fstr),  "[DISPATCH]: Suspect %s [%d] has attempted to rob the Bank at Tierra Robada.", GetName(playerid), playerid);
        	CopRadio(BLUE, fstr);
        	SendClientMessage(playerid, RED, "You have failed to rob the Bank.");
	    	GameTextForPlayer(playerid, "~w~Robbery ~r~Failed", 5000, 5);
        	SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid) + 4);
		}
		else
		{
	    	if((gettime() - 120) < bank4robbed) return SendClientMessage(playerid, RED, "This place has been robbed recently, try again later.");
        	format(fstr, sizeof(fstr), "[DISPATCH]: Suspect %s [%d] is now robbing the Bank at Tierra Robada.", GetName(playerid), playerid);
        	CopRadio(BLUE, fstr);
        	SendClientMessage(playerid, LIGHTGREEN, "Your robbing the Bank, DON'T LEAVE THE CHECKPOINT!");
	    	GameTextForPlayer(playerid, "~r~Holdup ~w~In ~g~Progress...~n~~r~Dont Leave ~w~The ~r~Checkpoint.", 25000, 5);
        	IsRobbingBank4{playerid} = true;
        	SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+6);
        	banktimer{playerid} = SetTimerEx("BankRob", 25000, false, "d", playerid);
        	ApplyAnimation(playerid,"ped","ARRESTgun",4.1,0,1,1,1,1);
        	bank4robbed = gettime();
        }
	}
	else
	{
        SendClientMessage(playerid, RED, "Your not at the robbery checkpoint.");
	}
    new astring[100],pName[24];
    GetPlayerName(playerid,(pName),sizeof(pName));
    format(astring,sizeof(astring),"%s [%d] typed: /robbank",pName,playerid);
    SendAdminMessage(GREY,astring);
	return true;
}
Reply
#5

bumb Plesae Help
Reply
#6

Please fix your english, I cant understand what you mean.
Reply
#7

Why you are using NVCNR?
Reply
#8

Quote:
Originally Posted by KevinExec
Посмотреть сообщение
Please fix your english, I cant understand what you mean.
Ok I Will Fix It But I mean I want If Some one Robbed Casino he got 100k - 150K
And if he rob the Bank Got 60k - 140k
how to do it?
Reply
#9

Код:
 money=random(130000);
GivePlayerMoney(playerid,money);
Reply
#10

Код:
LVCNR.pwn(21718) : error 017: undefined symbol "money"
line 21718 + 21719

Код:
money=random(130000);
        GivePlayerMoney(playerid, 130000);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)