Thread: [Solved]Timer

Results 1 to 4 of 4
  1. #1
    LenyXMD's Avatar
    Join Date
    Sep 2008
    Gender
    male
    Location
    At my home
    Posts
    7
    Reputation
    10
    Thanks
    0

    [Solved]Timer

    Hi everyone here. Iam making new mod and I need a timer for weapon set change.
    Can anyone help me with it?

    I mean
    Code:
    server.tier = 0;
    wait 10;
    server.tier = server.tier +1;
    
    if(server.tier==1)
    {
    self giveWeapon("mp5k_mp", 0, false);
    self giveMaxAmmo("mp5k_mp");
    }
    But I dont know how to do it
    Thx for all replies...
    Last edited by Blubb1337; 09-27-2010 at 06:21 AM.

  2. #2
    lior19940's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    65
    Reputation
    10
    Thanks
    10
    Code:
    Timer()
    {
     for(time>-1; time=60; time--)
    {
     wait 1;
     }
     if(time==0)
    {
     //Weapon change code here
    }
    }
    There you go. and i set this timer to 60 seconds. if u want to change it, change the 60 i put in the for(;

  3. The Following User Says Thank You to lior19940 For This Useful Post:

    LenyXMD (09-26-2010)

  4. #3
    LenyXMD's Avatar
    Join Date
    Sep 2008
    Gender
    male
    Location
    At my home
    Posts
    7
    Reputation
    10
    Thanks
    0
    Quote Originally Posted by lior19940 View Post
    Code:
    Timer()
    {
     for(time>-1; time=60; time--)
    {
     wait 1;
     }
     if(time==0)
    {
     //Weapon change code here
    }
    }
    There you go. and i set this timer to 60 seconds. if u want to change it, change the 60 i put in the for(;
    Realy thanks ^^

  5. #4
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,915
    Reputation
    161
    Thanks
    3,108
    /marked as solved



Similar Threads

  1. [Solved] timer nuke
    By xMODS in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 21
    Last Post: 06-08-2011, 04:10 PM
  2. [Solved] CAFlames and other hacks won't work... Solved
    By Hikatso in forum Combat Arms Help
    Replies: 17
    Last Post: 04-28-2011, 10:41 PM
  3. [SOLVED] GodMode With Timer?
    By schiz in forum Call of Duty Modern Warfare 2 Help
    Replies: 3
    Last Post: 06-29-2010, 11:04 PM
  4. [Solved]Adding Timer?
    By Golden. in forum Visual Basic Programming
    Replies: 14
    Last Post: 06-12-2010, 08:25 PM
  5. [Help]Timer Stop[Solved]
    By tremaster in forum Visual Basic Programming
    Replies: 4
    Last Post: 03-24-2010, 07:49 AM