Advertisement
danutlsrp

Damage System - Leg Jump [LS-RP Release 19MAY]

May 19th, 2017
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. public OnPlayerKeyStateChange( playerid, newkeys, oldkeys ){
  2. if( GetIntVar( playerid, "BrutallyWounded" ) == 0 ){
  3. if( ( newkeys & KEY_SPRINT ) && !( oldkeys & KEY_SPRINT ) ){
  4. if( GetIntVar( playerid, "LegShot" ) == 1 ){
  5. ClearAnimations(playerid, 1 ) ;
  6. ApplyAnimation( playerid, "PED", "FALL_collapse", 4.1, 0, 1, 1, 0, 0, 1 ) ;
  7. }
  8. }
  9. if( ( newkeys & KEY_JUMP ) && !( oldkeys & KEY_JUMP ) ){
  10. if( GetIntVar( playerid, "LegShot" ) == 1 ){
  11. ClearAnimations(playerid, 1 ) ;
  12. ApplyAnimation( playerid, "PED", "FALL_collapse", 4.1, 0, 1, 1, 0, 0, 1 ) ;
  13. }
  14. }
  15. }
  16. return 1 ;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement