Jump to content

Some Usefull Counter Strike Commands


Recommended Posts

These variables can only be changed by server administrators after putting in the rcon password using the rcon_password command. To use the commands below on a remote server, you will have to use the following form: rcon "command" [value]. For example, rcon mp_startmoney 16000


mp_startmoney [value]

This controls the amount of money that players start with at the beginning of a new map or when they join a server. 800 is the default and the minimum value, and 16000 is the maximum.


mp_playerid [value]

This controls what players see when they put their crosshair over an enemy, a hostage, or a teammate. At 0 (default), the player see's all popups with team colors. At 1, the player sees their teammates and hostages, with team colors. At 2, players see no popups.


mp_logdetail [value]

Use this bitwise svar to control the depth of your logs. Be warned, these options can eat away hard drive space and CPU cycles. Use 0, the default, to log no attacks, 1 to log enemy attacks, 2 to log teammate attacks, and 3 to log both.


mp_forcechasecam [value]

This is to help stop ghosting (giving enemy locations to your alive teammates while dead over ventrilo or teamspeak). 0 disables it (default), 1 locks the player's chasecam onto teammates only (players lose the ability to roam), 2 doesn't like the player move or spectate while dead. They stay near their dead corpse.


mp_fadetoblack [value]

0 will have no affect on the game, while 1 will disable chasecam and any sort of death cam at all. The client's screen fades to black instantly after death. One boon of this setting is that corpses stay around for the entire round. Useful for matches/scrims.


mp_roundtime [value]

This determines the round time in minutes. After this amount of minutes has passed, a scenario win is awarded (e.g., hostages weren't rescued or the bomb was not planted). This is also a decimal value, but most server admins use integers. The minimum value is 1 minute, the maximum is 9. The default is 5 minutes.


mp_buytime [value]

A decimal value to determine the buy time in minutes. E.g., '1.75' equals 1 minute and 45 seconds of buy time (this is not the pause, but the time where it is legal to purchase stuff). The minimum value is 0.25 and there is no maximum.


mp_timelimit [value]

This is also a floating point value. It's the same as the above option, only it applies to the map and not the round. The default 20 minutes.


mp_maxrounds [value]

This is a whole number. When a two teams finish playing this amount of rounds (before the timelimit or the winlimit is reached) the map ends. 0, or disabled, is the default.


mp_winlimit [value]

This is an whole number. When a team reaches this amount of wins (before the timelimit or the roundlimit is reached), the map changes. 0, or disabled, is the default.


allow_spectators [value]

Setting to 1 will allow spectators, while 0 will disallow them. These are non-playing spectators, not dead people.


mp_autokick [value]

This is defaulted to 1. Toggles automatic team-killer banning and kicking of idle clients - Setting of 1 = 'on', and 0 = 'off'.


mp_autoteambalance [value]

This is defaulted to 1. Toggles the forcing of clients to join teams to make it balanced - Setting of 1 = 'on', and 0 = 'off'.


mp_c4timer [value]

This is defaulted to 45. Sets the amount of time in between C4 placement and its explosion - ranges between 15 and 90 seconds.


mp_flashlight [value]

This is defaulted to 1. Toggles the use of flashlights by clients - Setting of 1 = 'on', and 0 = 'off'.


mp_footsteps [value]

This is defaulted to 1. Toggles footstep sounds - Setting of 1 = 'on', and 0 = 'off'.


mp_freezetime [value]

This is defaulted to 6. Sets the amount of "freeze" time at the beginning of each round to buy weapons and equipment - Use a setting of '0' to disable.


mp_hostagepenalty [value]

Sets the number of hostages a player can kill before they are booted from the server. 0 is disabled


mp_limitteams [value]

This is defaulted to 2. Sets the maximum number of players that one team can have more than the other team - Use a setting of '0' to completely disable the team limiting.


mp_friendlyfire [value]

This is defaulted to 0. Toggles friendly fire - Setting of 1 = 'on', and 0 = 'off'.


mp_logmessages [value] (Not available for Source)

This is defaulted to 1. Toggles logging of chat messages in the log files - Setting of 1 = 'on', and 0 = 'off'.


mp_falldamage [value]

1 enables falling damage, 0 disables it.


mp_mapvoteratio [value] (Not available for Source)

This is defaulted to 0.6. Set the ratio of players required to vote on the same map before a map will change. The default is 0.6 , which means that 60% of the players on a server must vote on the same map in order for the server to change to that map. The range is 0.0-1.0.


mp_kickpercent [value] (Not available for source)

This is defaulted to 0.66. Set the ratio of players on someone's team required to vote to kick the player. The default is 0.66, which means that 66% (2/3rds) of the players on his team must vote him/her off in order for him to be kicked. The range is 0.0-1.0.


mp_tkpunish [value]

This is defaulted to 1. Toggles the forcing of a player to be killed the next round if he has just killed a teammate - Setting of 1 = 'on', and 0 = 'off'.


sv_restart [value] or sv_restartround [value] or mp_restartgame [value] for CSS

This is defaulted to 0. Sets the amount of time in seconds before resetting the game, including frags, money, and the amount of time left. Use setting of '0' to disable these restarts. Setting this to 2 would restart the game in 2 seconds and reset the variable to 0.


Usefull Player Commands and Variables


cl_crosshaircolor [value] (Source Only)

Color of the crosshair. Default: 0 - 0=green, 1=red, 2=blue, 3=yellow, 4=light blue


cl_crosshairscale [value] (Source Only)

This command sets the size of the crosshair. Default is 768. Lower number is a Larger crosshair. Higher value is a smaller.


cl_allowdownload [value] (Source Only)

Client downloads custom files. Values of 0 (off) or 1 (on). Default: 1


fps_max [value] (Source Only)

This command limits the frame rate for the player.


drawradar [value] (1.6 only)

This command turns the radar on or off.


cl_hidefrags [value] (1.6 only)

Toggles hiding everyone else's scores except your own - Value of 1 = 'on', and 0 = 'off'.


lefthand [value] (1.6 only)

Moves the weapon between the left and right hand of the player model. Setting of 1 = 'left hand', and 0 = 'right hand'


Source : http://www.counterstrikestrats.com

Link to comment
Share on other sites

  • 1 month later...
  • 2 weeks later...
This topic is now closed to further replies.

  • Posts

    • https://github.com/binance/binance-futures-connector-java   Use their API, And then you can convert it to be used on your Multisell.
    • WTB 414 interface source (4game), compiler, xdat editor.  
    • Edit ItemsAutoDestroy#addItem method, simply enforce whatever timer you want. L2J already handles your case, eg. herbs naturally dissapear after a while.
    • https://www.youtube.com/watch?v=VjJ2uLlRGOc LF something similar to this. ability to do transactions/verify/withdraw/add and history. Do NOT need new window, can be done in html as long as the function works   Serious people only, paying well
    • Hello, I'm having a problem with my drop rates, due to the high amount of loot that Champions give I made it so that non-stackable items drop on the ground (since going over 500 items in the inventory disables a character), the problem is that in the long run sometimes Champions dropped hundreds or thousands of non-stackable items on the ground, causing massive lag, lowering the drop rate/chance isn't a possibility since that would mean massively decreasing the chance of item to be dropped from a regular mob, to solve this I just set the MultipleItemDrop config to False, with that only 1 item is created if the item is non-stackable   HOWEVER the problem is that now whenever I'm doing a quest and the NPC gives 2 or more items of the same ID (like the Spirit of Mirrors quest in the Human Village) I get only 1 instead, making the quest impossible to complete, I went into the core and noticed 2 variables affected by the MultipleItemDrop config: dropItem and addItem, I thought that maybe creating a new config and separating both would solve the problem, and it did, but after that if someone logged out while having equipped any item other than NG then the character would be unable to enter again, and a massive error appears on the console when someone tries to login said character, the error was basically StackOverflowError which with my really lacking knowledge of java it means that something is on an infinite loop   With that situation happening I think that now my safest option is to just limit the amount of items dropped on the ground, how can I do this? here's the code for the item drop:   public L2ItemInstance dropItem(L2PcInstance player, int itemId, long itemCount) { L2ItemInstance item = null; for (int i = 0; i < itemCount; i++) { // Randomize drop position. final int newX = (getX() + Rnd.get((RANDOM_ITEM_DROP_LIMIT * 2) + 1)) - RANDOM_ITEM_DROP_LIMIT; final int newY = (getY() + Rnd.get((RANDOM_ITEM_DROP_LIMIT * 2) + 1)) - RANDOM_ITEM_DROP_LIMIT; final int newZ = getZ() + 20; if (ItemTable.getInstance().getTemplate(itemId) == null) { LOG.error("Item doesn't exist so cannot be dropped. Item ID: {} Quest: {}", itemId, getName()); return null; } item = ItemTable.getInstance().createItem("Loot", itemId, itemCount, player, this); if (item == null) { return null; } if (player != null) { item.getDropProtection().protect(player); } item.dropMe(this, newX, newY, newZ); // Add drop to auto destroy item task. if (!Config.LIST_PROTECTED_ITEMS.contains(itemId)) { if (((Config.AUTODESTROY_ITEM_AFTER > 0) && !item.getItem().hasExImmediateEffect()) || ((Config.HERB_AUTO_DESTROY_TIME > 0) && item.getItem().hasExImmediateEffect())) { ItemsAutoDestroy.getInstance().addItem(item); } } item.setProtected(false); // If stackable, end loop as entire count is included in 1 instance of item. if (item.isStackable() || !Config.MULTIPLE_ITEM_DROP) { break; } } return item; } And the code for the itemdrop on L2Attackable.java:   public void doItemDrop(L2NpcTemplate npcTemplate, L2Character mainDamageDealer) { if (mainDamageDealer == null) { return; } L2PcInstance player = mainDamageDealer.getActingPlayer(); // Don't drop anything if the last attacker or owner isn't L2PcInstance if (player == null) { return; } CursedWeaponsManager.getInstance().checkDrop(this, player); if (isSpoiled()) { _sweepItems.set(npcTemplate.calculateDrops(DropListScope.CORPSE, this, player)); } Collection<ItemHolder> deathItems = npcTemplate.calculateDrops(DropListScope.DEATH, this, player); if (deathItems != null) { for (ItemHolder drop : deathItems) { L2Item item = ItemTable.getInstance().getTemplate(drop.getId()); // Check if the autoLoot mode is active if (isFlying() || ((!item.hasExImmediateEffect() && ((!isRaid() && Config.AUTO_LOOT) && (item.isStackable() || (isRaid() && Config.AUTO_LOOT_RAIDS)))) || (item.hasExImmediateEffect() && Config.AUTO_LOOT_HERBS))) { player.doAutoLoot(this, drop); // Give the item(s) to the L2PcInstance that has killed the L2Attackable } else { dropItem(player, drop); // drop the item on the ground } // Broadcast message if RaidBoss was defeated if (isRaid() && !isRaidMinion() && (drop.getCount() > 0)) { final SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.C1_DIED_DROPPED_S3_S2); sm.addCharName(this); sm.addItemName(item); sm.addLong(drop.getCount()); broadcastPacket(sm); } } } }   Thanks in advance
  • Topics

  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock