Jailbreak'ta ctlerin 250 hp ile başlamasını istiyorum yapıp verebilir misiniz şimdiden teşekkürler
Konu
PHP Kod:
#pragma semicolon 1
#define DEBUG
#define PLUGIN_AUTHOR ""
#define PLUGIN_VERSION "0.00"
#include <sourcemod>
#include <sdktools>
#pragma newdecls required
public Plugin myinfo =
{
name = "",
author = PLUGIN_AUTHOR,
description = "",
version = PLUGIN_VERSION,
url = ""
};
public void OnPluginStart()
{
HookEvent( "player_spawn", EventPlayerSpawn );
}
public Action EventPlayerSpawn( Event event, const char[ ] name, bool dontbroadcast )
{
int client = GetClientOfUserId( event.GetInt( "userid" ) );
CreateTimer( 1.0, GiveHP, GetClientUserId( client ) );
}
public Action GiveHP( Handle timer, int userid )
{
int client = GetClientOfUserId( userid );
if( GetClientTeam( client ) == 3 && IsPlayerAlive( client ) )
{
SetEntityHealth( client, 250 );
}
}
)


