09.09.2013, 16:13
(
Последний раз редактировалось Iron3man; 11.09.2013 в 16:40.
)
//-----------------------------------------------------------------------------------------\\
__*!! NiteshBox !!*__
__*!! NiteshBox !!*__
Introduction
This is my first release on sa-mp forums. Hope you like it.
This include is very simple. It make easier to you to create Connect message's in separate box, with only one single line of code required!
I made this for my own TDM server that I am developing, but I like to share, so here it is.
How to use it ?
First of all you need to Include the niteshbox
So for including paste this code almost above the script
Код:
#include <niteshbox>
under OnGameModeInit
Код:
public OnGameModeInit() { NiteshTextDrawInit(); return 1; }
Код:
public OnGameModeExit() { NiteshTextDrawExit(); return 1; }
Код:
public OnPlayerConnect(playerid) { NiteshTextDrawConnect(playerid); return 1; }
Код:
public OnPlayerDisconnect(playerid) { NiteshTextDrawDisconnect(playerid); return 1; }
Example--------------------------------
public OnPlayerConnect(playerid)
{
new sstring[64], Name[MAX_PLAYER_NAME];
GetPlayerName(playerid,Name,MAX_PLAYER_NAME);
format(sstring,sizeof sstring,"%s(%d) has ~g~~h~joined ~w~the server",Name,playerid);
SendNiteshMessage(playerid,sstring);
return 1;
}
Screen Shot
DOWNLOAD
only one mirror
http://pastebin.com/8kSB0jaM
Installation
Just copy the text from http://pastebin.com/8kSB0jaM and paste in Notepad.
Now save it as niteshbox.inc
Now place it in include folder of pawn
And you are done.....
Credits
All the credits goes to
NVM aka Ironman aka Nitesh(me)
Bugs
Bug Free.!!!
Enjoy, and please report any bugs,if you found.
Thanks !!
//-----------------------------------------------------------------------------------------\\