Editing Server RCON?
#4

pawn Код:
CMD:server(playerid, params[])
{
    new string[128];
    if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command.");
    if(PlayerInfo[playerid][pAdmin] < 2) return SendClientMessage(playerid, COLOR_GREY, "You must be level 2 admin and up to use this command.");
    if(sscanf(params, "s[128]", params)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /server [text]");
    if(AntiAdv(playerid, params)) return 1;
    format(string, sizeof(string), "*SERVER: %s *", params);
    SendClientMessageToAll(COLOR_CYAN, string);
    return 1;
}
i use this instead of rcon,
why? because rcon login takes more time to typ (Im lazy indeed...)
the code explains itself i guess

(Hope i helped you with this )
Reply


Messages In This Thread
Editing Server RCON? - by geohareas - 13.02.2013, 18:14
Re: Editing Server RCON? - by Patrick - 13.02.2013, 18:15
Re: Editing Server RCON? - by [MG]Dimi - 13.02.2013, 18:16
Re: Editing Server RCON? - by Smikkeltoetje - 13.02.2013, 18:18
Re: Editing Server RCON? - by Patrick - 13.02.2013, 18:24
Re: Editing Server RCON? - by Smikkeltoetje - 13.02.2013, 18:29
Re: Editing Server RCON? - by geohareas - 13.02.2013, 18:38
Re: Editing Server RCON? - by ZayanImran - 13.02.2013, 18:44
Re: Editing Server RCON? - by Smikkeltoetje - 13.02.2013, 18:45

Forum Jump:


Users browsing this thread: 1 Guest(s)