Jump to content
  • 0

Cum fac comanda


Question

Posted

Cum fqac comanda /announce pt a da un anunt la jumatea ecranului si sa vada toti playeri

<a href="http://www.game-state.eu/188.212.105.161:7777/"><img src="http://www.game-state.eu/188.212.105.161:7777/430x73_FFFFFF_FF9900_000000_000000.png" alt="www.Game-State.eu" style="border-style: none;" /></a>

2 answers to this question

Recommended Posts

Posted

Poftim comanda facuta pe ZCMD:

COMMAND:announce(playerid, params[]) // by Kostas'
{
    new text[64], time, style;
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "Doar administratorul RCON poate folosi aceasta comanda!");
    else if (sscanf(params, "iis[64]", style, time, text)) return SendClientMessage(playerid, -1, "/announce [0-6] <timp in ms> <text>");
    else if (strlen(text) > 64) return SendClientMessage(playerid, -1, "Mesaj prea lung!");
    else if(style == 2) return SendClientMessage(playerid, -1, "Bug cu style 2! Nu il folosi!");
    else if (style < 0 || style > 6) return SendClientMessage(playerid, -1,"Style invalid.");
    else if (time > 20*1000) return SendClientMessage(playerid, -1, "Sa nu fie mai lung de 20 secunde.");
    else {
        GameTextForAll(text, time, style);
    }
    return 1;
}

Posted

mersi

<a href="http://www.game-state.eu/188.212.105.161:7777/"><img src="http://www.game-state.eu/188.212.105.161:7777/430x73_FFFFFF_FF9900_000000_000000.png" alt="www.Game-State.eu" style="border-style: none;" /></a>

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.