Robbery System - Problems
#1

I am trying to run the (https://sampforum.blast.hk/showthread.php?pid=3945923#pid3945923) .inc extension in (https://sampforum.blast.hk/showthread.php?tid=573762) mode, but I have encountered a few problems.

My Problem Lists;

1. It does not get canceled when you go out of robbery for 10 meters
2. I'm trying to make the "virtual world" number 6, but I'm failing
3. When the robber starts, there's no information.

My Flies in GM
Actory_robbery.inc
(https://hastebin.com/gecufudeta.http)
Reply
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)