IS this possible?
#2

Place this at the top of your script.
Код:
#define TEAM_HUMAN 0
#define TEAM_ZOMBIE 1
new gTeam[MAX_PLAYERS];
Then, your code...
Код:
public OnPlayerRequestClass(playerid, classid)
{
	SetPlayerPos(playerid, 1134.3170, -2036.5797, 69.0078);
	SetPlayerInterior(playerid, 0);
	SetPlayerFacingAngle(playerid, 38.4801);
	SetPlayerCameraPos(playerid, 1130.8170, -2032.5797, 70.5078);
	SetPlayerCameraLookAt(playerid, 1134.3170, -2036.5797, 69.0078);
	if(classid == 0 || classid == 1) 
       {
         GameTextForPlayer(playerid,"~g~HUMAN ~w~TEAM",1000,5);
	} 
       else if(classid == 2 || classid == 3) 
       {
	  GameTextForPlayer(playerid,"~b~ZOMBIE~w~TEAM",1000,5);
	}
       SetPlayerTeamFromClass(playerid, classid);
	return 1;
}
After That,

Код:
stock SetPlayerTeamFromClass(playerid,classid)
{
if(classid == 0 || classid == 1) 
{  gTeam[playerid]= TEAM_HUMAN;
}
else if(classid == 2 || classid == 3)
{
gTeam[playerid]=TEAM_ZOMBIE;
}
}
Done.
Reply


Messages In This Thread
IS this possible? - by mailliw17 - 13.06.2010, 20:18
Re: IS this possible? - by DJDhan - 13.06.2010, 20:29
Re: IS this possible? - by mailliw17 - 14.06.2010, 03:49
Re: IS this possible? - by TheInnocentOne - 14.06.2010, 05:39
Re: IS this possible? - by DJDhan - 14.06.2010, 06:46
Re: IS this possible? - by mailliw17 - 14.06.2010, 07:02
Re: IS this possible? - by mailliw17 - 14.06.2010, 08:53
Re: IS this possible? - by Dolph - 14.06.2010, 09:16
Re: IS this possible? - by mailliw17 - 14.06.2010, 09:18
Re: IS this possible? - by mailliw17 - 14.06.2010, 10:41

Forum Jump:


Users browsing this thread: 1 Guest(s)