Announce Cmd
#5

pawn Код:
#include zcmd
#include sscanf2
CMD:announce(playerid,params[])
{
    new str[256];
    if (APlayerData[playerid][LoggedIn] == true)
    {
        if (APlayerData[playerid][PlayerLevel] >= 1)
        {
            if(sscanf(params, "s", str)) return SendClientMessage(playerid, -1, "Usage: /announce [Announce Msg]");
            format(str, sizeof(str), "%s", str);
            GameTextForAll(str, 5000, 3);
        }
        else return SendClientMessage(playerid, -1, "you need to be an admin to use this commands!");
    }
    else return SendClientMessage(playerid, -1, "You need to be logged in to use this commands.");
    return 1;
}
Reply


Messages In This Thread
Announce Cmd - by Geeboi_Mehdi - 28.08.2012, 22:41
Re: Announce Cmd - by C00K13M0N$73R - 28.08.2012, 22:46
Re: Announce Cmd - by Geeboi_Mehdi - 28.08.2012, 22:52
Re: Announce Cmd - by MarinacMrcina - 28.08.2012, 22:55
Re: Announce Cmd - by Devilxz97 - 29.08.2012, 01:00
Re: Announce Cmd - by Geeboi_Mehdi - 29.08.2012, 01:03
Re: Announce Cmd - by Devilxz97 - 29.08.2012, 01:07

Forum Jump:


Users browsing this thread: 2 Guest(s)