Team commands and more
#4

2. // at OnPlayerCommandText
Код:
dcmd(m4, 2, cmdtext);
dcmd(ak, 2, cmdtext);
// Put at bottom of script
Код:
dcmd_m4(playeri, params[])// Command for cops
{
	#pragma unused params
	if(gTeam == TEAM_COPS) {
		GivePlayerWeapon(playerid, 31);
	}
	return 1;
}
Код:
dcmd_ak(playeri, params[])// Command for terrorists
{
	#pragma unused params
	if(gTeam == TEAM_TERRORIST) {
		GivePlayerWeapon(playerid, 30);
	}
	return 1;
}
Reply


Messages In This Thread
Team commands and more - by Markx - 03.03.2011, 15:40
Re: Team commands and more - by Markx - 03.03.2011, 18:52
Re: Team commands and more - by Ironboy - 03.03.2011, 19:08
Re: Team commands and more - by k3nw00d_kri5ty - 03.03.2011, 19:18
Re: Team commands and more - by Markx - 04.03.2011, 11:00
Re: Team commands and more - by Ironboy - 04.03.2011, 11:24
Re: Team commands and more - by Markx - 04.03.2011, 13:23
Re : Team commands and more - by Soumi - 04.03.2011, 16:02

Forum Jump:


Users browsing this thread: 4 Guest(s)