Quote:
Originally Posted by dzinks2009
I hooked up playerspawn but how do i use it now? Sorry, Im kind of new in c++
|
PHP Code:
#include <sdktools>
public OnPluginStart()
{
HookEvent("player_spawn", Action:Event_PlayerSpawn);
}
public Action:Event_PlayerSpawn(Handle:event, const String:name[], bool:dontBroadcast)
{
new client = GetClientOfUserId(GetEventInt(event, "userid"));
if (IsPlayerAlive(client) && g_bKill)
ForcePlayerSuicide(client);
}