- #pragma semicolon 1 
- #include < sourcemod > 
-   
- #define PLUGIN_VERSION	"0.1.0b" 
- #define CVAR_FLAGS	(FCVAR_PLUGIN|FCVAR_SPONLY|FCVAR_REPLICATED|FCVAR_NOTIFY) 
-   
- new Handle:cvar_armor = INVALID_HANDLE; 
- new Handle:cvar_armor_amount = INVALID_HANDLE; 
-   
- new String:g_armor_prop[ ] = { "m_ArmorValue" }; 
-   
- public Plugin:myinfo =  
- { 
- 	name = "Kezdesnel Armor", 
- 	author = "fezh", 
- 	description = "Kezdesnel Kapsz Ingyen Armort", 
- 	version = PLUGIN_VERSION, 
- 	url = "http://www.sourcemod.net" 
- } 
-   
- public OnPluginStart() 
- { 
- 	cvar_armor = CreateConVar( "sv_armor", "1", "Be/Ki kapcsolni a plugint" ); 
- 	cvar_armor_amount = CreateConVar( "sv_armor_amount", "100", "Mennyi pancelt kapjon kezdesnel a jatekos" ); 
-   
- 	HookEvent( "player_spawn", HookPlayerSpawn, EventHookMode_Post ); 
-   
- 	CreateConVar( "sm_spawn_armor", PLUGIN_VERSION, "Kezdesnel Armor", CVAR_FLAGS ); 
- } 
-   
- public HookPlayerSpawn( Handle:event, const String:name[ ], bool:dontBroadcast ) 
- { 
- 	new client = GetClientOfUserId( GetEventInt( event, "userid" ) ); 
-   
- 	if ( IsPlayerAlive( client ) && GetConVarInt( cvar_armor ) ) 
- 	{ 
- 		SetEntProp( client, Prop_Send, g_armor_prop, GetConVarInt( cvar_armor_amount ), 1 ); 
- 	} 
- } 
-