[HELP]:OnPlayerText [RENEW EDITION!]
#3

Heres The Code

pawn Код:
public OnPlayerText(playerid, text[])
{
    if(IsIp(text))
    {
        SendClientMessage(playerid, COLOR_RED, "Server Advertisement is Not Allowed!");
        SendClientMessage(playerid, COLOR_RED, "You Have Been Banned Reason: Server Advertisement");
        BanEx(playerid, "Server Advertisement");
        return 0;
    }
   
    if(GetPVarInt(playerid, "Muted") == 1)
    {
        SendClientMessage(playerid,COLOR_RED, "You cant Talk While on Class Selection");
        return 0;
    }
    else if(GetPVarInt(playerid, "Muted") == 0)
    {
      new PlayerName[MAX_PLAYER_NAME];
      GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
      GetPlayerColor(playerid);
      format(text, 1024, "%s : {FFFFFF}[%d] {FFFFFF}%s", PlayerName, playerid, text);
      SendClientMessageToAll(GetPlayerColor(playerid), text);
    }
    return 0;
}
Reply


Messages In This Thread
[HELP]:OnPlayerText [RENEW EDITION!] - by lyrics - 14.08.2011, 06:22
Re: [HELP]:OnPlayerText [RENEW EDITION!] - by Ironboy - 14.08.2011, 06:27
Re: [HELP]:OnPlayerText [RENEW EDITION!] - by lyrics - 14.08.2011, 06:31
Re: [HELP]:OnPlayerText [RENEW EDITION!] - by lyrics - 14.08.2011, 06:46
Re: [HELP]:OnPlayerText [RENEW EDITION!] - by Grim_ - 14.08.2011, 07:11
Re: [HELP]:OnPlayerText [RENEW EDITION!] - by Darnell - 14.08.2011, 07:19
Re: [HELP]:OnPlayerText [RENEW EDITION!] - by Grim_ - 14.08.2011, 07:21
Re: [HELP]:OnPlayerText [RENEW EDITION!] - by lyrics - 14.08.2011, 09:30
Re: [HELP]:OnPlayerText [RENEW EDITION!] - by Darnell - 14.08.2011, 09:37

Forum Jump:


Users browsing this thread: 1 Guest(s)