[Help] Comando /falar
#1

pawn Код:
CMD:falar(playerid, params[])
{
    new Texto[128], string[128];
    if(JogadorInfo[playerid][lAdmin] < 1) return SendClientMessage(playerid, GREEN, "Vocк nгo й admin!!");
    if(sscanf(params, "r", Texto)) return SendClientMessage(playerid, GREEN, "USE : /falar [texto]");
    GetPlayerName(playerid, Texto, sizeof(Texto));
    format(string, sizeof(string), "[ADMIN] : %s",  Texto);
    SendClientMessageToAll(GREEN, string);
   
    return 1;
}
O problema й que quando printa na tela, sai o seguinte : "[ADMIN] : NomeDoAdmin", e eu preciso [ADMIN] : Msg.
Reply
#2

pawn Код:
CMD:falar(playerid, params[])
{
    new Texto[128], string[128];
    if(JogadorInfo[playerid][lAdmin] < 1) return SendClientMessage(playerid, GREEN, "Vocк nгo й admin!!");
    if(sscanf(params, "r", Texto)) return SendClientMessage(playerid, GREEN, "USE : /falar [texto]");
    format(string, sizeof(string), "[ADMIN] : %s",  Texto);
    SendClientMessageToAll(GREEN, string);
   
    return 1;
}
Reply
#3

Quote:
Originally Posted by [Full]Garfield[XDB]
Посмотреть сообщение
pawn Код:
CMD:falar(playerid, params[])
{
    new Texto[128], string[128];
    if(JogadorInfo[playerid][lAdmin] < 1) return SendClientMessage(playerid, GREEN, "Vocк nгo й admin!!");
    if(sscanf(params, "r", Texto)) return SendClientMessage(playerid, GREEN, "USE : /falar [texto]");
    format(string, sizeof(string), "[ADMIN] : %s",  Texto);
    SendClientMessageToAll(GREEN, string);
   
    return 1;
}
Daн sу fica [ADMIN] :

Sem nada do lado.
Reply
#4

pawn Код:
CMD:falar(playerid, params[])
{
    new Texto[128], string[128];
    if(JogadorInfo[playerid][lAdmin] < 1) return SendClientMessage(playerid, GREEN, "Vocк nгo й admin!!");
    if(sscanf(params, "s[128]", Texto)) return SendClientMessage(playerid, GREEN, "USE : /falar [texto]");
    format(string, sizeof(string), "[ADMIN] : %s",  Texto);
    SendClientMessageToAll(GREEN, string);
   
    return 1;
}
Reply
#5

pawn Код:
CMD:falar(playerid, params[])
{
    new DSamp[128];
    if(JogadorInfo[playerid][lAdmin] < 1) return SendClientMessage(playerid, GREEN, "Vocк nгo й admin!!");
    if(sscanf(params, "s[128]", params)) return SendClientMessage(playerid, GREEN, "USE : /falar [texto]");
    format(DSamp, sizeof(DSamp), "[ADMIN]: %s",params);
    SendClientMessageToAll(GREEN, DSamp);
    return 1;
}
Reply
#6

pawn Код:
CMD:falar(playerid,params[]){
    new result[128],AdminName[25];
    if(JogadorInfo[playerid][lAdmin] < 1)
        SendClientMessage(playerid,GREEN,"Vocк nгo й admin!!");
    if(isnull(params))
        SendClientMessage(playerid,GREEN,"USE: /falar [texto]");
    GetPlayerName(playerid,AdminName,25);
    format(result,sizeof(Result),"[ADMIN] %s: %s",AdminName,params);
    SendClientMessageToAll(GREEN,result);
    return 1;
}
Espero ter ajudado :P
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)