[Ajuda] Chat Adm
#1

PHP код:
 public OnPlayerText(playeridtext[])
{
    if(
text[0] == '#' && PlayerInfo[playerid][Level] >= 1) {
        new 
string[128]; GetPlayerName(playerid,string,sizeof(string));
        
format(string,sizeof(string),"| ADM-CHAT |: %s: (%i): %s",string,playerid,text[1]); MessageToAdmins(green,string);
        return 
0;
    }
    
    if(
ServerInfo[MustLogin] == && PlayerInfo[playerid][Registered] == && PlayerInfo[playerid][LoggedIn] == 0)
    {
    
SendClientMessage(playerid,red,"Vocк nгo estб logado!");
    return 
0;
    } 
eu gostaria de transformar em um comando pois ele estб assim: "# [Mensagem]" e eu gostaria de fazer que ele fosse um comando,Ex: "/ca [Mensagem]" Grato!
Reply


Messages In This Thread
Chat Adm - by Pedro1812 - 02.04.2017, 22:07
Re: Chat Adm - by didimk157 - 02.04.2017, 22:14
Re: Chat Adm - by Pedro1812 - 02.04.2017, 22:40
Re: Chat Adm - by Pedro1812 - 02.04.2017, 22:55
Re: Chat Adm - by Luiiiz - 02.04.2017, 22:56
Re: Chat Adm - by didimk157 - 02.04.2017, 23:01
Re: Chat Adm - by Pedro1812 - 02.04.2017, 23:05
Re: Chat Adm - by didimk157 - 02.04.2017, 23:14
Re: Chat Adm - by Pedro1812 - 02.04.2017, 23:18
Re: Chat Adm - by IlanZ - 02.04.2017, 23:25

Forum Jump:


Users browsing this thread: 1 Guest(s)