View Single Post
RedSword
SourceMod Plugin Approver
Join Date: Mar 2006
Location: Quebec, Canada
Old 04-26-2015 , 23:17   Re: Make code for all the Terrorist
Reply With Quote #2

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");
}
__________________
My plugins :
Red Maze
Afk Bomb
RAWR (per player/rounds Awp Restrict.)
Kill Assist
Be Medic

You can also Donate if you appreciate my work

Last edited by RedSword; 04-26-2015 at 23:18.
RedSword is offline