[SOLVED] Chat Commands Only Cop's
#1

How can i make a commands like this only for cop?

I trying to make one but it doesn't work!

Thank you for helping me!

Reply
#2

Simple Command to specific team (in case COPS)

Код:
  if(strcmp("/copcommand", cmd, true) == 0)//Modify to your command
	{
	if(gTeam[playerid] == COP) //Modify to your cop team!
	{
	GameTextForPlayer(playerid,"~b~COP ~w~Command!",4000,3); //Send message on screen.
	} else SendClientMessage(playerid,COLOR_RED,"(ERROR): Command for COPs!"); //Command for only cops message!
      return 1;
	}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)