void cheatActor_AIRBRK ( actor_info * info ) { static float orig_pos [ 3 ] ; float * matrix = info -> base . matrix ; if ( ! ( info -> weapon_slot == 11 && info -> weapon [ 11 ] . id == 46 ) ) { vect3_copy ( orig_pos , & info -> base . matrix [ 4 * 3 ] ) ; vect3_zero ( info -> speed ) ; info -> pedFlags . bIsStanding = true ; info -> pedFlags . bWasStanding = true ; info -> pedFlags . bStayInSamePlace = true ; } } void actorCheat ( ) { actor_info * info_actor = SF -> getSAMP ( ) -> getPlayers ( ) -> pLocalPlayer -> pSAMP_Actor -> pGTA_Ped ; cheatActor_AIRBRK ( info_actor ) ; }