07.11.2009, 03:11
1st (lets call this one team cops) So at the top of your script put:
And lets call the other team robbers
When they join the cop team add this to the code:
and when they join robbers:
now that that stuff is added add this for when they enter the checkpoint:
That will probably work. Post back and see how it does.
pawn Код:
new bool: COPS[MAX_PLAYERS];
pawn Код:
new bool: ROBBERS[MAX_PLAYERS];
pawn Код:
COPS[playerid] = true;
pawn Код:
ROBBERS[playerid] = true;
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);
}

