Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void func_7545()
- {
- int iVar0;
- int iVar1;
- vector3 vVar2;
- var uVar5;
- iVar0 = (GET_GAME_TIMER() - Global_262145.f_22758); // Gets game timer in milliseconds and subtract 60000
- iVar1 = 0;
- if (Global_1625995 != -1)
- {
- if (func_11210(INT_TO_PLAYERINDEX(Global_1625995), 1, 1)) // Checks if the other player is active and playing
- {
- vVar2 = { GET_ENTITY_COORDS(GET_PLAYER_PED(INT_TO_PLAYERINDEX(Global_1625995)), 1) }; // Get coordinates of the other player
- }
- }
- if (Global_1625995 != -1)
- {
- if (Global_1625996 != -1)
- {
- if (Global_1625996 > iVar0)
- {
- if (!func_42(vVar2))
- {
- if (GET_DISTANCE_BETWEEN_COORDS(GET_ENTITY_COORDS(PLAYER_PED_ID(), 1), vVar2, true) <= Global_262145.f_22759) // Check if distance between player and other player is 100 or less
- {
- iVar1 = GET_PLAYER_PED(INT_TO_PLAYERINDEX(Global_1625995)); // Set a value to iVar1
- }
- }
- }
- }
- }
- SET_ENTITY_HEALTH(PLAYER_PED_ID(), 0, iVar1); // Kills the player by setting his health to 0
- uVar5 = func_7547(); // Mark it as normal death
- if (iVar1 != 0) // If iVar1 has a value then mark the death as kill for other player
- {
- Global_2436181.f_1777.f_804 = 1;
- uVar5 = func_7546(); // Mark it as death caused by other players
- func_6440(jooat("mpply_deaths_player_suicide"));
- }
- else
- {
- Global_2436181.f_1777.f_804 = 1;
- }
- _0x428EAF89E24F6C36(uVar5, 1f); // Increase the stat value by one which will increase your deaths by one
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement