cod4 server

  • Hello.


    1) You must have the script. This is only part of script.


    case "fov":

    player = getPlayer( arg1, pickingType );

    if( isDefined( player ) && player isReallyAlive() )

    {

    if(player.pers["fov"] == 0 )

    {

    player iPrintln( "^0*^7FieldOfView ^7[^01.25^7]" );

    player setClientDvar( "cg_fovscale", 1.25 );

    player setstat(1322,1);

    player.pers["fov"] = 1;

    }

    else if(player.pers["fov"] == 1)

    {

    player iPrintln( "^0*^7FieldOfView ^7[^01.125^7]" );

    player setClientDvar( "cg_fovscale", 1.125 );

    player setstat(1322,2);

    player.pers["fov"] = 2;


    }

    else if(player.pers["fov"] == 2)

    {

    player iPrintln( "^0*^7FieldOfView ^7[^01^7]" );

    player setClientDvar( "cg_fovscale", 1 );

    player setstat(1322,0);

    player.pers["fov"] = 0;

    }

    }

    break;


    2) Open Customcommands.json and add this command:

    "fov": "cmd fov:<PLAYER:PID>",


    3) Open groups.json and add for default Player:

    "customcommands.fov",