#1

Код:
if(BankJobPlayer == playerid)
	{
	    new string[182];
	    format(string, 256, "City Alert: The Bank Robbery attempt has failed!");
	    RemovePlayerAttachedObject(playerid, 0);
		SendClientMessageToAll(COLOR_LIGHTBLUE, string);
		BankJobPlayer = 999;
		TimeAfterBankJob = 3;
		BankJobTime = -1;
	}
How to Edit if the Player leave the Particular Place he will Fail to Rob the bank.
Reply
#2

try this ?

require Streamer plugins
pawn Код:
new Float:ParticularPlace[1][4] =
{
    // x  y    z    size
    {0.0, 0.0, 0.0, 10.0}
}
new RobZone = CreateDynamicSphere(ParticularPlace[0][0], ParticularPlace[0][1], ParticularPlace[0][2], ParticularPlace[0][3], GetPlayerVirtualWorld(playerid), GetPlayerInrerior(playerid));

public OnPlayerLeaveDynamicArea(playerid, areaid)
{
    if(areaid == RobZone)
    {
        if(BankJobPlayer == playerid)
        {
            new string[182];
            format(string, 256, "City Alert: The Bank Robbery attempt has failed!");
            RemovePlayerAttachedObject(playerid, 0);
            SendClientMessageToAll(COLOR_LIGHTBLUE, string);
            BankJobPlayer = 999;
            TimeAfterBankJob = 3;
            BankJobTime = -1;
        }
    }
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)