How can I make this work like this
If admin type !trak
All the T's gets Ak-47
If Admin type !ctm4
All the Ct's gets m4
Code:
#include <sourcemod>
#include <sdktools_functions>
public Plugin:myinfo = {
name = "TRAK",
author = "Chokitu",
description = "1.0",
version = "1.0",
url =""
};
public OnPluginStart()
{
RegAdminCmd("sm_trak", Trak, ADMFLAG_SLAY);
RegAdminCmd("sm_ctm4", Ctm4, ADMFLAG_SLAY);
}
public Action:Trak(client, args)
{
GivePlayerItem(client, "weapon_ak47");
}
public Action:Ctm4(client, args)
{
GivePlayerItem(client, "weapon_m4a4");
}