Code:
#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)
{
for ( new i = 1; i <= MaxClients; ++i )
if ( IsClientInGame( i ) && GetClientTeam( i ) == 2 )
GivePlayerItem(i, "weapon_ak47");
}
public Action:Ctm4(client, args)
{
for ( new i = 1; i <= MaxClients; ++i )
if ( IsClientInGame( i ) && GetClientTeam( i ) == 3 )
GivePlayerItem(i, "weapon_m4a4");
}
__________________