#include <sourcemod>
#include <sdktools>
#include <sdkhooks>
#define PLUGIN_VERSION "v1.0"
public Plugin:myinfo =
{
name = "ZM Kit",
author = "Knopers",
description = "Plugin dla snickersa",
version = "PLUGIN_VERSION",
url = ""
};
public OnPluginStart()
{
CreateConVar("sm_zmkit", PLUGIN_VERSION, "version", FCVAR_PLUGIN|FCVAR_SPONLY|FCVAR_REPLICATED|FCVAR_NOTIFY);
HookEvent("player_spawn", Event_PlayerSpawn);
PrintToServer("[Knopers]Plugin wlanczony");
RegServerCmd("say !kit", Command_Test);
}
public Action:Event_PlayerSpawn(Handle:event, const String:name[], bool:dontBroadcast)
{
new client = GetClientOfUserId(GetEventInt(event, "userid"));
if ( (IsClientInGame(client)) && (IsPlayerAlive(client) && GetClientTeam(client) > 1) )
{
GivePlayerItem(client, "weapon_hegrenade");
GivePlayerItem(client, "weapon_smokegrenade");
GivePlayerItem(client, "item_nvgs");
PrintToChatAll("\x03[KIT]\x01Granaty dodane");
}
}
public Action:Command_Test(client, args)
{
if (IsClientInGame(i) && IsPlayerAlive)
{
GivePlayerItem(client, "weapon_hegrenade");
}
}
Witamy w Nieoficjalnym polskim support'cie AMX Mod X
Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
|
Guest Message by DevFuse


Dodatki SourceMod




Moja zawartość
Mężczyzna

