1460db6af7
Adds the p_TogglePBChat variable to player.pwn
228 lines
10 KiB
Plaintext
228 lines
10 KiB
Plaintext
/*
|
|
* Irresistible Gaming (c) 2018
|
|
* Developed by Lorenc
|
|
* Module: cnr\player.pwn
|
|
* Purpose: all player related variables (cnr)
|
|
*/
|
|
|
|
/* ** Macros ** */
|
|
#define IsPlayerTied(%1) (p_Tied{%1})
|
|
#define IsPlayerTazed(%1) (p_Tazed{%1})
|
|
#define IsPlayerCuffed(%1) (p_Cuffed{%1})
|
|
#define IsPlayerKidnapped(%1) (p_Kidnapped{%1})
|
|
#define IsPlayerBlowingCock(%0) (p_GivingBlowjob{%0})
|
|
#define IsPlayerGettingBlowed(%0) (p_GettingBlowjob{%0})
|
|
#define IsPlayerLoadingObjects(%0) (p_pausedToLoad{%0})
|
|
#define IsPlayerAdminJailed(%0) (p_AdminJailed{%0} && p_JailTime[%0])
|
|
#define IsPlayerDetained(%0) (p_Detained{%0})
|
|
|
|
/* ** Variables ** */
|
|
new
|
|
bool: p_Spawned [ MAX_PLAYERS char ],
|
|
p_AdminLevel [ MAX_PLAYERS ],
|
|
p_Job [ MAX_PLAYERS char ],
|
|
p_VIPJob [ MAX_PLAYERS char ],
|
|
bool: p_JobSet [ MAX_PLAYERS char ],
|
|
p_JailTime [ MAX_PLAYERS ],
|
|
p_AdminJailed [ MAX_PLAYERS char ],
|
|
p_JailTimer [ MAX_PLAYERS ],
|
|
bool: p_Jailed [ MAX_PLAYERS char ],
|
|
bool: p_Tazed [ MAX_PLAYERS char ],
|
|
p_LastVehicle [ MAX_PLAYERS ] = { INVALID_VEHICLE_ID, ... },
|
|
bool: p_Cuffed [ MAX_PLAYERS char ],
|
|
p_CuffAbuseTimer [ MAX_PLAYERS ],
|
|
p_AntiRobSpam [ MAX_PLAYERS ],
|
|
p_AntiRapeSpam [ MAX_PLAYERS ],
|
|
bool: p_Tied [ MAX_PLAYERS char ],
|
|
p_Ropes [ MAX_PLAYERS ],
|
|
bool: p_Kidnapped [ MAX_PLAYERS char ],
|
|
bool: p_ToggledViewPM [ MAX_PLAYERS char ],
|
|
bool: p_ToggleCopChat [ MAX_PLAYERS char ],
|
|
bool: p_TogglePBChat [ MAX_PLAYERS char ],
|
|
bool: p_pausedToLoad [ MAX_PLAYERS char ],
|
|
bool: p_CantUseReport [ MAX_PLAYERS char ],
|
|
p_pausedToLoadTimer [ MAX_PLAYERS ],
|
|
p_OwnedHouses [ MAX_PLAYERS ],
|
|
p_OwnedVehicles [ MAX_PLAYERS ],
|
|
p_OwnedBusinesses [ MAX_PLAYERS ],
|
|
p_TrackingTimer [ MAX_PLAYERS ] = { -1, ... },
|
|
p_ContractedAmount [ MAX_PLAYERS ],
|
|
p_MetalMelter [ MAX_PLAYERS ],
|
|
p_Kills [ MAX_PLAYERS ],
|
|
p_Deaths [ MAX_PLAYERS ],
|
|
p_VIPLevel [ MAX_PLAYERS ],
|
|
// p_XP [ MAX_PLAYERS ],
|
|
bool: p_Spectating [ MAX_PLAYERS char ],
|
|
bool: p_Muted [ MAX_PLAYERS char ],
|
|
bool: p_ChatBanned [ MAX_PLAYERS char ],
|
|
p_ChatBannedBy [ MAX_PLAYERS ] [ MAX_PLAYER_NAME ],
|
|
p_ChatBanReason [ MAX_PLAYERS ] [ 25 ],
|
|
bool: p_InfectedHIV [ MAX_PLAYERS char ],
|
|
p_AntiTextSpam [ MAX_PLAYERS ],
|
|
bool: p_BlockedPM [ MAX_PLAYERS ] [ MAX_PLAYERS ],
|
|
bool: p_inFBI [ MAX_PLAYERS char ],
|
|
bool: p_inArmy [ MAX_PLAYERS char ],
|
|
p_MutedTime [ MAX_PLAYERS ],
|
|
p_AntiCommandSpam [ MAX_PLAYERS ],
|
|
p_PmResponder [ MAX_PLAYERS ] = { INVALID_PLAYER_ID, ... },
|
|
bool: justConnected [ MAX_PLAYERS char ],
|
|
Text3D: p_InfoLabel [ MAX_PLAYERS ] = { Text3D: INVALID_3DTEXT_ID, ... },
|
|
p_InfoLabelString [ MAX_PLAYERS ] [ 32 ],
|
|
bool: p_inCIA [ MAX_PLAYERS char ],
|
|
p_AntiEmpSpam [ MAX_PLAYERS ],
|
|
bool: p_inPaintBall [ MAX_PLAYERS char ],
|
|
p_Scissors [ MAX_PLAYERS ],
|
|
// p_TaxTime [ MAX_PLAYERS ],
|
|
p_VIPArmourRedeem [ MAX_PLAYERS ],
|
|
p_VIPWeaponRedeem [ MAX_PLAYERS ],
|
|
p_VIPExpiretime [ MAX_PLAYERS ],
|
|
p_LastSkin [ MAX_PLAYERS ],
|
|
bool: p_MoneyBag [ MAX_PLAYERS char ],
|
|
p_CopBanned [ MAX_PLAYERS char ],
|
|
p_AntiEMP [ MAX_PLAYERS ],
|
|
p_Warns [ MAX_PLAYERS ],
|
|
p_Wood [ MAX_PLAYERS ],
|
|
p_LumberjackDeliver [ MAX_PLAYERS ] = { 0xFFFF, ... },
|
|
p_LumberjackReturn [ MAX_PLAYERS ] = { 0xFFFF, ... },
|
|
p_LumberjackTimeElapsed [ MAX_PLAYERS ],
|
|
bool: p_StartedLumberjack [ MAX_PLAYERS char ],
|
|
p_Uptime [ MAX_PLAYERS ],
|
|
p_AchievementTimer [ MAX_PLAYERS ] = { 0xFF, ... },
|
|
bool: p_SecureWallet [ MAX_PLAYERS char ],
|
|
p_WeedGrams [ MAX_PLAYERS ],
|
|
p_WeedDealer [ MAX_PLAYERS ] = { INVALID_PLAYER_ID, ... },
|
|
p_WeedTick [ MAX_PLAYERS ],
|
|
p_WeedSellingGrams [ MAX_PLAYERS ],
|
|
p_WeedSellingPrice [ MAX_PLAYERS ],
|
|
p_Arrests [ MAX_PLAYERS ],
|
|
bool: p_AidsVaccine [ MAX_PLAYERS char ],
|
|
bool: p_CantUseAsk [ MAX_PLAYERS char ],
|
|
bool: p_AdminLog [ MAX_PLAYERS char ],
|
|
bool: p_beingSpectated [ MAX_PLAYERS ],
|
|
p_whomSpectating [ MAX_PLAYERS ],
|
|
p_AntiSaveStatsSpam [ MAX_PLAYERS ],
|
|
p_AntiMechFixSpam [ MAX_PLAYERS ],
|
|
p_AntiMechNosSpam [ MAX_PLAYERS ],
|
|
p_AntiMechEmpSpam [ MAX_PLAYERS ],
|
|
bool: p_GivingBlowjob [ MAX_PLAYERS char ],
|
|
bool: p_GettingBlowjob [ MAX_PLAYERS char ],
|
|
p_AntiBlowJobSpam [ MAX_PLAYERS ],
|
|
p_EntranceTimestamp [ MAX_PLAYERS ],
|
|
p_VIPWep1 [ MAX_PLAYERS char ],
|
|
p_VIPWep2 [ MAX_PLAYERS char ],
|
|
p_VIPWep3 [ MAX_PLAYERS char ],
|
|
p_VIPWep_Modify [ MAX_PLAYERS char ],
|
|
p_BobbyPins [ MAX_PLAYERS ],
|
|
p_IncorrectLogins [ MAX_PLAYERS char ],
|
|
p_Robberies [ MAX_PLAYERS ],
|
|
p_ViewingStats [ MAX_PLAYERS ] = { INVALID_PLAYER_ID, ... },
|
|
p_AntiTextSpamCount [ MAX_PLAYERS char ],
|
|
p_PingImmunity [ MAX_PLAYERS char ],
|
|
p_Fires [ MAX_PLAYERS ],
|
|
p_AntiTieSpam [ MAX_PLAYERS ],
|
|
p_RansomPlacer [ MAX_PLAYERS ] = { INVALID_PLAYER_ID, ... },
|
|
p_RansomAmount [ MAX_PLAYERS ],
|
|
p_LastDrovenPoliceVeh [ MAX_PLAYERS ] = { INVALID_VEHICLE_ID, ... },
|
|
p_HitsComplete [ MAX_PLAYERS ],
|
|
/*p_CopTutorial [ MAX_PLAYERS char ],
|
|
p_CopTutorialProgress [ MAX_PLAYERS char ],
|
|
p_CopTutorialTick [ MAX_PLAYERS ],*/
|
|
p_WeaponDealTick [ MAX_PLAYERS ],
|
|
p_WeaponDealer [ MAX_PLAYERS ] = { INVALID_PLAYER_ID, ... },
|
|
p_WeaponDealMenu [ MAX_PLAYERS char ],
|
|
bool: p_WeaponDealing [ MAX_PLAYERS char ],
|
|
p_BlowjobOfferer [ MAX_PLAYERS ],
|
|
p_BlowjobDealTick [ MAX_PLAYERS ],
|
|
p_LastEnteredEntrance [ MAX_PLAYERS ] = { -1, ... },
|
|
p_ViewingGangTalk [ MAX_PLAYERS ] = { -1, ... },
|
|
p_SearchedCountTick [ MAX_PLAYERS ],
|
|
p_SellingWeedTick [ MAX_PLAYERS ],
|
|
p_AntiKidnapSpam [ MAX_PLAYERS ],
|
|
//p_JoinTimestamp [ MAX_PLAYERS ],
|
|
p_PasswordedHouse [ MAX_PLAYERS ],
|
|
p_HouseWeaponAddSlot [ MAX_PLAYERS char ],
|
|
Text3D: p_AdminLabel [ MAX_PLAYERS ] = { Text3D: INVALID_3DTEXT_ID, ... },
|
|
bool: p_AdminOnDuty [ MAX_PLAYERS char ],
|
|
p_FurnitureCategory [ MAX_PLAYERS char ],
|
|
p_FurnitureRotAxis [ MAX_PLAYERS char ],
|
|
p_HouseCrackingPW [ MAX_PLAYERS ],
|
|
p_Burglaries [ MAX_PLAYERS ],
|
|
p_ArmyBanned [ MAX_PLAYERS char ],
|
|
Text3D: p_DetainedLabel [ MAX_PLAYERS ] = { Text3D: INVALID_3DTEXT_ID, ... },
|
|
bool: p_Detained [ MAX_PLAYERS char ],
|
|
p_DetainedBy [ MAX_PLAYERS ],
|
|
p_BailTimestamp [ MAX_PLAYERS ],
|
|
p_AFKTime [ MAX_PLAYERS ],
|
|
bool: p_ClassSelection [ MAX_PLAYERS char ],
|
|
p_MiningExport [ MAX_PLAYERS ] = { 0xFFFF, ... },
|
|
Text3D: p_WeedLabel [ MAX_PLAYERS ] = { Text3D: INVALID_3DTEXT_ID, ... },
|
|
//p_LastAnimIndex [ MAX_PLAYERS ],
|
|
p_SpawningCity [ MAX_PLAYERS char ],
|
|
p_UsingRobberySafe [ MAX_PLAYERS ] = { -1, ... },
|
|
p_LumberjackMapIcon [ MAX_PLAYERS ] = { 0xFFFF, ... },
|
|
p_SpectateWeapons [ MAX_PLAYERS ] [ 13 ] [ 2 ],
|
|
bool: p_LeftCuffed [ MAX_PLAYERS char ],
|
|
p_LabelColor [ MAX_PLAYERS ] = { COLOR_GREY, ... },
|
|
p_BulletInvulnerbility [ MAX_PLAYERS ],
|
|
p_DeathMessage [ MAX_PLAYERS ] [ 32 ],
|
|
p_ViewingInterior [ MAX_PLAYERS char ],
|
|
p_MethYielded [ MAX_PLAYERS ],
|
|
p_CarsJacked [ MAX_PLAYERS ],
|
|
p_BankBlown [ MAX_PLAYERS ],
|
|
p_JailsBlown [ MAX_PLAYERS ],
|
|
p_AntiExportCarSpam [ MAX_PLAYERS ],
|
|
p_AntiMechFlipSpam [ MAX_PLAYERS ],
|
|
bool: p_inAlcatraz [ MAX_PLAYERS char ],
|
|
p_AlcatrazSpec [ MAX_PLAYERS ],
|
|
Text3D: p_TiedLabel [ MAX_PLAYERS ] = { Text3D: INVALID_3DTEXT_ID, ... },
|
|
p_TiedBy [ MAX_PLAYERS ],
|
|
p_BlowjobPrice [ MAX_PLAYERS ],
|
|
p_AnswerDelay [ MAX_PLAYERS ],
|
|
p_LastPlayerState [ MAX_PLAYERS char ],
|
|
p_RespondDelay [ MAX_PLAYERS ],
|
|
p_VisibleOnRadar [ MAX_PLAYERS ],
|
|
p_InGarage [ MAX_PLAYERS ] = { -1, ... },
|
|
p_WorkCooldown [ MAX_PLAYERS ],
|
|
p_AntiSpammyTS [ MAX_PLAYERS ],
|
|
p_TruckedCargo [ MAX_PLAYERS ],
|
|
p_PilotMissions [ MAX_PLAYERS ],
|
|
p_KidnapImmunity [ MAX_PLAYERS ],
|
|
p_GangSplitProfits [ MAX_PLAYERS ],
|
|
p_SafeHelperTimer [ MAX_PLAYERS ] = { -1, ... },
|
|
p_HouseOfferer [ MAX_PLAYERS ],
|
|
p_HouseOfferTicks [ MAX_PLAYERS ],
|
|
p_HouseSellingID [ MAX_PLAYERS ],
|
|
p_HouseSellingPrice [ MAX_PLAYERS ],
|
|
p_RansomTimestamp [ MAX_PLAYERS ],
|
|
p_QuitToAvoidTimestamp [ MAX_PLAYERS ],
|
|
p_TimeTiedAt [ MAX_PLAYERS ],
|
|
p_CopRefillTimestamp [ MAX_PLAYERS ],
|
|
p_AdminCommandPause [ MAX_PLAYERS ],
|
|
p_forcedAnticheat [ MAX_PLAYERS ],
|
|
p_TiedAtTimestamp [ MAX_PLAYERS ],
|
|
bool: p_AutoSpin [ MAX_PLAYERS char ],
|
|
p_InBusiness [ MAX_PLAYERS ] = { -1, ... },
|
|
p_VehicleBringCooldown [ MAX_PLAYERS ],
|
|
p_Fireworks [ MAX_PLAYERS ],
|
|
p_ExplosiveBullets [ MAX_PLAYERS ],
|
|
bool: p_AddedEmail [ MAX_PLAYERS char ],
|
|
p_TazingImmunity [ MAX_PLAYERS ],
|
|
p_PlayerAltBind [ MAX_PLAYERS ] = { -1, ... },
|
|
p_PlayerAltBindTick [ MAX_PLAYERS ],
|
|
p_AimedAtPolice [ MAX_PLAYERS ]
|
|
;
|
|
|
|
/* ** Getters And Setters** */
|
|
stock GetPlayerVIPLevel( playerid ) return p_VIPLevel[ playerid ];
|
|
|
|
stock IsPlayerInPaintBall( playerid ) return p_inPaintBall{ playerid };
|
|
|
|
stock GetPlayerAdminLevel( playerid ) return p_AdminLevel[ playerid ];
|
|
|
|
stock IsPlayerSpawned( playerid ) return p_Spawned{ playerid };
|
|
|
|
stock IsPlayerJailed( playerid ) return p_Jailed{ playerid };
|
|
|
|
stock IsPlayerAdminOnDuty( playerid ) return p_AdminOnDuty{ playerid };
|
|
|
|
stock IsPlayerChatBanned( playerid ) return p_ChatBanned{ playerid }; |