[Include] Server News Box
#1

NewsBox

Hi,

This is an Include which would create a textdrawbox at the right bottom corner of your screen in your SA-MP Server.

The changes you need to make in your GM/FS if you're going to use this are as follows.

First, On the top of your Script you would have to write this:

pawn Код:
#include <NewsBox>
Second, Under OnGameModeInit()/OnFilterScriptInit() you would have to add the following:

pawn Код:
public OnGameModeInit()
{
    NewsBoxTextDrawInit();
    return 1;
}
Third, Under OnPlayerConnect(playerid) you would have to add the following:

pawn Код:
public OnPlayerConnect(playerid)
{
    NewsBoxTextDrawConnect(playerid);
    return 1;
}
Finally, You would've to add the following under OnPlayerDisconnect(playerid):

pawn Код:
public OnPlayerDisconnect(playerid)
{
    NewsBoxTextDrawDisconnect(playerid);
    return 1;
}
pawn Код:
/* native (Fuction Of the Include)

SendNewsBoxMessage(playerid, const text [])

*/
Screenshot:




I'd soon be releasing an FS related to this and would try to update this too since this is the very basic thingy.

Downloads:

Mediafire
Pastebin

I Hope people like it.

Reply


Messages In This Thread
Server News Box - by Vege - 18.09.2013, 21:00
Re: Server News Box - by Lordzy - 19.09.2013, 04:00
Re: Server News Box - by Vege - 19.09.2013, 08:01
Re: Server News Box - by Lordzy - 19.09.2013, 17:29
Re: Server News Box - by DemME - 20.12.2013, 19:17

Forum Jump:


Users browsing this thread: 1 Guest(s)