Advertisement
KiLLerBoy_001

GTA 5: Never raise mental state

Nov 11th, 2015
633
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.65 KB | None | 0 0
  1. //-----------------  Never Raise Mental  -----------------
  2. //
  3. // Just enable NeverRaiseMental Bool cause of checks on natives well just call it every few seconds ( between 5 and 10 sec timeout )
  4. //-----------------------------------------------------
  5.  
  6. #include <stdlib.h>     /* srand, rand */
  7. #include <time.h>       /* time */
  8.  
  9. NeverRaiseMentalLoop()
  10. {
  11.    if ( (NeverRaiseMental==true) && (GAMEPLAY::GET_GAME_TIMER() >= Timer) )
  12.    {
  13.       STATS::STAT_SET_FLOAT(GAMEPLAY::GET_HASH_KEY("MP0_PLAYER_MENTAL_STATE"),0.1,1)
  14.       srand (time(NULL));
  15.       Timer = (GAMEPLAY::GET_GAME_TIMER() + rand() % 10000 + 5000) // between 5 or 10 secs timeout
  16.    }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement