[ANNOUNCEMENT STYLE HELP] I need help fixing my announcement command style!
#10

Quote:
Originally Posted by DanishHaq
Посмотреть сообщение
pawn Код:
dcmd_announce(playerid,params[])
{
    if(PlayerInfo[playerid][Level] >= 1 || IsPlayerAdmin(playerid))
    {
        if(!strlen(params)) return SendClientMessage(playerid,red,"USAGE: /announce <text>");
        CMDMessageToAdmins(playerid,"ANNOUNCE");
        new string[100];
        format(string, sizeof(string), "~w~%s", params);
        return GameTextForAll(string, 9000, 0);
    } else return SendClientMessage(playerid,red,"Unknown command. Type /cmds to see a list of available commands.");
}
Sorry, I forgot you wanted that :P, here you go.
theres a problem now with this code, sometimes it announces two times, please help me again
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)