PHP Code:
#pragma semicolon 1
#define DEBUG
#define PLUGIN_AUTHOR "scarlxrd1734"
#define PLUGIN_VERSION "1.0.0"
#include <sourcemod>
#include <sdktools>
#include <sdktools_functions>
#pragma newdecls required
public Plugin myinfo =
{
name = "VIPKit",
author = PLUGIN_AUTHOR,
description = "VIPKit for MM, DM and C Servers",
version = PLUGIN_VERSION,
url = "http://steamcommunity.com/id/spirtbtx"
};
public void OnPluginStart()
{
RegAdminCmd("sm_vipak", Cmd_VIPAK, ADMFLAG_CUSTOM1, "VIP Kit for AK47 and Deagle");
}
public Action Cmd_VIPAK(int client, int args)
{
if (IsClientInGame(client) && IsPlayerAlive(client))
{
GivePlayerItem(client, "weapon_ak47");
GivePlayerItem(client, "weapon_deagle");
PrintToChat(client, "Great! You've got now an AK47 and a DEAGLE!");
}
else
{
PrintToChat(client, "You need to be alive to use this command.");
}
}