OOC Command, (Out of Character, /o)
#4

Quote:
Originally Posted by Hiddos
Посмотреть сообщение
OOC: Out Of Character

pawn Код:
public OnPlayerText(playerid, text[])
{
  if(text[0] == '$') //If the text starts with a '$', it'll send OOC.
  {
    new pName[MAX_PLAYER_NAME], string[128]; GetPlayerName(playerid, pName, sizeof pName);
    format(string,sizeof string,"[OOC] %s: %s",pName, text[1]);
    SendClientMessageToAll(0x0000ffff,string);
    return 0;
  }
  return 1;
}
Thank you, But i want it to be under
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
Reply


Messages In This Thread
OOC Command, (Out of Character, /o) - by Luis_Leone - 30.07.2010, 17:14
Re: OOC Command - by ViruZZzZ_ChiLLL - 30.07.2010, 17:16
Re: OOC Command, (Out of Character, /o) - by Hiddos - 30.07.2010, 17:20
Re: OOC Command, (Out of Character, /o) - by Luis_Leone - 30.07.2010, 17:23
Re: OOC Command, (Out of Character, /o) - by Hiddos - 30.07.2010, 17:26
Re: OOC Command, (Out of Character, /o) - by Luis_Leone - 30.07.2010, 17:29
Re: OOC Command, (Out of Character, /o) - by Hiddos - 30.07.2010, 17:31
Re: OOC Command, (Out of Character, /o) - by Kar - 30.07.2010, 17:34
Re: OOC Command, (Out of Character, /o) - by Luis_Leone - 30.07.2010, 17:34
Re: OOC Command, (Out of Character, /o) - by Kar - 30.07.2010, 17:36

Forum Jump:


Users browsing this thread: 1 Guest(s)