Admin message
#9

Oh I see. try this: (Only add what you do not already have. If you need strtok - https://sampwiki.blast.hk/wiki/strtok)
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
  new cmd[256], tmp[256]; idx;
  cmd = strtok(cmdtext, idx);
  if(strcmp(cmd, "/announce", true) == 0)
  {
   tmp = strtok(cmdtext, idx);
   if(!strlen(tmp)) return 0;
   new gText[128];
   format(gText, sizeof(gText), "%s", tmp);
   GameTextForAll(gText, 3, 5000);
   return 1;
  }
  return 0;
}
Reply


Messages In This Thread
Admin message - by Freddy Z - 05.01.2010, 16:55
Re: Admin message - by Niixie - 05.01.2010, 17:31
Re: Admin message - by Rzzr - 05.01.2010, 17:35
Re: Admin message - by Freddy Z - 05.01.2010, 21:53
Re: Admin message - by LarzI - 05.01.2010, 21:59
Re: Admin message - by Freddy Z - 05.01.2010, 22:13
Re: Admin message - by Grim_ - 05.01.2010, 22:37
Re: Admin message - by Freddy Z - 05.01.2010, 22:50
Re: Admin message - by Grim_ - 05.01.2010, 22:54
Re: Admin message - by LarzI - 06.01.2010, 04:42

Forum Jump:


Users browsing this thread: 1 Guest(s)