[Help]: An Admin Message
#3

Quote:
Originally Posted by Yashas
Посмотреть сообщение
Change text [1] to text if you don't want that / to come then do text[0] = ' '; then do format with text.Its fixed.

text[1] will give only the 2nd character of the string not the whole string from 2nd character.

Код:
text[0] = ' ';
format(string,sizeof(string),"**%s(%d) has typed %s",pName,playerid,text);
Like that?

PHP код:
  if (text[0] == ' ')
  {
  new 
CMDMessage[128];
  
GetPlayerName(playeridCMDMessageMAX_PLAYER_NAME);
  
format(CMDMessage sizeof CMDMessage"*__* %s[%d] Has Typed: %s" ,GetName(playerid), playeridtext);
  
SendAdminMessage(COLOR_GREYCMDMessage);
  return 
1;

Reply


Messages In This Thread
[Help]: An Admin Message - by Areax - 04.05.2013, 08:08
Re: [Help]: An Admin Message - by Yashas - 04.05.2013, 08:17
Re: [Help]: An Admin Message - by Areax - 04.05.2013, 08:32
Re: [Help]: An Admin Message - by DaRk_RaiN - 04.05.2013, 08:34
Re: [Help]: An Admin Message - by Areax - 04.05.2013, 08:50
Re: [Help]: An Admin Message - by Yashas - 04.05.2013, 08:52

Forum Jump:


Users browsing this thread: 1 Guest(s)