Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Setup all the fields required for the player data (Speedometer TextDraw, current job, ...)
- enum TPlayerData
- {
- PlayerPassword[50], // Holds the password of the player's account
- PlayerNewPassword[50], // Holds the new password for the player
- PlayerLevel, // The admin-level of the player
- PlayerJailed, // Holds jail-time left for this player
- PlayerJailedTimer, // Holds the reference to the jail-timer
- PlayerFrozen, // Holds the time this player is frozen
- PlayerFrozenTimer, // Holds the reference to the frozen-timer
- Warnings, // Holds the number of warnings for this player
- Bans, // Holds the number of bans for this player
- BanTime, // Holds the time where the player is unbanned automatically (when the ban is over)
- bool:LoggedIn, // Holds true if the player has properly logged in
- bool:Muted, // Holds "true" if the player is muted
- bool:RulesRead, // Holds "true" if the player accepted the rules
- AutoReportTime, // Used to prevent the anti-hack system reporting the player every half a second when the player uses hacks
- TruckerLicense, // Holds "1" if the player has acquired his truckers-license
- PilotLicense,
- BusLicense, // Holds "1" if the player has acquired his busdriver license
- TaxiLicense,
- WeaponLicense,
- PlayerMoney, // Holds the money of this player
- PlayerScore, // Holds the score of this player
- PlayerName[24], // Holds the name of the player
- Houses[MAX_HOUSESPERPLAYER], // Holds the HouseID's of the houses that the player owns (index of the AHouseData array)
- CurrentHouse, // Holds the HouseID to track in which house the player currently is (used when accessing the housemenu)
- Business[MAX_BUSINESSPERPLAYER], // Holds the BusinessID's of the business that the player owns
- CurrentBusiness, // Holds the BusinessID to track in which business the player currently is (used when accessing the businessmenu)
- PlayerClass, //Holds the Class that the player chose (1 = truckdriver, 2 = taxidriver, ... -> see DEFINES)
- SpectateID, // Holds the ID of the other player which this player is spectating
- SpectateVehicle, // If the target player is inside a vehicle, store it here
- SpectateType, // Holds the type of spectating (none, player or vehicle)
- Float:PreviousX, // Holds the previous X location of the player (used to detect airbreak hacks)
- Float:PreviousY, // Holds the previous Y location of the player (used to detect airbreak hacks)
- Float:PreviousZ, // Holds the previous Z location of the player (used to detect airbreak hacks)
- PreviousInt, // Holds the previous interior id (used to detect airbreak hacks)
- StatsTruckerJobs, // Holds the number of succesfully completed trucker-missions
- StatsConvoyJobs, // Holds the number of completed trucking-routes when in a convoy
- StatsBusDriverJobs, // Holds the number of completed busroutes
- StatsTaxiDriverJobs,
- StatsPilotJobs, // Holds the number of completed pilot-missions
- StatsMafiaJobs, // Holds the number of completed mafia-missions
- StatsMafiaStolen, // Holds the number of succesfully deliveries of stolen mafialoads
- StatsPoliceFined, // Holds the number of fined players for police
- StatsPoliceJailed, // Holds the number of jailed players for police
- StatsCourierJobs, // Holds the number of completed courier-jobs
- StatsTrashJobs, // Holds the number of completed courier-jobs
- StatsAssistance, // Holds the number of player-vehicles that this player has repaired/refuelled
- StatsRoadworkerJobs, // Holds the number of completed roadworker jobs
- StatsMechanic,
- Float:StatsMetersDriven, // Holds the total kilometers that the player has driven already
- Text:SpeedometerText, // The TextDraw of the speedometer for this player
- Text:FuelGauge, // The textdraw of the fuel-gauge for this player
- SpeedometerTimer, // Holds the reference to the speedometer timer for this player
- PlayerSpeed, // Holds the speed of the player
- PlayerCaughtSpeeding, // This holds a value to prevent being caught multiple times by the same speedcamera
- Timer_PoliceCanJailMe, // This holds a reference to the timer which is started when the player got warned by a police player
- Value_PoliceCanJailMe, // This holds the remaining time for the Timer_PoliceCanJailPlayer timer
- bool:PoliceCanJailMe, // This holds "true" when the player was warned by a police player but didn't stop before the timer ran out
- bool:PoliceWarnedMe, // This holds "true" is the player got caught by a police player and got at least one warning
- bool:AssistanceNeeded, // Holds "true" is the player called for medical assistance
- bool:MechanicNeeded, //Holds "true" is the player called for mechanic assistance
- bool:JobStarted, // States that the player has started a job or not
- Text:MissionText, // Displays the mission info at the bottom of the screen
- JobID, // Mission ID of the job (in the appropriate array, based on the PlayerClass), not used by truckers
- JobStep, // Current step of the job (for trucker: 1 = going to load, 2 = delivering goods to destination)
- Passengers, // Holds the number of passengers (used for busdriver, taxi classes)
- PlayerCheckTimer, // A special timer used by certain classes (police, mafia) to check players every second if they're wanted/carrying mafialoads
- LoadingTimer, // The timer used for loading and unloading during jobs
- VehicleTimerTime, // Holds the remaining seconds for the global vehicletimer
- VehicleID, // Holds the ID of the vehicle that the player is driving during his job
- TrailerID, // Holds the ID of the trailer that the player has attached during his job (is 0 if no trailer attached)
- LoadID, // Holds the ID of the load
- JobLoc1, // Holds the LocationID where to pickup the load (used in trucking missions)
- JobLoc2, // Holds the LocationID where to deliver the load (used in trucking missions)
- bool:Overloaded, // Holds True if the player's vehicle is overloaded (wanted level increases by 2)
- bool:MafiaLoad, // Holds True is the player's load is wanted by the mafia
- bool:MafiaLoadHijacked, // Holds true if the mafia-player has hijacked a mafia-load
- bool:InConvoy, // Holds true if the player has joined a convoy already
- ConvoyID, // Holds the ID of the convoy where this player is a member
- CourierHouses[11], // This holds up to 10 HouseID's for use during Courier-missions
- CourierMaxStep, // This holds the max number of houses to deliver packages to
- TrashHouses[11], // This holds up to 10 HouseID's for use during Courier-missions
- TrashMaxStep, // This holds the max number of houses to deliver packages to
- DialogFirstItem, // Holds the first array-index where a split dialog must start
- DialogCarFirstCar, // Holds the first array-index where the carlist should start when the player asks to choose a car to spawn ("/car")
- DialogPlaneFirstPlane, // Holds the first array-index where the planelist should start when the player asks to choose a plane to spawn ("/plane")
- DialogTrailerFirstTrailer, // Holds the first array-index where the trailerlist should start when the player asks to choose a trailer to spawn ("/trailer")
- DialogTruckFirstTruck,
- DialogRentVClass, // Holds the ID of the chosen vehicle class to process when renting a vehicle
- DialogRentCarIndex, // Holds the index in the ABuyableVehicles array which vehicle the player chose to rent
- DialogBuyVClass, // Holds the ID of the chose vehicle class to process when buying a vehicle
- DialogBuyCarIndex, // Holds the index in the ABuyableVehicles array which vehicle the player chose to buy
- DialogGetCarHouseID, // Holds the HouseID from which to get a vehicle when using /getcar
- DialogOtherPlayer, // Holds the id of the other player when viewing that other player's stats
- DialogOtherPlayerHouse, // Holds the HouseID of the other player when viewing the stats for that house
- BankPassword[24], // Bank-system: Used to hold the password to your bank-account
- bool:BankLoggedIn, // Bank-system: Used to determine if you have logged in to your bank account
- BankMoney, // Bank-system: Used to hold the money in your bank-account
- UseMoney, // Bank-system: Used to hold the money you're be transferring to another player's account
- LastIntrestTime, // Bank-system: Used to hold the last time where your bank account has received intrest
- RentedVehicleID // Holds the vehicle-id of the rented vehicle (if any)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement