[SOLVED] Chat Commands Only Cop's - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [SOLVED] Chat Commands Only Cop's (
/showthread.php?tid=91583)
[SOLVED] Chat Commands Only Cop's -
Smiths - 15.08.2009
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!
Re: Chat Commands Only Cop's -
LuxurioN™ - 15.08.2009
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;
}