Results 1 to 8 of 8

Thread: COD2 Teleport

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sergeant maxdamage99's Avatar
    Join Date
    Aug 2014
    Location
    Russia
    Posts
    458
    Thanks
    79
    Thanked 122 Times in 101 Posts
    try
    PHP Code:
    teleport()
    {
        
    level endon("boot");
        
    level endon("round_ended");

        
    setcvar("teleport""");
        while(
    1)
        {
            
    cvar getcvar("teleport");
            if(
    cvar != "" && cvar.size >= 3//0 0
            
    {
                
    args strtok(cvar" ");
                if (
    isDefined(args[0]) && isDefined(args[1]))
                {
                    
    point undefined;
                    
    players getentarray("player""classname");
                    for(
    0players.sizei++)
                        if (
    players[igetEntityNumber == int(arg[1]))
                            
    point players[i];
                    
                    if (
    isDefined(point) && isPlayer(point))
                    {
                        
    movePlayerNum undefined;
                        if (
    args[0] != "all" && args[0] != "-1")
                            
    movePlayerNum int(args[0]);
                        
                        for(
    0players.sizei++)
                        {
                            
    player players[i];
                            
    thisPlayerNum player getEntityNumber();
                            if(!
    isDefined(movePlayerNum) || thisPlayerNum == movePlayerNum)
                                
    players[isetorigin(point.origin);
                        }
                    }
                }
                
                
    setcvar("teleport""");
            }
            
    wait 0.05;
        }

    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

  2. The Following 2 Users Say Thank You to maxdamage99 For This Useful Post:

    girdap (18th June 2021),kung foo man (24th June 2021)

  3. #2
    Private
    Join Date
    Apr 2021
    Posts
    16
    Thanks
    13
    Thanked 5 Times in 5 Posts
    Thanks, but : error script

    ******* script compile error *******
    bad syntax
    ************************************
    ********************
    ERROR: script compile error
    (see console for details)


    :/

  4. The Following User Says Thank You to girdap For This Useful Post:

    kung foo man (24th June 2021)

Posting Permissions

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