Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void beachFireEmUp()
- { // prop_beach_fire
- for (int i = 0; i < 32; i++)
- {
- Player playerHandle = PLAYER::GET_PLAYER_PED(i);
- Hash beach_fire = GAMEPLAY::GET_HASH_KEY("prop_beach_fire");
- STREAMING::REQUEST_MODEL(beach_fire);
- while (!STREAMING::HAS_MODEL_LOADED(beach_fire)) WAIT(0);
- notifyAboveMap("~HUD_COLOUR_RED~Attached Beach Fires to All Players");
- if (ENTITY::DOES_ENTITY_EXIST(playerHandle))
- {
- if (!strcmp(PLAYER::GET_PLAYER_NAME(PLAYER::INT_TO_PLAYERINDEX(i)), "")) continue;
- {
- if (!strcmp(PLAYER::GET_PLAYER_NAME(PLAYER::INT_TO_PLAYERINDEX(i)), "")) continue;
- {
- if (!strcmp(PLAYER::GET_PLAYER_NAME(PLAYER::INT_TO_PLAYERINDEX(i)), "")) continue;
- {
- if (!strcmp(PLAYER::GET_PLAYER_NAME(PLAYER::INT_TO_PLAYERINDEX(i)), "")) continue;
- {
- if (PLAYER::GET_PLAYER_PED(i) == PLAYER::PLAYER_PED_ID()) continue;
- {
- Object object = OBJECT::CREATE_OBJECT(beach_fire, 0, 0, 0, true, true, false);
- ENTITY::ATTACH_ENTITY_TO_ENTITY(object, playerHandle, PED::GET_PED_BONE_INDEX(playerHandle, SKEL_Spine_Root), 0.0, 0.0, 0.0, 0.0, 90.0, 0, false, false, false, false, 2, true);
- }
- STREAMING::SET_MODEL_AS_NO_LONGER_NEEDED(beach_fire);
- }
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement