How to get to..
#1

Hello,

Im making my own admin script and ive done everything im just making admin chat,
Ive done it all, But i want to detect if the player types + and nothing else,
And if they do it dosent show it in chat or do admin chat?
Reply
#2

pawn Код:
public OnPlayerText(playerid,text[])
{
  if((text[0]=='+')&&(IsPlayerAdmin(playerid))
  {
    new tmp[192];
    GetPlayerName(playerid,tmp,24);
    format(tmp,192,"%s: %s",tmp);
    for(new ply;ply<MAX_PLAYERS;ply++)if(IsPlayerConnected(ply)&&IsPlayerAdmin(ply))SendClientMessage(ply,0xFF0000FF,tmp);
    return 0;
  }
  return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)