Results 1 to 5 of 5
  1. #1
    themisterniceguy's Avatar
    Join Date
    Oct 2012
    Gender
    male
    Location
    the basement
    Posts
    139
    Reputation
    10
    Thanks
    105
    My Mood
    Bitchy

    Exclamation Locking a string's value

    So i'm coding a little thing, it has the features : godmode, unlimited ammo, custom health and custom ammo,
    but for the godmode and the unlimited ammo i will need to lock the string's value, idk how to do that XD lol i know so help please ?

    yes i tested it and everything (so far) works !


    THIS IS CODED IN VISUAL BASIC !!!

    BUTTONS:
    Button 1 = custom health
    Button 2 = custom ammo
    Button 3 = godmode
    Button 4 = unlimited ammo


    my code so far:

    Code:
    Public Class Form1
    
        Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
            Dim ammount As String = TextBox2.Text
            Try
                WriteInteger("csgo", &H3FB5114, ammount)
                WriteInteger("csgo", &H45045EC, ammount)
                WriteInteger("csgo", &H45049EC, ammount)
                WriteInteger("csgo", &H4504DEC, ammount)
                WriteInteger("csgo", &H45059EC, ammount)
                WriteInteger("csgo", &H45065EC, ammount)
                WriteInteger("csgo", &H45071EC, ammount)
                WriteInteger("csgo", &H233D8404, ammount)
                WriteInteger("csgo", &H23CB18F4, ammount)
                WriteInteger("csgo", &H23CB1FC0, ammount)
            Catch ex As Exception
            End Try
        End Sub
    
    
        Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
            Dim ammount As String = TextBox1.Text
            Try
                WriteInteger("csgo", &H454458, ammount)
                WriteInteger("csgo", &H4504524, ammount)
                WriteInteger("csgo", &H4504858, ammount)
                WriteInteger("csgo", &H454924, ammount)
                WriteInteger("csgo", &H454C58, ammount)
                WriteInteger("csgo", &H454D24, ammount)
                WriteInteger("csgo", &H4505858, ammount)
                WriteInteger("csgo", &H4505924, ammount)
                WriteInteger("csgo", &H4506458, ammount)
                WriteInteger("csgo", &H4506524, ammount)
                WriteInteger("csgo", &H4507058, ammount)
                WriteInteger("csgo", &H4507124, ammount)
                WriteInteger("csgo", &H9B5760C, ammount)
                WriteInteger("csgo", &H9F9DF58, ammount)
                WriteInteger("csgo", &H233D7EC4, ammount)
                WriteInteger("csgo", &H23CB091C, ammount)
                WriteInteger("csgo", &H23CB7D08, ammount)
                WriteInteger("csgo", &H47BF8C08, ammount)
                WriteInteger("csgo", &H482BEE6C, ammount)
            Catch ex As Exception
    
    
            End Try
        End Sub
    
    
        Private Sub LinkLabel1_LinkClicked(sender As Object, e As LinkLabelLinkClickedEventArgs) Handles LinkLabel1.LinkClicked
            System.Diagnostics.Process.Start("https://www.mpgh.net")
        End Sub
    
    
        Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click
    
    
        End Sub
    
    
        Private Sub Button4_Click(sender As Object, e As EventArgs) Handles Button4.Click
    
    
        End Sub
    End Class

    Last edited by themisterniceguy; 06-02-2013 at 07:21 AM.
    Proud member since 2012, 4th year of service in the MPGH army
    C# Specialist



    S A D B O Y S




  2. #2
    DawgiiStylz's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Location
    Dawg House
    Posts
    7,811
    Reputation
    219
    Thanks
    2,896
    My Mood
    Tired
    Use a timer?

  3. #3
    themisterniceguy's Avatar
    Join Date
    Oct 2012
    Gender
    male
    Location
    the basement
    Posts
    139
    Reputation
    10
    Thanks
    105
    My Mood
    Bitchy
    ill try that
    Proud member since 2012, 4th year of service in the MPGH army
    C# Specialist



    S A D B O Y S




  4. #4
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,915
    Reputation
    161
    Thanks
    3,108
    Please do not use strings to store numbers.

    Data Type Summary

    Also rename your controls to keep track of what your buttons do and have a readable code.

    https://msdn.microsof*****m/en-us/libr...8VS.60%29.aspx
    Last edited by Blubb1337; 06-02-2013 at 10:09 AM.



  5. #5
    atom0s's Avatar
    Join Date
    May 2013
    Gender
    male
    Posts
    403
    Reputation
    139
    Thanks
    104
    Determine the function(s) of the game that are altering your address and remove them (Nops) or alter them in a way that it removes the editing of the address you want to "freeze".
    - Gone; this is another shit forum with children as administrators. Not worth contributing to.

Similar Threads

  1. which is the value of the text string help me please!
    By aishteruk in forum Crossfire Coding Help & Discussion
    Replies: 0
    Last Post: 04-30-2013, 11:11 PM
  2. Addys,Strings,Values,Base For beginners
    By Hexicidal in forum Crossfire Coding Help & Discussion
    Replies: 9
    Last Post: 08-24-2012, 11:14 AM
  3. [Discussion] Long Knife Values and String Names
    By matheusgtx in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 4
    Last Post: 02-24-2012, 01:29 AM
  4. [Help] need values/text strings
    By _corn_ in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 30
    Last Post: 01-09-2012, 05:33 AM
  5. lock 5 6 7 8
    By trekpik in forum Gunz General
    Replies: 17
    Last Post: 05-28-2006, 05:37 PM