Raised This Month: $48 Target: $400
 12% 

[CS:GO] Spawn Commands


Post New Thread Reply   
 
Thread Tools Display Modes
Author
slurmdog
Junior Member
Join Date: Jul 2018
Plugin ID:
6261
Plugin Version:
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Old 09-16-2018 , 14:03   [CS:GO] Spawn Commands
    Reply With Quote #1

    Spawn Commands plugin allows you to set player properties like health and speed. Unlike other plugins these are reapplied at spawn and stick with the player throughout the game. You can target specific players or an entire team using @t/@ct.

    Features
    • Properties applied every spawn until reset
    • Sticky targets: setting properties for targets like @ct will apply to players who join CT later on and stop applying to those who leave the CT team
    • Properties applied to a specific player take precedence over properties applied to a generic target like @t/@ct
    • Resets on map changes

    Commands
    All commands follow the same format:
    Code:
    sm_spawn_health <target> <value>
    A setting can be reset using the same command. The player will revert to the default values on the next spawn.
    Code:
    sm_spawn_health <target> reset
    List of all supported commands:
    • sm_spawn_hp - Set player health on spawn
    • sm_spawn_health - Set player health on spawn
    • sm_spawn_speed - Set player speed on spawn
    • sm_spawn_armor - Set player armor on spawn
    • sm_spawn_cash - Set player cash on spawn
    • sm_spawn_helmet - Set player helmet on spawn
    • sm_spawn_primary_ammo_clip - Set player's primary weapon clip ammo on spawn
    • sm_spawn_primary_ammo_reserve - Set player's primary weapon reserve ammo on spawn
    • sm_spawn_secondary_ammo_clip - Set player's secondary weapon clip ammo on spawn
    • sm_spawn_secondary_ammo_reserve - Set player's secondary weapon reserve ammo on spawn
    • sm_spawn_grenade_ammo - Set player's grenade ammo on spawn
    • sm_spawn_knife - Set/strip player's knife on spawn

    Example
    Code:
    // Set all terrorist spawn health to 50
    sm_spawn_health @t 50
    
    // Reset the health setting applied to terrorists
    sm_spawn_health @t reset
    Changelog
    • v0.2 - Added primary, secondary and grenade ammo commands
    • v0.1 - Initial release


    Source
    Github
    Attached Files
    File Type: smx spawncommands.smx (13.3 KB, 2 views)

    Last edited by slurmdog; 09-16-2018 at 20:33. Reason: Version update
    slurmdog is offline
    Reply


    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 00:34.


    Powered by vBulletin®
    Copyright ©2000 - 2018, vBulletin Solutions, Inc.
    Theme made by Freecode