[GameMode] New Vegas Cops And Robbers [Official Release]
#1

Note: The old release of this script has been removed.

NVCNR Trailer

http://www.youtube.com/watch?v=BXkerUPFSz4

Video Credits: JJB562

Quote:
UPDATE 5TH JANUARY 2016: There will no longer be support for NVCNR as of today, the 5th January 2016.
Quote:
UPDATE 19TH APRIL 2015: YOU ARE ALOUD TO MAKE ADDITIONS AND RE-RELEASE THIS SCRIPT AS LONG AS MY CREDITS ARE RESPECTED. YOU DO NOT HAVE PERMISSION TO RE-RELEASE ANYTHING OTHER THAN MY WORK, THAT INCLUDES THE PLUGINS AND INCLUDES IT USES, YOU MAY ONLY RE-RELEASE THE GAMEMODE.

FOR THE PEOPLE STRUGGLING WITH COMMANDS, HERE IS THE LIST OF COMMANDS:

(CLASS COMMANDS)

Cop Commands: /rules /help /faqs /pc /n /cp /vehcmds /pm /ad /gcmds /loc /(biz/house)menu /join /vcmds /me /do /healme /cutrope /call(911/medic/mechanic/dealer) /anims /(save)stats /report /fail /paint /lotto /vlock(/lk) /pay /lotto /viplist /newvegas /debit /credit /askadmin /dinfo /wealth /kill (Class commands: /ar /tk /cuff(/cf) /uncuff /c /taze(/tz) /(acc/dec)bribe /bail /shield /raid /pickup)

CIA Commands: /rules /help /faqs /pc /n /cp /vehcmds /pm /ad /gcmds /loc /(biz/house)menu /join /vcmds /me /do /healme /cutrope /call(911/medic/mechanic/dealer) /anims /(save)stats /report /fail /paint /lotto /vlock(/lk) /pay /lotto /viplist /newvegas /debit /credit /askadmin /dinfo /wealth /kill (Class commands: /ar /tk /cuff(/cf) /uncuff /c /taze(/tz) /(acc/dec)bribe /bail /shield /raid /pickup)

FBI Commands: /rules /help /faqs /pc /n /cp /vehcmds /pm /ad /gcmds /loc /(biz/house)menu /join /vcmds /me /do /healme /cutrope /call(911/medic/mechanic/dealer) /anims /(save)stats /report /fail /paint /lotto /vlock(/lk) /pay /lotto /viplist /newvegas /debit /credit /askadmin /dinfo /wealth /kill (Class commands: /ar /tk /cuff(/cf) /uncuff /c /taze(/tz) /(acc/dec)bribe /bail /shield /raid /pickup)

Civilian Commands: /rules /help /faqs /pc /n /cp /vehcmds /pm /ad /gcmds /loc /(biz/house)menu /join /vcmds /me /do /healme /cutrope /call(911/medic/mechanic/dealer) /anims /(save)stats /report /fail /paint /lotto /vlock(/lk) /pay /lotto /viplist /newvegas /debit /credit /askadmin /dinfo /wealth /kill (Class commands: /(rob)list /esc /(un)tie /(cancel)hit /hits /(break)out/cuffs /bribe /mask /blowbomb /breakin)

Medic Commands: /rules /help /faqs /pc /n /cp /vehcmds /pm /ad /gcmds /loc /(biz/house)menu /join /vcmds /me /do /healme /cutrope /call(911/medic/mechanic/dealer) /anims /(save)stats /report /fail /paint /lotto /vlock(/lk) /pay /lotto /viplist /newvegas /debit /credit /askadmin /dinfo /wealth /kill (Class commands: /medic /m)

(ADMIN COMMANDS)

Lvl4: /(h/b)cmds /set(score/level/vip/helper/hhelper/builder)
Lvl3: /restart /(ban)ip /set(wanted/health/armour/cash/skin) /get
Lvl2: /aweaps /car /force /jetpack /ban /afix /events /god(car) /goto /explode /ip /flip /akill /give(gun/cash)
Lvl1: /goto(at/cells) /(un)mute /nmute /®warn /kick /ann /asay /dcar /clearchat /addnos /disarm /duty /a /(spec)off /cage /(un)freeze /ap /aranks /mutelist /(save/load)pos /exitat /plus /minus /undercover

(VIP COMMANDS)

Platinum VIP Lvl 4: /vheal (+ levels 1-3 commands)
Gold VIP Lvl 3: /vskin /(save/load)pos (+ levels 1-2 commands)
Silver VIP Lvl 2: /vweaps (+ level 1 commands)
Bronze VIP Lvl 1: /v /vsay /vfix /vfuel /flip /addnos /(open/close)hanger /exitat /togglecolor

(HOUSE COMMANDS - LEVEL 4 ADMIN/BUILDER ONLY)

Commands: /createhouse [type] /removehouse [house id] /removeallhouses /resethouseprices /sellhouse [house id] /sellallhouses (Types: 1. One Story House | 2. Two Story House | 3. Small Mansion | 4. Large Mansion)

Note: Some commands are resticted to builders.

(BUSINESS COMMANDS - LEVEL 4 ADMIN/BUILDER ONLY)

Commands: /createbiz /delete(all)biz /sell(all)biz

Note: Some commands are resticted to builders.

(VEHICLE COMMANDS)

Commands: /myvehs /service /setplate /boot /bonnet /deleteveh /alarm /lights /lock(/lk) /park /(decline/accept)veh /sellvehto

(GROUP COMMANDS)

Commands: /groupcreate(/grc) /groupjoin(/grj) /groupleave(/grl) /groupinvite(/gri) /groupleader(/grlead) /groupkick(/grk) /groupmessage(/gm) /grouplist(/grlist) /groups

NOTE: SORRY, BUT NVCNR WILL NOT BE UPDATED AGAIN.

Quote:
UPDATE 16TH OCTOBER 2014: USE /OPENPD & /CLOSEPD FOR NVPD GATES, USE /OPENHQ & /CLOSEHQ FOR FBI HQ GATES, IF YOU ARE HAVING TROUBLE WITH THE CHECKPOINTS EDIT YOUR CHECKPOINT MANAGER INCLUDE TO CHECKPOINT SIZES OF 10.0 AND STREAM DISTANCE OF 4.0 (DEFAULT STREAM DISTANCE IS 10.0) OTHERWISE ADD ME ON SKYPE(weponz) FOR A COMPILED PACKAGE < DUE TO SA:MP FORUM RULES I CANNOT LINK YOU A MODIFIED CHECKPOINT MANAGER INCLUDE. YOU CAN MAKE YOURSELF ADMIN BY CHANGING YOUR ADMIN LEVEL IN YOUR ACCOUNT FILE(admin=0), THEN YOU CAN /SETLEVEL IN-GAME, ENJOY!
Description:

Quote:

New Vegas Cops And Robbers(NVCNR) is a San Andreas Multiplayer(SA:MP) gameserver with a Cops And Robbers(CNR) mode and a Las Vegas(New Vegas) remake theme. You can start as a Civilian(Robber) and rob casinos, banks, stores, hq's and players while trying to evade law enforcement and jail time, or you can be a Cop and police the New Vegas streets arresting wanted(Red) players and ticketing suspect(Yellow) players. You can also purchase Master Degrees(Skills) from New Vegas University to access restricted classes, vehicles, weapons, features and more and purchase 1/2 story houses, small/large mansions and apartments with in-game money or purchase personal vehicles from New Vegas Motors.

Details:

Quote:

- Script Birth: Early 2010
- Script Developer: Weponz
- Starting Version: 1.0
- Current Version: 2.3 (13 major updates)
- Script Build: pawn, zcmd, sscanf2, foreach, y_ini, Whirlpool, streamer, y_timers, CheckpointManager, GetVehicleColor
- Script Line Count: 28,466 lines
- Script Bugs: None Known

Features:

Quote:

1. Las Venturas(New Vegas) map utilized ONLY(All main bridges blocked off)

2. Unique New Vegas Square location across from NVPD

3. Six(6) Classes:

- Civilians - No Restrictions
- Cops - No Restrictions
- CIA - Restricted to Law Degree
- FBI - Restricted to Law Degree
- Army - Restricted to Defense Degree
- Medic - Restricted to Medical Degree

4. Unique to NVCNR: Master Degrees(Skills):

- Real Estate Degree - Own up to 5 houses and 5 businesses(3 default) + ability to sell owned properties to players at any price
- Law Degree - Access to CIA/FBI classes and vehicles
- Defense Degree - Access to Army class and vehicles
- Medical Degree - Access to Medic class and features
- Mechanical Degree - Ability to fix and refuel any vehicle at any price
- Dealership Degree- Own up to 5 vehicles(3 default) + ability to sell owned vehicles to players at any price
- Weapon Degree - Ability to sell/buy/get materials and guns to anyone at anytime at any price

5. User/Admin/VIP System:

- User System:
- Everything saves from health/armour to relog positions, guns, holdup and arrest count to warn and join count and more.
- Ability to change your password at anytime
- Ability to view any players statistics or wealth at anytime
- Ability to report online players to online admins
- Access to Player Control Panel

- Admin System:
- Levels Include: Trial Admin(1), Server Admin(2), Head Admin(3), Owner(4)
- Event System with joining commands(/join) and vehicle/weapon setting commands.
- Object Creation System: Create, Set, Move and Edit created objects(No restrictions)
- Duty System: /onduty changes to admin skin/color and you cant die or be arrested or robbed.
- Warning, Caging, Spetating and Banning/Kicking Systems
- Access to admin server activity message log
- Access to Admin Control Panel
- Approx 50+ admin commands including object and event commands

- VIP System:
- Levels Include: Bronze(1), Silver(2), Gold(3), Platinum(4)
- Evade all taxes and medical fees
- Access weapon spawning commands at anytime
- Access health setting commands at anytime
- Access vehicle modification, refueling, repairing and flipping commands at anytime
- Hide wanted level with a single command(Changes marker orange)
- Access to private VIP chat channel
- Ability to make VIP announcements
- Ability to change to any skin id at anytime
- Ability to save and load positions
- Ability to heal yourself every 3 mins
- Access to Admin Tower and Hanger

6. Dynamic Housing System:

- Create houses in-game(1 command, completely automatic)
- 5 interiors: 1 story house, 2 story house, small mansion, large mansion, apartment
- Civilians have a chance to /breakin
- Law Enforcement can /raid
- Owners can give up to 10 house keys to players at a time(saves)
- Owners can edit there house name(3d text)
- Own up to 3 houses on default
- Own up to 5 houses with a Real Estate Degree
- Own up to 7 houses as a VIP

7. Dynamic Business System:

- Create businesses in-game(1 command, completely automatic)
- 1 interior: 24/7 store and menu + gun menu
- Owner earns 25% of each sale made(Even if owner is offline)
- Business value grows 9-10K each sale made
- When sold, 50% of the businesses value is given to owner, regardless of the buying price
- Owner can withdraw business earnings at anytime
- Civilians have a chance to rob a business(Only if the owner is online, else the robbery fails)
- Owners can edit there business name(3d text)
- Own up to 3 businesses on default
- Own up to 5 businesses with a Real Estate Degree
- Own up to 7 businesses as a VIP

8. Personal Vehicle System:

- Purchase from a range of Sports Cars, Motor Bikes or Special Vehicles
- Sports Cars Include: Infernus, Bullet, Comet, Banshee, Super-GT, Sultan, Elegy
- Motor Bikes Include: NRG-500, FCR-900, PCJ-600, Sanchez
- Special Vehicles Include: Maverick, Vortex, Monster Truck, Bandito, Quad Bike
- Own up to 3 vehicles on default
- Own up to 5 vehicles with a Dealership Degree
- Own up to 7 vehicles as a VIP

9. Robbery System:

- A total of 36 robberies with 20 robbery commands
- Each robbery takes 25 secs
- Robberies have a 0/3 chance of robbery success
- Each robbery place cannot be robbed within 2 mins from the last robbery
- Banks, Casinos, HQ's, Bar, Gym and the Club are high rank robberies(Random: $49 + $1K)
- Ammunations, 24/7 Stores, Cluck'n Bells, Burger Shots and Well Stacked Pizzas are low ranked robberies(Random: $19 + $1K)
- Locations:
- 5x Burger Shots
- 3x Cluck'n Bells
- 4x 24/7 Stores
- 6x Ammunations
- 4x Banks
- 1x Well Stacked Pizzas
- 1x Emerald Isle Casino
- 1x Caligulas Casino
- 1x 4 Dragons Casino
- 1x Redsands Casino
- 1x New Vegas Casino
- 1x NVPD
- 1x New Vegas FBI HQ
- 1x New Vegas CIA HQ
- 1x New Vegas City Hall
- 1x New Vegas Bar
- 1x New Vegas Gym
- 1x New Vegas University
- 1x New Vegas Club

10. Bank System:

- A total of four(4) Branches Including: New Vegas Square, El Quebrados, Fort Carson and Las Barrancas
- Deposit/WithdrawTransfer or view your Balance at any Bank
- Purchase from a range of Bank Loans including: Budget Loan[$1M], Economy Loan[$3M], Investment Loan[$5M] or Wealth Loan[$10M]
- Each loan is 25% interest of the loan amount taken(ie. Budget loan = 1.25M debt)
- Credit Check System: All debt owing must be paid before loans can be taken
- Gain 1.5% in interest on your bank funds every 1 hour

11. Lotto System:

- Purchase lottery tickets from a 24/7 store or business for your chance to win
- 6 numbers are randomly generated for each lottery ticket
- The draw is drawn every 10 mins
- Multiple players can win at one time
- Winning Include:
- 1 Number Correct = $250K
- 2 Numbers Correct = $750K
- 3 Numbers Correct = $1M
- 4 Numbers Correct = $5M
- 5 Numbers Correct = $7M
- 6 Numbers Correct = $10M [MAX WIN]

12. Gym System:

- Boxing Ring has a entering checkpoint
- Purchase from a range fighting styles
- Fighting Styles Include:
- Elbow Style
- Boxer Style
- Grab and Kick Style
- Kung Fu Style

13. Jail System

- Being arrested means 4 mins jail
- Prisoners have the ability to escape
- Civilians have the ability to break out prisoners
- Law enforcement have the ability to bail out prisoners

14. Service Station System:

- 8x Street Service Stations(Cars/Bikes)
- 1x Bayside Marina Service Stations(Boats)
- 1x Airport Service Station(Planes and Helis)
- Repair and Refuel your vehicle at any service station
- Modify your vehicle with every possible SA:MP modification(saves for owned vehicles) at any service station
- Choose from a range of Neon lights to your owned vehicle(saves) at any service station

15. Tax System:

- Pay 0.75% General Taxes of your current wealth higher than $1M and lower than $5M ever hour
- Pay 1.5% Wealth Taxes of your current wealth higher than $5M ever hour
- Pay random 10K property taxes for 1 or more houses
- Pay random 20K property taxes for 1 or more businesses
- Players with wealth lower than $1M evade taxes
- VIPs evade taxes altogether

and much MUCH more...

Credits:

Quote:

1. Weponz - Founder/Soul Developer
2. SA:MP - Callbacks and Functions and GetXYPosInFrontOfPlayer
3. ****** - Whirlpool, sscanf2, y_ini and y_timers
4. ZeeX - ZCMD
5. Incognito - Streamer Plugin
6. Joao Pedro Lopes - Checkpoint Manager
7. RyDeR` - GetVehicleColor
8. [HiC]TheKiller - Group chat system
9. Garsino - Parts of GarHouse v1.0 for NVCNR_house
10. Donya - Vehicle mod prices array and IsPlayerInInvalidNosVehicle
11. Mauzen - Anti D-AMX script, IsPlayerSkydiving and IsPlayerUsingParachute stocks
12. DracoBlue - IsNumeric, PropertySet stock and dprop_PRIVATE_hash
13. MP2 - Cuff fall over script

Download:

***Gamemode Package*** (Compile: 0.3x - Updated: 13th September 2013)

* IMPORTANT: Mirrors NOT allowed.

Installation:

Quote:

Step #1: Download the Gamemode Package and unzip it into your server root directory.
Step #2: Download and install YSI.
Step #3: Download and install sscanf.
Step #4: Download and install zcmd.
Step #5: Download and install foreach.
Step #6: Download and install Whirlpool.
Step #7: Download and install GetVehicleColor.
Step #8: Download and install Checkpoint Manager.

Quote:

NOTE: SA:MP Forums does not allow me to release other peoples work on this forum, thus the reason why you need to download the required plugins/includes.

Support:

Quote:

NOTE: There will no longer be support for NVCNR as of today, the 5th January 2016.

Reply
#2

Good job!
Reply
#3

Quote:
Originally Posted by sanplayer
Посмотреть сообщение
Good job!
Thank you, and enjoy.
Reply
#4

Where the download ?
Reply
#5

Quote:
Originally Posted by ChandraLouis
Посмотреть сообщение
Where the download ?
Sorry was updating the download link. Its now there.
Reply
#6

Nice
Reply
#7

C:\Users\Giover\Downloads\server\gamemodes\NVCNR.p wn(5) : fatal error 100: cannot read from file: "YSI\y_ini"

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply
#8

First you need Y_Ini
and open the pawno from > C:\Users\Giover\Downloads\server\pawno\pawno.exe
then load the NVCNR.pwn
Reply
#9

include lack all appearing in gm
Reply
#10

Reply
#11

Quote:
Originally Posted by ChandraLouis
Посмотреть сообщение
Nice
Thank you, enjoy.

Quote:
Originally Posted by giover
Посмотреть сообщение
C:\Users\Giover\Downloads\server\gamemodes\NVCNR.p wn(5) : fatal error 100: cannot read from file: "YSI\y_ini"

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.
Follow the instructions.

Quote:
Originally Posted by giover
Посмотреть сообщение
Installed the plugins/includes stated in the installation instructions?
Reply
#12

nice gm
Reply
#13

Nice Man I will Try It On My Server
Reply
#14

Quote:
Originally Posted by 0x
Посмотреть сообщение
nice gm
Thanks.

Quote:
Originally Posted by Xtream
Посмотреть сообщение
Nice Man I will Try It On My Server
Thanks, and enjoy!
Reply
#15

Can you help me ?

I opened samp-server.exee it said


I downloaded CheckpointManager and re-compiled it.
It said couldnt read (fatal error) from CheckpointManager

This is what I found in checkpointmanager.inc

pawn Код:
//  Checkpoint Manager
//  © Joгo Pedro Lopes, All right's reserved
//  
//  Feel free to change any line above, as long as you post the 'fix' / 'patch' at the forum
//  and send a copy to jplopes@live.com.pt

/* natives
    native CreateCheckpoint(ownerid, chpid, Float:posX, Float:posY, Float:posZ); // Creates a checkpoint
    native SetCheckpointInterior(chpid, interiorid); // Changes the checkpoint interior
    native SetCheckpointVirtualWorld(chpid, VirtualWorldID); // Changes the Checkpoint vWorld
    native ToggleCheckpointActive(chpid, bool:active); // Deactivates / Activates the checkpoint
    native ChangeCheckpointOwner(chpid, owner); // Change the checkpoint owner
    native RemoveCheckpoint(chpid); // Removes the specified checkpoint
    native StartCheckpointSeeking(); // Starts seeking for each individual
    native StopCheckpointSeeking(); // Stops the system
    native VerifyCheckpoint(playerid); // Place this at OnPlayerEnterCheckpoint
*/


// Function Forwards
forward public OnCheckpointEnter(playerid, checkpointid);

#if defined _CHECKPOINT_MANAGER_INCLUDED
    #endinput
#endif

#define _CHECKPOINT_MANAGER_INCLUDED
#pragma library CheckpointManager

#include <a_samp>

#define MAX_CHECKPOINTS 200
#define CHECKPOINT_SEEKER_DELAY 300

#define GLOBAL_OWNER_ID -1


// CHECKPOINT ENUMERATION
enum _checkpointEnum{
    _chp_populated,         // Is this slot of the memory populated?
   
    _chp_id,                // The ID of the checkpoint
    _chp_owner,             // The ID of the player who this checkpoint is visible too
   
    Float:_chp_posX,        // The X position of this checkpoint
    Float:_chp_posY,        // The Y position of this checkpoint
    Float:_chp_posZ,        // The Z position of this checkpoint
    Float:_chp_size,        // The checkpoint size
    Float:_chp_viewDistance,    // The checkpoint view distance
   
    bool:_chp_active,       // Is this checkpoint active?
   
    _chp_interior_id,       // The interior id of this checkpoint
    _chp_world_id           // The world id of this checkpoint
};

// DATA ARRAYS
new _checkpoints[MAX_CHECKPOINTS][_checkpointEnum];
new _p_VisibleCheckpoint[MAX_PLAYERS];
new _chp_manager_timer_id;

// DATA VARIABLES
new _totalCheckpoints;

// --------------------------------------------------------------------------------------------------------
// Creates a new checkpoint with some initial data
stock CreateCheckpoint(__ownerid, __chpid, Float:__posX, Float:__posY, Float:__posZ){
    // Max checkpoint reached?
    if(_totalCheckpoints == MAX_CHECKPOINTS) return 0;
   
    // First checkpoint? Setting everything to unpopulated
    if(!_totalCheckpoints){
        for(new i; i < MAX_PLAYERS; i++) _p_VisibleCheckpoint[i] = -1;
        for(new i; i < MAX_CHECKPOINTS; i++){
            _checkpoints[i][_chp_populated] = false;
        }
       
        // Sending the Initialization Info
        printf("[Checkpoint Manager : Version 0.1.1b] System Initialized...", __chpid);
    }
   
    // Getting the first open slot
    new _slot;
    for(new i = 0; i < MAX_CHECKPOINTS; i++){
        if(!_checkpoints[i][_chp_populated]){
            _slot = i;
            break;
        }
    }
   
    // Adding the new checkpoint
    _checkpoints[_slot][_chp_populated] = true;
    _checkpoints[_slot][_chp_id] = __chpid;
    _checkpoints[_slot][_chp_owner] = __ownerid;
    _checkpoints[_slot][_chp_posX] = __posX;
    _checkpoints[_slot][_chp_posY] = __posY;
    _checkpoints[_slot][_chp_posZ] = __posZ;
    _checkpoints[_slot][_chp_size] = 5.0;
    _checkpoints[_slot][_chp_viewDistance] = 20.0;
    _checkpoints[_slot][_chp_active] = true;
    _checkpoints[_slot][_chp_interior_id] = 0;
    _checkpoints[_slot][_chp_world_id] = 0;
   
    printf("[Checkpoint Manager] Checkpoint created (%d) at slot %d", __chpid, _slot);
    printf("Checkpoint Position: { %f, %f, %f }", _checkpoints[_slot][_chp_posX], _checkpoints[_slot][_chp_posY], _checkpoints[_slot][_chp_posZ]);
   
    _totalCheckpoints++;
    return 1;
}

//---------------------------------------------------------------------------------------------
stock SetCheckpointInterior(__chpid, __interiorid){
    new _slot = __ChpSlotByID(__chpid);
    if(_slot > -1){
        // Valid slot?
        _checkpoints[_slot][_chp_interior_id] = __interiorid;
        return 1;
    }
    return 0;
}

//---------------------------------------------------------------------------------------------
stock SetCheckpointVirtualWorld(__chpid, __virtual_world_id){
    new _slot = __ChpSlotByID(__chpid);
    if(_slot > -1){
        _checkpoints[_slot][_chp_world_id] = __virtual_world_id;
        return 1;
    }
    return 0;
}

stock ToggleCheckpointActive(__chpid, bool:__active){
    new _slot = __ChpSlotByID(__chpid);
    if(_slot > -1){
        _checkpoints[_slot][_chp_active] = __active;
        return 1;
    }
    return 0;
}

stock ChangeCheckpointOwner(__chpid, __owner){
    new _slot = __ChpSlotByID(__chpid);
    if(_slot > -1){
        _checkpoints[_slot][_chp_owner] = __owner;
        return 1;
    }
    return 0;
}

stock RemoveCheckpoint(__chpid){
    new _slot = __ChpSlotByID(__chpid);
    if(_slot > -1){
        // Deleting the checkpoint
        _checkpoints[_slot][_chp_populated] = false;
        _checkpoints[_slot][_chp_id] = -1;
        _checkpoints[_slot][_chp_owner] = 255;
        _checkpoints[_slot][_chp_posX] = -1;
        _checkpoints[_slot][_chp_posY] = -1;
        _checkpoints[_slot][_chp_posZ] = -1;
        _checkpoints[_slot][_chp_size] = -1;
        _checkpoints[_slot][_chp_viewDistance] = -1;
        _checkpoints[_slot][_chp_active] = false;
        _checkpoints[_slot][_chp_interior_id] = -1;
        _checkpoints[_slot][_chp_world_id] = -1;
        _totalCheckpoints--;
        printf("\n[Checkpoint Manager] Checkpoint removed (ID: %d)", __chpid);
        return 1;
    }
    return 0;
}

//---------------------------------------------------------------------------------------------
// Gets the checkpoint slot by id
stock __ChpSlotByID(__chpid){
    for(new i; i < MAX_CHECKPOINTS; i++){
        if(_checkpoints[i][_chp_id] == __chpid) return i;
    }
    return -1;
}


forward CheckpointSeeker();
stock StartCheckpointSeeking(){
    _chp_manager_timer_id = SetTimer("CheckpointSeeker", CHECKPOINT_SEEKER_DELAY, 1);
    return 1;
}

stock StopCheckpointSeeking(){
    KillTimer(_chp_manager_timer_id);
    return 1;
}

public CheckpointSeeker(){
    new Float:__posX, Float:__posY, Float:__posZ;
    new __interior;
    new __virtualWorld;
    for(new i; i < MAX_PLAYERS; i++)
    {
        if(!IsPlayerConnected(i)) continue;
       
        GetPlayerPos(i, Float:__posX, Float:__posY, Float:__posZ);
        // Is the player near a checkpoint?
        if(_p_VisibleCheckpoint[i] > -1)
        {
            // If the player is no longer near that point
            if(__posX < (_checkpoints[_p_VisibleCheckpoint[i]][_chp_posX] - _checkpoints[_p_VisibleCheckpoint[i]][_chp_viewDistance])
            || __posX > (_checkpoints[_p_VisibleCheckpoint[i]][_chp_posX] + _checkpoints[_p_VisibleCheckpoint[i]][_chp_viewDistance])
            || __posY < (_checkpoints[_p_VisibleCheckpoint[i]][_chp_posY] - _checkpoints[_p_VisibleCheckpoint[i]][_chp_viewDistance])
            || __posY > (_checkpoints[_p_VisibleCheckpoint[i]][_chp_posY] + _checkpoints[_p_VisibleCheckpoint[i]][_chp_viewDistance])){
                DisablePlayerCheckpoint(i);
                _p_VisibleCheckpoint[i] = -1;
            }
        }
        else
        {
            // Getting the player Interior and virtual world
            __interior = GetPlayerInterior(i);
            __virtualWorld = GetPlayerVirtualWorld(i);
           
            // Looking for a new checkpoint
            for(new j = 0; j < MAX_CHECKPOINTS; j++){
                if(!_checkpoints[j][_chp_populated]) continue;
                if((_checkpoints[j][_chp_owner] != i) && (_checkpoints[j][_chp_owner] != -1)) continue;
                if(_checkpoints[j][_chp_interior_id] != __interior) continue;
                if(_checkpoints[j][_chp_world_id] != __virtualWorld) continue;
               
                if(__posX > (_checkpoints[j][_chp_posX] - _checkpoints[j][_chp_viewDistance])
                && __posX < (_checkpoints[j][_chp_posX] + _checkpoints[j][_chp_viewDistance])
                && __posY > (_checkpoints[j][_chp_posY] - _checkpoints[j][_chp_viewDistance])
                && __posY < (_checkpoints[j][_chp_posY] + _checkpoints[j][_chp_viewDistance])){
                    SetPlayerCheckpoint(i, _checkpoints[j][_chp_posX], _checkpoints[j][_chp_posY], _checkpoints[j][_chp_posZ], _checkpoints[j][_chp_size]);
                    _p_VisibleCheckpoint[i] = j;
                    break;
                }
            }
        }
    }
    return 1;
}

stock VerifyCheckpoint(__playerid){
    if(_p_VisibleCheckpoint[__playerid] >= 0){
        OnCheckpointEnter(__playerid, _checkpoints[_p_VisibleCheckpoint[__playerid]][_chp_id]);
        return 1;
    }
    return 0;
}
Reply
#16

Quote:
Originally Posted by Inspiron
Посмотреть сообщение
Can you help me ?

I opened samp-server.exee it said


I downloaded CheckpointManager and re-compiled it.
It said couldnt read (fatal error) from CheckpointManager

This is what I found in checkpointmanager.inc
Hello , Inspiron
Your Plugins Is The Error Caused !
Rep me if i helped
Reply
#17

Guys I couldn't compile.. it gave me too many errors.. i got no tym to fix for myself..plz someone help me compiled .am plzz
Reply
#18

@rakshith122

New Vegas University is the big building(a museum) down the stairs across from the police department. In New Vegas Square(the mapped area).
Reply
#19

work just fine awesome work some warnings but runs smoothly
Reply
#20

Please I didn't know how to compile and all with plugins it still show me Time run error 19, Please can someone give me folder full; Thnx
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)