[Pedido] Como eu crio comando sem Barra?
#7

Mano, eu to meio confuso agora, tipo.. eu criei isso aqui:
PHP код:
new string[128];
format(string, sizeof(string), "@Chat Global (%s): {FFFFFF}%s", PlayerName(playerid), text);
SendClientMessageToAll(COLOR_LIGHTBLUE, string); 
E tipo.. quando eu digito "@cg Olб" aparece assim no chat: "Chat Global (GasparzinhoXD): @cg Olб" como eu faзo pra nгo aparecer esse @cg que й o comando.
Deixei assim o seu cуdigo, ve se ta certo.
PHP код:
public OnPlayerText(playerid, text[])
{
    new 
idxSpace = strfind(text, "@cg", true, 0);
    new 
str[9], str2[6];
    if(!
sscanf(text[idxSpace+1], "s[9]s[6]", str, str2))
    {
        new 
string[128];
        
format(string, sizeof(string), "@Chat Global (%s): {FFFFFF}%s", PlayerName(playerid), text);
        
SendClientMessageToAll(COLOR_LIGHTBLUE, string);
        
printf("%s\n%s", str, str2);
    }
    return 
1;
} 
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)