[Ajuda] Chat Adm
#2

testa ai editado por via das duvidas tome logo strcmp testga la
la no onplayercommandtext adicione
PHP код:
 dcmd(cacmdtext); 
PHP код:
 dcmd_ca(playeridparams[]) 
{
     
    new 
Texto[200]; 
    if(
sscanf(params,"s",Texto)) return SendClientMessage(playerid, -1," CMD: /ca [Texto]"); 
    {
         
        new 
string[128]; GetPlayerName(playerid,string,sizeof(string));  
        
format(string,sizeof(string),"| ADM-CHAT |: %s: (%i): %s",string,playerid,text[1]); MessageToAdmins(green,string);   
    }  
    if(
ServerInfo[MustLogin] == && PlayerInfo[playerid][Registered] == && PlayerInfo[playerid][LoggedIn] == 0)  
    {
          
        
SendClientMessage(playerid,red,"Vocк nгo estб logado!");  
        return 
1
    } 
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)