Advertisement
julioCCs

SimpleBulletTimeEffect.vb

Oct 31st, 2012
318
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 1.25 KB | None | 0 0
  1. 'http://www.facebook.com/GtaIVScripting
  2. 'https://www.youtube.com/user/GTAScripting
  3.  
  4. Imports System ' basic imports
  5. Imports GTA ' basic imports
  6. Imports System.Windows.Forms ' needed to have access to "keys" enumeration, for example
  7. Imports System.Drawing ' needed to handle colors referencing the color name, ex: myCar.color = System.Drawing.Color.Black
  8.  
  9. Public Class BasicScript
  10.     Inherits Script
  11.    
  12.     Public Sub New()
  13.         Me.interval = 10   
  14.            
  15.         player.character.weapons.uzi.ammo = 1000
  16.     End Sub
  17.    
  18.     private sub msg(sMsg as string, time as int32)
  19.         Native.Function.Call("PRINT_STRING_WITH_LITERAL_STRING_NOW", "STRING", sMsg, time, 1)
  20.     end sub
  21.    
  22.     Private Sub keyDown(ByVal sender As Object, ByVal e As GTA.KeyEventArgs) Handles MyBase.KeyDown
  23.     End Sub
  24.     Private Sub keyUp(ByVal sender As Object, ByVal e As GTA.KeyEventArgs) Handles MyBase.KeyUp
  25.     end sub
  26.    
  27.     Private Sub general_tick(ByVal sender As Object, ByVal e As EventArgs) Handles MyBase.Tick
  28.         if game.isGameKeyPressed(GameKey.Aim) then
  29.             native.function.call("SET_CHAR_ALL_ANIMS_SPEED", player.character, 5.0)
  30.             game.timescale = 0.2           
  31.         else
  32.             native.function.call("SET_CHAR_ALL_ANIMS_SPEED", player.character, 1.0)        
  33.             game.timescale = 1.0   
  34.         end if
  35.     end sub
  36. End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement