Raised This Month: $39 Target: $400

Solved End Round plugin help needed

Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Join Date: Sep 2020
Location: Romania
Old 09-25-2020 , 01:23   End Round plugin help needed
Reply With Quote #1

I started working on a small endround plugin, however I wanted it to use the "mp_round_restart_delay" value as the delay amount for CS_TerminateRound.
I'm a complete noob when it comes to scripting, and I can't seem to figure out what I did wrong on my own. If anyone could help me, it'll be highly appreciated.

(Argument type mismatch on line 31; Tag mismatch on lines 31 and 32)

This is what I did so far :
PHP Code:
#include <sourcemod>
#include <sdktools>
#include <cstrike>

#pragma semicolon 1
#pragma newdecls required

public Plugin myinfo 
name "EndRound",
author "FAQU",
description "Ends the current round with a draw",
version "0.1"

void OnPluginStart()
RegAdminCmd("sm_endround"EndRoundADMFLAG_GENERIC"End the current round with a draw");
RegAdminCmd("sm_er"EndRoundADMFLAG_GENERIC"End the current round with a draw");

Action EndRound(int clientint args)
    if (
args 0)
ReplyToCommand(client"[SM] Usage: sm_endround");
Handle hDelay GetConVarFloat("mp_round_restart_delay");

Sorry for my bad english.

Last edited by FAQU; 09-25-2020 at 10:11.
FAQU is offline

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 06:05.

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