Yet another gTeam question.
#9

Maybe:

Код:
COMMAND:setteam(playerid,params[])
{
	new id, team;
	if(sscanf(params,"dd",id,team)) return SendClientMessage(playerid,COLOR_RED,"Usage: /setteam <id> <2=Human/1=Zombie>");
	if(PlayerAdmin[playerid] < 3) return SendClientMessage(playerid,COLOR_RED,"You must be an admin.");
	if(team < 1 || team > 2) return SendClientMessage(playerid,COLOR_RED,"Teams between 1 and 2!"); //you can make your teamammount here.

	gTeam[playerid] = team;
	SpawnPlayer(id);
	format(str,144,"You set %ss Team to %d.",PlayerName[playerid],gTeam[id],team);
	SendClientMessage(playerid,COLOR_LIGHTBLUE,str);
	return 1;
}
But i think not that it works, when you use MYSQL.
Reply


Messages In This Thread
Yet another gTeam question. - by [MM]18240[FMB] - 31.12.2012, 20:55
Re: Yet another gTeam question. - by RedCrossER - 31.12.2012, 21:22
Re: Yet another gTeam question. - by [MM]18240[FMB] - 31.12.2012, 21:29
Re: Yet another gTeam question. - by RedCrossER - 31.12.2012, 21:35
Re: Yet another gTeam question. - by CrazyJin - 31.12.2012, 21:45
Re: Yet another gTeam question. - by [MM]18240[FMB] - 03.01.2013, 01:02
Re: Yet another gTeam question. - by mastermax7777 - 03.01.2013, 01:05
Re: Yet another gTeam question. - by [MM]18240[FMB] - 03.01.2013, 20:12
AW: Yet another gTeam question. - by Blackazur - 03.01.2013, 20:14
Re: Yet another gTeam question. - by [MM]18240[FMB] - 03.01.2013, 23:34

Forum Jump:


Users browsing this thread: 1 Guest(s)