H HowEnCokkien Well-known member Joined Jul 9, 2017 Messages 307 Reaction score 11 Aug 24, 2017 #1 how can i detect current gamestate
0 0B36 Expert Joined Jan 6, 2014 Messages 1,324 Reaction score 8 Aug 24, 2017 #2 0B4F: samp 1@ = get_gamestate Upvote 0 Downvote
H HowEnCokkien Well-known member Joined Jul 9, 2017 Messages 307 Reaction score 11 Aug 24, 2017 #3 0B36 said: 0B4F: samp 1@ = get_gamestate Click to expand... 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 Upvote 0 Downvote
0B36 said: 0B4F: samp 1@ = get_gamestate Click to expand... 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
Opcode.eXe Expert Joined Feb 18, 2013 Messages 1,493 Reaction score 236 Location ( ͡° ͜ʖ ͡°) Aug 24, 2017 #4 Really nigga? 0B4F: samp 1@ = get_gamestate If 1@ == 1 THEN DO DIS END Upvote 0 Downvote
0 0B36 Expert Joined Jan 6, 2014 Messages 1,324 Reaction score 8 Aug 24, 2017 #5 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 Upvote 0 Downvote
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
springfield God Joined Feb 18, 2005 Messages 2,965 Reaction score 273 Aug 25, 2017 #6 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] Upvote 0 Downvote
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]