[Ajuda] OnPlayerText
#10

Tente isto:

pawn Код:
public OnPlayerText(playerid, text[])
{
    new Nivel[56];
    switch(PlayerInfo[playerid][pAdmin])
    {
        case 0: Nivel = "";
        case 1: Nivel = "TEMPORБRIO";
        case 2: Nivel = "LEVEL 2";
        case 3: Nivel = "LEVEL 3";
        case 4: Nivel = "LEVEL 4";
        case 5: Nivel = "MASTER";
        case 6: Nivel = "MБXIMO";
        case 7: Nivel = "DONO";
    }
    new string[512], pname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, pname, sizeof(pname));
    format(string, sizeof(string), "{FFFFFF}[%s-%d] %s: %s", Nivel, PlayerInfo[playerid][pAdmin], pname, text);
    if(strlen(text) > 40){
        SendClientMessage(playerid, COR_VERMELHO, "[CHAT] | Diminua o Tamanho da Mensagem.");
        return 1;
    }
    SendClientMessageToAll(playerid,string);
    return 1;
}
Reply


Messages In This Thread
OnPlayerText - by CLANdok - 30.09.2014, 13:54
Re: OnPlayerText - by ipsLuan - 30.09.2014, 14:17
Re: OnPlayerText - by CLANdok - 30.09.2014, 14:17
Re: OnPlayerText - by CLANdok - 30.09.2014, 14:25
Re: OnPlayerText - by DannielCooper - 30.09.2014, 14:56
Re: OnPlayerText - by CLANdok - 30.09.2014, 15:01
Re: OnPlayerText - by CLANdok - 30.09.2014, 18:37
Re: OnPlayerText - by ipsLuan - 30.09.2014, 19:11
Re: OnPlayerText - by CLANdok - 30.09.2014, 19:27
Re: OnPlayerText - by ipsLuan - 30.09.2014, 19:45

Forum Jump:


Users browsing this thread: 1 Guest(s)