1st (lets call this one team cops) So at the top of your script put:
pawn Код:
new bool: COPS[MAX_PLAYERS];
And lets call the other team robbers
pawn Код:
new bool: ROBBERS[MAX_PLAYERS];
When they join the cop team add this to the code:
and when they join robbers:
pawn Код:
ROBBERS[playerid] = true;
now that that stuff is added add this for when they enter the checkpoint:
pawn Код:
if(ROBBERS[playerid] == true)
{
ResetPlayerWeapons(playerid);
}
if(COPS[playerid] == true)
{
new string [128];
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "Welcome back to the PD officer %s", pName);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
}
That will probably work. Post back and see how it does.