Raised This Month: $ Target: $400
 0% 

HookEvent PlayerSpawned and RoundStart with commands


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
TrullSin
Senior Member
Join Date: Jun 2018
Old 11-10-2018 , 13:07   HookEvent PlayerSpawned and RoundStart with commands
Reply With Quote #1

Hi, Im trying to execute some commands after player spawned and round started but no results so far. No errors in sourcemod logs.

PHP Code:
#include <sourcemod>

public void OnPluginStart() 
{
    
HookEvent("player_spawned"player_spawned);
    
HookEvent("round_start"round_start);

public 
Action round_start(Event event, const char[] namebool dontBroadcast
{
    
LogMessage("Round Start Working...");
    
ServerCommand("sm_say 123");

}

public 
Action player_spawned(Event event, const char[] namebool dontBroadcast
{
    
LogMessage("Spawn Working...");
    
ServerCommand("sm_say spawned");


*edit
It is for CS:GO

Last edited by TrullSin; 11-10-2018 at 13:39.
TrullSin is offline
 



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 15:08.


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