SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

 
 
Thread Tools Display Modes
Old 21/01/2010, 08:33 PM   #1
[dN]Eagle
Big Clucker
 
Join Date: Jan 2010
Posts: 79
Reputation: 0
Default Team deathmatch question.

Hey, my first post here

I have a question, I want specific classes to be assigned to the correct team ( #define TEAM_LAW & #define TEAM_MAFIA )

I just followed the tutorial on wiki but it didn't helped me

Code:
// TEAM COLOR SET-UP
SetPlayerToTeamColor(playerid)
{
	if (gTeam[playerid] == TEAM_MAFIA)
	{
		SetPlayerColor(playerid, TEAM_MAFIA_COLOR);
	}
	else if (gTeam[playerid] == TEAM_LAW)
	{
		SetPlayerColor(playerid, TEAM_LAW_COLOR);
	}
}
// END OF TEAM COLOR SET-UP <---->


Code:
// TEAM SET-UP

SetPlayerTeamFromClass(playerid, classid)
{
	if (classid >= 112)
	{
		gTeam[playerid] = TEAM_MAFIA;
	}
	else
	{
		gTeam[playerid] = TEAM_LAW;
	}
}
// END OF TEAM SET-UP <---->

Code:
	
// MAFIA SKINS	<---->
	AddPlayerClass(126, 1958.3783, 1343.1572, 15.3746, 269.1425,0, 0, 0, 0, 0, 0); // Blue Jacket & Golden Necklace
	AddPlayerClass(127, 1958.3783, 1343.1572, 15.3746, 269.1425,0, 0, 0, 0, 0, 0); // Brown Jacket
	AddPlayerClass(112, 1958.3783, 1343.1572, 15.3746, 269.1425,0, 0, 0, 0, 0, 0); // Bald guy
[dN]Eagle is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[GameMode] [GM]Team Deathmatch v1.3 NinjaCroko Gamemode Scripts 7 16/06/2013 02:50 PM
[GameMode] [GM] Torran's Team Deathmatch NewTorran Gamemode Scripts 5 11/07/2010 09:53 AM
Team deathmatch Freddy Z Help Archive 8 05/01/2010 07:18 AM
[Map] [MAP]Forest Team Deathmatch im2fast4u Maps 15 12/09/2009 05:35 AM
team deathmatch ndr99 Help Archive 7 14/02/2009 12:57 AM


All times are GMT. The time now is 12:14 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.