CLEO Help detect gamestate

CLEO related
Status
Not open for further replies.

HowEnCokkien

Well-known member
Joined
Jul 9, 2017
Messages
307
Reaction score
9
0B36 said:
0B4F: samp 1@ = get_gamestate

Ty so how can i use this shit with this ex

0B4F: samp 1@ = get_gamestate
IF
samp.gamestate(1) ///i randomly created this shit so i want is there a func for similiar to this
JUMP @EXAMPLE
 

0B36

Expert
Joined
Jan 6, 2014
Messages
1,324
Reaction score
8
Code:
0B4F: samp 1@ = get_gamestate
IF
    1@ == 3 //GAMESTATE ID
THEN
    //                                                        
    //                        do your thing here
    // 
END

All GS ids - https://blast.hk/wiki/opcodes:0b4f
 
Joined
Feb 18, 2005
Messages
2,963
Reaction score
267
There's also GTASA gamestate, since you didn't specify.

from mta src
[shcode=cpp]
enum eSystemState
{
   GS_START_UP,
   GS_INIT_LOGO_MPEG,
   GS_LOGO_MPEG,
   GS_INIT_INTRO_MPEG,
   GS_INTRO_MPEG,
   GS_INIT_ONCE,
   GS_INIT_FRONTEND,
   GS_FRONTEND,
   GS_INIT_PLAYING_GAME,
   GS_PLAYING_GAME
};
VAR_SystemState = (unsigned long*)0xC8D4C0;
[/shcode]
 
Status
Not open for further replies.
Top