Robbery System - Problems
#2

1)

Replace X Y Z with yours.

Код:
SetTimerEx("_CHECK_NEAR", 5000, true, "d", playerid);

_CHECK_NEAR(playerid)
{
	if(!IsPlayerRangeOfPoint(playerid, 10.0, X, Y, Z))
	{
		// Cancel the robbery by killing some other timers.
		KillTimer(_CHECK_NEAR[playerid]);
	}
	return 1;
}
2) You must configure CNRSF to work with the include. Try to manually implement all of the features from the include to the CNRSF version. It should be eh easy. There are some params for the virtual world inside the system, make sure store virtual world matches robbery system's one. Also, falling is at 99% caused by the wrong interior coordinates.

3)
Код:
public OnPlayerStartRobbery(playerid, actorid, robbed_recently)
{
    new string[128];
    if(!robbery_recently) return SendClientMessage(playerid, -1, "Already robbed");
	
	SendClientMessage(playerid, -1, "Robbing started ..");
    return 1;
}
^Code is untested.
Reply


Messages In This Thread
Robbery System - Problems - by BrainDamaged - 27.01.2018, 13:13
Re: Robbery System - Problems - by Fratello - 27.01.2018, 20:40

Forum Jump:


Users browsing this thread: 1 Guest(s)