View Single Post
Author Message
ph
AlliedModders Donor
Join Date: Mar 2006
Old 07-19-2019 , 16:24   player_spawn - fails to keep setting after respawn.
Reply With Quote #1

Team Fortress 2

Script below works, but the client keeps having to type !kson after respawn.
Code:
#pragma semicolon 1
#include <sourcemod>

public OnPluginStart()
{
    RegAdminCmd( "sm_kson", Cmd_Enable, ADMFLAG_CUSTOM6 );
}

public Action:Cmd_Enable( client, args )
{
    SetEntProp( client, Prop_Send, "m_nStreaks", 100 );
    return Plugin_Handled;
}
How do I....
enable for the player (client) to aviod the need to type !kson *again* after respawn.
__________________
ph is offline