Help with Admin Commands please.
#1

When I do "/a" then I see Admin MSG
But when I do "/a Hello." Then I see Bad Command blabla.

But If it can? Can anyone make it that you can do "@Hello" and not "/a Hello"

Can anyone help me??

Код:
   if (strcmp("/a", cmdtext, true) == 0 && PlayerAdminLevel[playerid] >= 1) // Talk To Other Admins
  {
  new output[255];
  new pname[24];
  GetPlayerName(playerid, pname, 24);
  strmid(output,cmdtext,7,strlen(cmdtext));
  format(string, sizeof(string), "(ADMIN MSG): %s(%d) %s",pname,playerid,output);
  printf("%s", string);
  for(new i=0;i<MAX_PLAYERS;i++)
  {
  if(PlayerAdminLevel[i] >= 1) {
  format(string, sizeof(string), "(ADMIN MSG): %s(%d) %s",pname,playerid,output);
  SendClientMessage(i,COLOR_RED,string);
  }
  }
  return 1;
  }
Reply
#2

Ok Allready Done. My Friend Helped me
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)