Multiple Teams Error
#1

I tried searching and looking at tutorials, but it doesn't really explain what I want. I have multiple teams for my DM server. It's gonna be three or four of them. So I don't know how to add the skins to SetPlayerTeamFromClass and OnPlayerRequestClass and all that cause it costs errors everytime. I tried:

Код:
  
public OnPlayerRequestClass(playerid, classid)
{
	SetupPlayerForClassSelection(playerid);
	SetPlayerTeamFromClass(playerid,classid);

     if(classid == 0 || classid == 1 || classid == 2) {
	  GameTextForPlayer(playerid,"~r~TEAM Example Text",1000,5);
	} else if(classid == 3 || classid == 4 || classid == 5) {
	  GameTextForPlayer(playerid,"~g~TEAM Example Text",1000,5);
	} else if(classid == 6 || classid == 7 || classid == 8 || classid == 9) {
	  GameTextForPlayer(playerid,"~g~TEAM Example Text",1000,5);

   	return 1;
}
Reply
#2

Could really use some help here, it's slowing down the production of my server.

-Sorry for bumping
Reply
#3

Read this:
http://forum.sa-mp.com/index.php?top....0#post_assume
Reply
#4

That doesn't help with Skins to Teams though. If it does can someone maybe explain it?
Reply
#5

Look at this gamemode:
http://forum.sa-mp.com/index.php?topic=83512.0
And in the server package which you can download from www.sa-mp.com is a gamemode that has this function too
Reply
#6

Now that explains the case and how to do it. Thanks a lot!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)