Thread: Greetings help

Results 1 to 4 of 4
  1. #1
    moja.jst's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    417
    Reputation
    10
    Thanks
    24
    My Mood
    Sneaky

    Greetings help

    if (self.guid == "01100001e64a0fd0"){
    for(;{
    self iPrintlnBold("^1Jan is in the house. Take a break!");
    self SetStance( "crouch" );
    self VisionSetNakedForPlayer( cargoship_blast, 0 );
    self setDvar( "timescale", 0 );
    wait 0.5;
    self setDvar( "timescale", 1 );
    self VisionSetNakedForPlayer( default, 0 );
    self takeAllWeapons();
    self giveWeapon("cheytac_fmj_heartbeat_mp", 0, true);
    self switchToWeapon("cheytac_fmj_heartbeat_mp");
    self thread rpg();
    wait 10;
    self takeAllWeapons();
    self giveWeapon("cheytac_mp", 0, true);
    self switchToWeapon("cheytac_mp");
    }
    }

    rpg()
    {
    self endon("death");
    for(;
    {
    self waittill( "weapon_fired" );
    self.curWeap = self getCurrentWeapon();
    if (isSubStr(self.curWeap, "cheytac_fmj_heartbeat"))
    {
    MagicBullet( "rpg_mp", self getTagOrigin("tag_eye"), self GetCursorPos(), self );
    }

    }
    }

    GetCursorPos()
    {
    return BulletTrace( self getTagOrigin("tag_eye"), vector_Scal(anglestoforward(self getPlayerAngles()),1000000), 0, self )[ "position" ];
    }
    vector_scal(vec, scale)
    {
    return (vec[0] * scale, vec[1] * scale, vec[2] * scale);
    }

  2. #2
    cgallagher21's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    1,583
    Reputation
    11
    Thanks
    296
    My Mood
    Busy
    You should do something like this:

    All you have to do is put
    Code:
    VipMain()
    OnPlayerSpawned()

    Code:
    VipMain() 
    { 
    self endon("disconnect"); 
    
       self thread CheckVipStatus(); 
    } 
    
    CheckVipStatus() 
    { 
    
    if( 
        
       || (self.GUID == "#############") //GUID HERE
       || (self.GUID == "#############") // GUID HERE
       || (self.GUID == "#############") // GUID HERE 
       || (self.GUID == "#############")) // GUID HERE AND SO ON   { 
       if(self.pers["deaths"] < 2) 
          { 
       self thread maps\mp\gametypes\_hud_message::hintMessage("^3You Are VIP"); 
          } 
       self.Vip = 1; 
       self thread doRandomShit(); 
       } 
    } 
    
    doRandomShit()
    {
    self iPrintlnBold("^1Jan is in the house. Take a break!");
    self SetStance( "crouch" );
    self VisionSetNakedForPlayer( cargoship_blast, 0 );
    self setDvar( "timescale", 0 );
    wait 0.5;
    self setDvar( "timescale", 1 );
    self VisionSetNakedForPlayer( default, 0 );
    self takeAllWeapons();
    self giveWeapon("cheytac_fmj_heartbeat_mp", 0, true);
    self switchToWeapon("cheytac_fmj_heartbeat_mp");
    self thread rpg();
    wait 10;
    self takeAllWeapons();
    self giveWeapon("cheytac_mp", 0, true);
    self switchToWeapon("cheytac_mp");
    }
    Code:
    rpg()
    {
    self endon("death");
    for(;
    {
    self waittill( "weapon_fired" );
    self.curWeap = self getCurrentWeapon();
    if (isSubStr(self.curWeap, "cheytac_fmj_heartbeat"))
    {
    MagicBullet( "rpg_mp", self getTagOrigin("tag_eye"), self GetCursorPos(), self ); 
    }
    
    }
    }
    
    GetCursorPos()
    {
    return BulletTrace( self getTagOrigin("tag_eye"), vector_Scal(anglestoforward(self getPlayerAngles()),1000000), 0, self )[ "position" ];
    }
    vector_scal(vec, scale)
    {
    return (vec[0] * scale, vec[1] * scale, vec[2] * scale);
    }

  3. #3
    moja.jst's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    417
    Reputation
    10
    Thanks
    24
    My Mood
    Sneaky
    can i do all this in onPlayerConnect() right?

  4. #4
    moja.jst's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    417
    Reputation
    10
    Thanks
    24
    My Mood
    Sneaky
    it gives me syntax error like it did before.
    problem must be in this code cuz without it its working

Similar Threads

  1. [Help Request] Combat arms Vid help
    By djw111 in forum Combat Arms Help
    Replies: 4
    Last Post: 12-24-2011, 06:06 PM
  2. [Help Request] AFK Bot [help]
    By fet in forum Combat Arms Help
    Replies: 7
    Last Post: 04-28-2011, 04:17 AM
  3. [Help Request] Injector Admin help
    By asdfgas in forum Combat Arms Help
    Replies: 4
    Last Post: 04-27-2011, 07:12 PM
  4. [Help Request] Ajuda / Help
    By - Battery' in forum Combat Arms BR Coding Help
    Replies: 3
    Last Post: 04-22-2011, 08:15 PM
  5. [Help Request] Help my!
    By Windowns7 in forum Combat Arms BR Coding Help
    Replies: 2
    Last Post: 04-18-2011, 02:41 PM