[Ajuda] Nъmero de caracteres
#2

PHP код:
CMD:av(playeridparams[]) 
    { 
        new 
texto[128],NickName[MAX_PLAYER_NAME],textoav[128]; 
        if(
Player[playerid][pAdmin] == 0) return SendClientMessage(playeridCOR_ADMIN"Vocк nгo tem autorizaзгo para usar esse comando."); 
        if(
sscanf(params"s[128]"textoav)) return SendClientMessage(playerid0xFFFFFFAA"USE: /av [texto]"); 
        if(
AdminTrabalhando[playerid] < && Player[playerid][pAdmin] != && Player[playerid][pAdmin] != 10 && Player[playerid][pAdmin] != 9
            { 
                
SendClientMessage(playeridCOR_ADMIN"Vocк nгo estб trabalhando, use /trabalhar"); 
                return 
1
            } 
            
GetPlayerName(playeridNickNameMAX_PLAYER_NAME); 
            
SendClientMessageToAll(0x0000FFFF"_____________________|Aviso da Administraзгo|_____________________"); 
            
format(textosizeof(texto), "{00FF00} Admin %s: %s"NickNametextoav); 
            
SendClientMessageToAll(-1texto); 
    return 
1

Tenta aн.
@edited
Nгo precisa ficar usar IsPlayerConnected para checar se o playerid estб online, a final, se ele estб digitando o comando, ele estб conectado.
Reply


Messages In This Thread
Nъmero de caracteres - by Sennior - 15.08.2015, 15:53
Re: Nъmero de caracteres - by SkullFire - 15.08.2015, 15:59
Re: Nъmero de caracteres - by Sennior - 15.08.2015, 16:06
Re: Nъmero de caracteres - by SkullFire - 15.08.2015, 16:16
Re: Nъmero de caracteres - by Sennior - 15.08.2015, 16:43
Re: Nъmero de caracteres - by n0minal - 15.08.2015, 16:44
Re: Nъmero de caracteres - by SkullFire - 15.08.2015, 16:44
Re: Nъmero de caracteres - by Sennior - 15.08.2015, 16:48

Forum Jump:


Users browsing this thread: 2 Guest(s)