Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2020
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. 1. #include <weapon-config> before any other script
  2.  
  3. 2. Replace OnPlayerGiveDamage and OnPlayerTakeDamage with just one callback:
  4.  
  5. public OnPlayerDamage(&playerid, &Float:amount, &issuerid, &weapon, &bodypart)
  6.  
  7. 3. Add config functions in OnGameModeInit (or any other places, they can be called at any time). Recommended:
  8.  
  9. public OnGameModeInit() {
  10. SetVehiclePassengerDamage(true);
  11. SetDisableSyncBugs(true);
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement