11.11.2010, 11:47
how create a gate which opened only for cops(pd/fbi/ng)?
#define TEAM_CIV 0
#define TEAM_PD 1
#define TEAM_FBI 2
if(strcmp(cmdtext, "/opengate1", true, 10) == 0)
{
if(gTeam[playerid] == 1 && gTeam[playerid] == 2)
{
MoveObject(.....);
SendClientMessage(playerid, color, "Gates are opening...");
}
else
{
SendClientMessage(playerid, coloe, "Youre not FBI/PD");
}
}