OnPlayerText Bug
#1

hi i got 2 text, i just send 1 text

pawn Код:
public OnPlayerText(playerid, text[])
{
  if(PlayerAfk[playerid] == 1)
  {
  SendClientMessage(playerid, COLOR_WHITE, "You Cannot Speak While{00ffff} AFK!!{ffffff}!");
  }
  else if(PlayerAfk[playerid] == 0)
  {
  new name[MAX_PLAYER_NAME], msg[128];
  GetPlayerName(playerid, name, sizeof(name));
  format(msg, sizeof(msg), "{00FFFF}(%d) {ffffff}%s", playerid, text);
  SendPlayerMessageToAll(playerid, msg);
  return 1;
  }
 return 0;
}


Reply


Messages In This Thread
OnPlayerText Bug - by Guest123 - 02.05.2013, 16:49
Re: OnPlayerText Bug - by Pottus - 02.05.2013, 16:53
Re: OnPlayerText Bug - by Guest123 - 02.05.2013, 16:57
Re: OnPlayerText Bug - by mineralo - 02.05.2013, 16:57

Forum Jump:


Users browsing this thread: 1 Guest(s)