20.08.2009, 20:21
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..
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..