Forgot something....
#1

okk i havnt been that active on samp and so i forgot something..

If i add 1 team, how do i add like 3 classes in that one team through gTeams?

Lorenc..
Reply
#2

you mean like this :
pawn Код:
#define Grove 0
new gTeam[MAX_PLAYERID];

public OnPlayerRequestClass(playerid, classid)
{
 if(classid == 0)
 {
 gTeam[playerid] = Grove;
 }
 return 1;
}
Reply
#3

Код:
AddPlayerClass(................); //this classid 0
AddPlayerClass(................); // this is 1
AddPlayerClass(................); // this is 2
Then under OnPlayerRequestClass
Код:
SetPlayerTeamFromClass(playerid,classid);
Код:
SetPlayerTeamFromClass(playerid, classid)
{
	 if(classid == 0 || classid == 1 || classid == 2) 
	 {
	  gTeam[playerid] = TEAM_ONE;
	 }
       return 1;
}
Reply
#4

Quote:
Originally Posted by DJDhan
Код:
AddPlayerClass(................); //this classid 0
AddPlayerClass(................); // this is 1
AddPlayerClass(................); // this is 2
Then under OnPlayerRequestClass
Код:
SetPlayerTeamFromClass(playerid,classid);
Код:
SetPlayerTeamFromClass(playerid, classid)
{
	 if(classid == 0 || classid == 1 || classid == 2) 
	 {
	  gTeam[playerid] = TEAM_ONE;
	 }
       return 1;
}
Thats the ONE!!!!!!!!!!!! thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)