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

player_spawn - fails to keep setting after respawn.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



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:44.


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