[FilterScript] Godmode System.
#3

pawn Код:
public OnPlayerConnect(playerid)
{
        new pname[MAX_PLAYER_NAME], string[256];
    GetPlayerName(playerid, pname, sizeof(pname));
    format(string, sizeof(string), "{ff0000}%s {c0c0c0}has joined the server.", pname);
        SendClientMessage(playerid, COLOR_WHITE, "{FF0000}*** {ff2660}Welcome to {00FF99}:: {ff2660}"SERVER_NAME" {FF0000}***");
        SendClientMessage(playerid, COLOR_WHITE, "{e5e5e5} Sly's God-Mode system is being used in this server.");
        return 1;
}
Why's the string size 256.
You can use -1 instead of COLOR_WHITE
There will be 2 join messages now. ( filterscript and gamemode )

If someone does /god on and off, the chat bubble would still the there i guess..
Reply


Messages In This Thread
Sly's God-Mode System - by GShock - 06.07.2014, 06:18
Re: Godmode System. - by Ciandlah - 06.07.2014, 06:32
Re: Godmode System. - by Kyance - 06.07.2014, 06:32
Re: Godmode System. - by iFarbod - 06.07.2014, 07:08
Re: Godmode System. - by Parallex - 06.07.2014, 07:29
Re: Godmode System. - by GShock - 06.07.2014, 16:16
Re: Godmode System. - by NoahF - 06.07.2014, 16:39
Re: Godmode System. - by FahadKing07 - 06.07.2014, 16:44
Re: Godmode System. - by iFarbod - 06.07.2014, 17:01
Re: Godmode System. - by FahadKing07 - 06.07.2014, 17:03

Forum Jump:


Users browsing this thread: 2 Guest(s)