27.01.2018, 20:40
1)
Replace X Y Z with yours.
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)
^Code is untested.
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; }
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; }