Skip to content

Run commands on target with sm_play #1950

@Rushaway

Description

@Rushaway

Help us help you

  • I have checked that my issue doesn't exist yet.
  • I have tried my absolute best to reduce the problem-space and have provided the absolute smallest test-case possible.
  • I can always reproduce the issue with the provided description below.

Environment

  • Operating System version: Ubuntu 20.04
  • Game/AppID (with version if applicable): CS:S/CS:GO/ANY?
  • Current SourceMod version: 1.11.0.6931
  • Current SourceMod snapshot: 1.12.0.6982
  • Current Metamod: Source snapshot: 1.12.0-dev+1167

Description

Related to #1832
For example, if I had basic sm_play access as a moderator, and there were no immunity checks on targetting higher admins, I would be able to run !play <target> "\";sm_ban boink 0 reason", and the plugin would be running both playgamesound and sm_ban as two individual commands through ClientCommand(""), on the targetted player.

Problematic Code (or Steps to Reproduce)

!play Dolly "";sm_slay Rushaway"

The empty "" is to do not specify any files to play

Logs

de_dust2 (CT: 0 | T: 0) - 01/15/2023 @ 12:13:02 
.Rushaway<62><[U:1:44340774]><> played sound on Dolly<69><[U:1:1060928058]><> (file \)
de_dust2 (CT: 0 | T: 0) - 01/15/2023 @ 12:13:02 
.Rushaway<62><[U:1:44340774]><> slayed .Rushaway<62><[U:1:44340774]><>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions