Results 1 to 10 of 37

Thread: Pickup Script ? who have?! :D

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Private First Class php's Avatar
    Join Date
    Nov 2012
    Posts
    142
    Thanks
    28
    Thanked 116 Times in 59 Posts
    PHP Code:
        start self geteye();
        
    fw anglestoforward(self getplayerangles());
        
    end start maps\mp\_utility::vectorscalefw1000 ); //increase the distance if you need to
        
    tr bullettrace(startendtrueself);
        
        if(
    isdefined(tr["entity"]) && isplayer(tr["entity"])) {
            
    //do things with the player e.g set origin
            
    player tr["entity"];
            
    //do the following in a loop and update the fw
            
    new_pos maps\mp\_utility::vectorscale(fwdistance(startplayer.origin));
            
    player setorigin(new_pos);
        } 
    Here's the basics, should get you on track.

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

    kung foo man (11th October 2016)

Tags for this Thread

Posting Permissions

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