All pastes #925899 Raw Edit

Online Status

public cpp v1 · immutable
·published 2008-03-03 11:52 UTC
rendered paste body
/*x---------------------------------Includes-------------------------------------x*///--INCLUDE--//#include <a_samp>#include <a_players>/*x---------------------------------Defines-------------------------------------x*///--COLOR--//#define ONLINE 0x6AF7E1FF     //////--VARIABLE--//new Msg;//--FORWARD--//forward OnlineStat();/*x---------------------------------CallBacks-------------------------------------x*/public OnFilterScriptInit(){        Msg = 0;        SetTimer("OnlineStat",120000,true); // Message about online appears every 2 minutes        print("<|------------------|>"); //--        print(".:[ - Online FS - ]:.");                         //---        print(".:[ - by Spider - ]:.");                         //---- Please dont edit :)		print(".:[ -    2008   - ]:.");                         //---        print("<|------------------|>"); //--        return 1;}public OnlineStat(){new string[256];new string1[256];new playerid;format(string, sizeof(string), "  : %d", IsPlayerConnected(playerid) ); // this print in game chatformat(string1, sizeof(string1), "Currently Online: %d", IsPlayerConnected(playerid) ); // this print in server cmd windowprintf(string1);switch (Msg)        {         	case 0: {SendClientMessageToAll(ONLINE,string);} // first message        }return 1;}