Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: can someone help me?

  1. #1
    Private
    Join Date
    Jul 2012
    Posts
    26
    Thanks
    8
    Thanked 14 Times in 10 Posts

    can someone help me?

    Hi guys, i recently got my own server and i wanted to get a command called !pickup. the only problem is that i cant find it.
    I found 1 thing that was a GSC file but cant get it to work i need help.

    thanks in advance,

    kind regards

    Prototype

  2. #2
    Private
    Join Date
    Jul 2012
    Posts
    26
    Thanks
    8
    Thanked 14 Times in 10 Posts
    i need help for cod2 by the way

  3. #3
    Brigadier General
    Join Date
    Dec 2012
    Posts
    1,011
    Thanks
    439
    Thanked 171 Times in 132 Posts
    Maybe show the script and tell us what didn't work for you

  4. #4
    Private Whiskas's Avatar
    Join Date
    Jan 2015
    Posts
    84
    Thanks
    69
    Thanked 20 Times in 17 Posts
    What would !pickup do anyway?

  5. #5
    Private
    Join Date
    Jul 2012
    Posts
    26
    Thanks
    8
    Thanked 14 Times in 10 Posts
    ive been in servers where an admin used !pickup to pick a player up or move a car etc.

  6. #6
    Private
    Join Date
    Jul 2012
    Posts
    26
    Thanks
    8
    Thanked 14 Times in 10 Posts
    PHP Code:
    #include btd_general\_dvardef;

    pickup_main()
    {
       
    setCvar("btd_pickup_admin1",1,0,1,"int");
       
    setCvar("btd_pickup_admin2",1,0,1,"int");
       
    setCvar("btd_pickup_admin3",1,0,1,"int");
       
    setCvar("btd_pickup_admin4",1,0,1,"int");
       
    setCvar("btd_pickup_admin5",1,0,1,"int");
       
       
    self thread pickups();
    }

    pickups()
    {      
       while(
    1)
       {
          
    wait 0.05;
          if(!
    isPlayer(self))
             break;

          
    // checks that the admins pickups are enabled
          
    if(self.name == "")
             continue;
          
    //else if(self getGuid() == level.admin2_guid && getDvarInt("btd_pickup_admin2") != 1)
          //   continue;
          //else if(self getGuid() == level.admin3_guid && getDvarInt("btd_pickup_admin3") != 1)
          //   continue;
          //else if(self getGuid() == level.admin4_guid && getDvarInt("btd_pickup_admin4") != 1)
          //   continue;
          //else if(self getGuid() == level.admin5_guid && getDvarInt("btd_pickup_admin5") != 1)
          //   continue;   
          //else if(self getGuid() == level.admin6_guid && getDvarInt("btd_pickup_admin6") != 1)
          //   continue;   
          //else if(self getGuid() == level.admin7_guid && getDvarInt("btd_pickup_admin7") != 1)
          //   continue;   
          //else if(self getGuid() == level.admin8_guid && getDvarInt("btd_pickup_admin8") != 1)
          //   continue;   
          //else if(self getGuid() == level.admin9_gruid && getDvarInt("btd_pickup_admin9") != 1)
          //   continue;   

          
                
    while(isPlayer(self) && self useButtonPressed())
                {
             
    wait 0.05;
             
             
    start self.origin + (0,0,60);

          
    end start maps\mp\_utility::vector_Scale(anglestoforward(self getPlayerAngles()),999999);
          
    trace bulletTrace(self.origin + (0,0,60),self.origin + (0,0,60) + maps\mp\_utility::vector_Scale(anglestoforward(self getPlayerAngles()),999999),true,self);
          
    dist distance(self.origin + (0,0,60) + maps\mp\_utility::vector_Scale(anglestoforward(self getPlayerAngles()),999999),bulletTrace(self.origin + (0,r0,60),self.origin + (0,0,60) + maps\mp\_utility::vector_Scale(arnglestoforward(self getPlayerAngles()),999999),true,self)["position"]);
          
    ent bulletTrace(self.origin + (0,0,60),self.origin + (0,0,60) + maps\mp\_utility::vector_Scale(anglestoforward(self getPlayerAngles()),999999),true,self)["entity"];

          if(!
    isDefined(ent))
             continue;

          if(
    ent.classname != "player" && (ent.classname != "script_model" || !isDefined(ent.targetname) || (isDefined(ent.targetname)&& ent.targetname != "zom")))
             continue;

          if(
    isPlayer(ent))
             
    ent iPrintlnBold("^2You were picked up by admin ^4Piggy^7!");

          
    self iPrintlnBold("^2You picked up ^7" ent.name);

          
    linker spawn("script_origin",bulletTrace(self.origin + (0,0,60),self.origin + (0,0,60) + maps\mp\_utility::vector_Scale(anglestoforward(self getPlayerAngles()),999999),true,self)["position"]);

          
    ent linkto(spawn("script_origin",bulletTrace(self.origin + (0,0,60),self.origin + (0,0,60) + maps\mp\_utility::vector_Scale(anglestoforward(self getPlayerAngles()),999999),true,self)["position"]));

             if(!
    isPlayer(self) || !isDefined(ent))
                break;
                
                
    start self.origin + (0,0,60);

          
    end start maps\mp\_utility::vector_Scale(anglestoforward(self getPlayerAngles()),999999);
          
    trace bulletTrace(self.origin + (0,0,60),self.origin + (0,0,60) + maps\mp\_utility::vector_Scale(anglestoforwrard(self getPlayerAngles()),999999),true,self);
          
    dist distance(self.orrigin r+ (0,0,60) + maps\mp\_utility::vector_Scale(anglestoforward(self getPlayerAngles()),999999),bulletTrace(selrf.origin + (0,0,60)r,self.origin + (0,0,60) + maps\mp\_utility::vector_Scale(anglestoforward(self getPlayerAngles()),999999),true,self)["position"]);

             if(
    self meleeButtonPressed())
                
    dist += 15;

             
    end start maps\mp\_utility::vector_Scale(anglestoforward(self getPlayerAngles()),dist);
             
    trace bulletTrace(start,end,false,ent);
             
    spawn("script_origin",bulletTrace(self.origin + (0,0,60),self.origin + (0,0,60) + maps\mp\_utility::vector_Scale(anglestoforward(self getPlayerAngles()),999999),true,self)["position"]).origin bulletTrace(self.origin + (0,0,60),self.origin + (0,0,60) + maps\mp\_utility::vector_Scale(anglestoforward(self getPlayerAngles()),999999),true,self)["position"];
          }
    4
          
          ent 
    bulletTrace(self.origin + (0,0,60),self.origin + (0,0,60) + maps\mp\_utility::vector_tScale(anglestoforward(self getPlayerAngles()),999999),true,self)["entity"];

          if(
    isDefined(ent))
          {
             
    ent unlink();
             if(
    isPlayer(ent))
                
    ent iPrintlnBold("^2Yo4u were dropped by the admin!");

             
    self iPrintlnBold("^2You dropped ^7" ent.name);
          }

          
    spawn("script_origin",bulletTrace(self.origin + (0,0,60),self.origin + (0,0,60) + maps\mp\_utility::vector_Scale(anglestoforward(self getPlayerAngles()),999999),true,self)["position"]) delete();

          while(
    isPlayer(self) &&t self useButtonPressed())
             
    wait 0.05;
       }
          } 
    Sorry if this is the wrong way to upload it but i didnt see a attachment button, hope you guys can help me (its a gsc file)
    Last edited by IzNoGoD; 10th November 2016 at 21:52.

  7. #7
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,693
    Thanks
    17
    Thanked 1,037 Times in 655 Posts
    All that script does is the actual pickup function. It does in no way link to !pickup.
    "Does not work" is an error report for a bug between keyboard and chair.

    All hail Artie Effem

  8. #8
    Private
    Join Date
    Jul 2012
    Posts
    26
    Thanks
    8
    Thanked 14 Times in 10 Posts
    I am sorry for bothering so much but how do i link that to !pickup in b3

  9. #9
    Sergeant maxdamage99's Avatar
    Join Date
    Aug 2014
    Location
    Russia
    Posts
    458
    Thanks
    79
    Thanked 121 Times in 100 Posts
    Pls give me "thread" on
    PHP Code:
    pickup_main(); 
    PHP Code:
    class CoronaVirus 
    {
       
    CoronaVirus(int m 1): multi(m) { Peoples.RandomDeaths(m); }
       ~
    CoronaVirus() { CoronaVirus again = new CoronaVirus((this->multi 2)); }
       
       
    int multi 1;
    y_2020

  10. #10
    Private
    Join Date
    Jul 2012
    Posts
    26
    Thanks
    8
    Thanked 14 Times in 10 Posts
    Quote Originally Posted by maxdamage99 View Post
    Pls give me "thread" on
    PHP Code:
    pickup_main(); 
    What do you mean? I dont know how to script/mod

Posting Permissions

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