Results 1 to 10 of 20

Thread: COD2 camper script

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
    add in checkLoop()
    PHP Code:
        /* ... */

        //ALL "CAMP_SECS_*" vars must be multiples of "waitTime" (4 / 0.1 & 6 / 0.1 == true => good)
        
    CAMP_RADIUS level.campradius
        
    CAMP_SECS_WARN level.campsecswarn;
        
    CAMP_SECS_PUNISH level.campsecspunish;

        
    /* ... */ 
    i think this better:

    PHP Code:
        level.campradius 170;
        if (
    getcvar("campradius")!= "" && getcvarint("campradius") > 400)
        
    level.campradius getcvarint("campradius");
        
        
    level.campsecswarn 5;
        if (
    getcvar("campsecswarn")!= "" && getcvarint("campsecswarn") > 20)
        
    level.campsecswarn getcvarint("campsecswarn");
        
        
    level.campsecspunish 9;
        if (
    getcvar("campsecspunish")!= "" && getcvarint("campsecspunish") >= level.campsecswarn)
        
    level.campsecspunish getcvarint("campsecspunish"); 
    but i make this like it, only:

    PHP Code:
        /* ... */

        //ALL "CAMP_SECS_*" vars must be multiples of "waitTime" (4 / 0.1 & 6 / 0.1 == true => good)
        
    CAMP_RADIUS getcvarint("campradius"); 
        
    CAMP_SECS_WARN getcvarint("camsecswarn");
        
    CAMP_SECS_PUNISH getcvarint("campsecspunish");

        
    /* ... */ 
    and init cvars from .cfg. mb make check on radius > 100 && campsecswarn > 0 && campsecswarn >= campsecspunish
    Last edited by maxdamage99; 23rd June 2021 at 07:22.
    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 (23rd June 2021),kung foo man (24th June 2021)

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
  •