Diffrent skins for the same team?..
#1

Hello, I am coding a Team Death Match, and when people are on OnPlayerRequestClass, I want each team to have a few skins to choose from, wile keeping teamkill disabled for the whole team, no matter what skin it is..

I'm guessing it would be something in the team defines? Such as:

#define TEAM_TRIAD 0-1
#define TEAM_REDNECK 2-3

But I want to make sure, before I code everything

Thanks
Reply
#2

Did you think of using AddPlayerClassEx?

Example :

If you have a team Triad you would do :

//Anywhere in the script basically
New TEAM_TRIAD[MAX_PLAYERS];

Then under OnGameModeInit();

AddPlayerClassEx(TEAM_TRIAD,2,1529.3446,-888.6906,61.1224,49.6362,0,0,0,0,0,0);

What AddPlayerClassEx Allows the player to do is, if the player is a Team triad member, he can pick through the skins that have the TEAM_TRIAD (underlined part of AddPlayerClassEx Added into it) and if he is not a team triad, then under

OnPlayerRequestSpawn(playerid);
{
//however you have your teams defined will be different, but this is an example
if !IsPlayerTeamTriad(playerid);
SendClientMessage(playerid, 0xFF0000FF, "You are not a Team Triad member !");
return 0;
} else {
return 1;

Or something like that. I know my coding is wrong, but it is somewhat correct I guess..
Reply
#3

I'll try that, thanks.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)