Results 1 to 10 of 30

Thread: how to call a value from another function?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Private Paho's Avatar
    Join Date
    Feb 2014
    Location
    Russia
    Posts
    101
    Thanks
    43
    Thanked 48 Times in 37 Posts
    Code:
    if(current=="iwx_sprint_mp")
    current=Sprint();
    Sprint()
    {
    self endon("disconnect");
    self notify("start_sprinting");
    sprint_weap="iwx_sprint_mp";
    slot="";
    if(self getcurrentweapon()==self getweaponslotweapon("primary"))
    slot="primary";
    else
    slot="primaryb";
    self.sweapon=self getcurrentweapon();
    return slot;
    }

  2. The Following User Says Thank You to Paho For This Useful Post:

    maxdamage99 (23rd July 2016)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •