Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //////////////////////////////////////////////////////////////////////////////| By: Igor Luiz| /////////////////////////////////////////////////////////
- #include <a_samp>
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print("|FS| IG Ligado");
- print("--------------------------------------\n");
- return 1;
- }
- #else
- main()
- {
- print("\n----------------------------------");
- print("|FS| IG Ligado");
- print("----------------------------------\n");
- }
- new
- Text:ConectDesconect,
- Info[100]
- ;
- #endif
- public OnGameModeInit()
- {
- ConectDesconect = TextDrawCreate(21.000000,161.000000, "_");
- TextDrawAlignment(ConectDesconect,0);
- TextDrawBackgroundColor(ConectDesconect,0x000000ff);
- TextDrawFont(ConectDesconect,1);
- TextDrawLetterSize(ConectDesconect,0.199999,1.200000);
- TextDrawColor(ConectDesconect,0xffffffff);
- TextDrawSetOutline(ConectDesconect,1);
- TextDrawSetProportional(ConectDesconect,1);
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- TextDrawHideForAll(ConectDesconect);
- format(Info, sizeof(Info), "~w~o jogador ~g~%s [ID:%i] ~w~esta ~g~conectado.", Nome(playerid), playerid);
- TextDrawSetString(ConectDesconect, Info);
- TextDrawShowForAll(ConectDesconect);
- SetTimer("Destruir", 8000, true);
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- TextDrawHideForAll(ConectDesconect);
- format(Info, sizeof(Info), "~w~o jogador ~r~%s [ID:%i ~w~esta ~r~desconectado.", Nome(playerid), playerid);
- TextDrawSetString(ConectDesconect, Info);
- TextDrawShowForAll(ConectDesconect);
- SetTimer("Destruir", 8000, true);
- return 1;
- }
- forward Destruir();
- public Destruir()
- {
- TextDrawHideForAll(ConectDesconect);
- }
- stock Nome(playerid)
- {
- new nome[MAX_PLAYER_NAME];
- GetPlayerName(playerid, nome, sizeof( nome ));
- return nome;
- }
- //////////////////////////////////////////////////////////////////////////////| By: Igor Luiz| /////////////////////////////////////////////////////////
Advertisement
Add Comment
Please, Sign In to add comment