01.01.2012, 19:15
Ok then,you have already TEAM_RED and TEAM_BLUE?
We suppose that the player choose TEAM_BLUE,so medic is a RANK (that's how i call it to avoid confusion in the server),you can make an IF and set the MEDIC_RED or MEDIC_BLUE.Example:
Something like this?
We suppose that the player choose TEAM_BLUE,so medic is a RANK (that's how i call it to avoid confusion in the server),you can make an IF and set the MEDIC_RED or MEDIC_BLUE.Example:
pawn Code:
if(gTeam[playerid] == TEAM_BLUE) {
SetPlayerColor(playerid,COLOR_BLUE);
SendClientMessage(playerid,COLOR_BLUE,"You are a medic of your blue team now!");
{
return 0;
}
}
else if(gTeam[playerid] == TEAM_GERMANY)
{
//Blabla