SA-MP Forums Archive
[Help] Comando /falar - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Help] Comando /falar (/showthread.php?tid=341826)



[Help] Comando /falar - mengueh - 12.05.2012

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.


Re: [Help] Comando /falar - zSuYaNw - 12.05.2012

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;
}



Re: [Help] Comando /falar - mengueh - 12.05.2012

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.


Re: [Help] Comando /falar - zSuYaNw - 12.05.2012

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;
}



Re: [Help] Comando /falar - Don_Speed - 12.05.2012

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;
}



Re: [Help] Comando /falar - RebeloX - 12.05.2012

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