Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include <Logs>
- #define TXT_Connectou "[Server]{00B9FF}O Player {FFFF00}%s{00B9FF} (id: {FFFF00}%i{00B9FF}) Entrou No Servidor."
- #define TXT_Desconectou "[Server]{00B9FF}O Player {FFFF00}%s{00B9FF} (id: {FFFF00}%i{00B9FF}) Saiu Do Servidor."
- public OnFilterScriptInit()
- {
- print("\n'- Don_Speed -'\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- main()
- {
- print("\n'- Don_Speed -'\n");
- }
- public OnPlayerConnect(playerid)
- {
- new Name[MAX_PLAYER_NAME], NewPlayerMsg[125], celulas[100];
- format(NewPlayerMsg, 128, TXT_Connectou, Name, playerid);
- SendClientMessageToAll( -1, NewPlayerMsg);
- if(!LogExistir("Entrou.log"))
- {
- CriarLog("Entrou.log");
- format(celulas, sizeof(celulas), "[Server]{00B9FF}O Player {FFFF00}%s{00B9FF} (id: {FFFF00}%i{00B9FF}) Entrou No Servidor.",Name, playerid);
- EscreverLog("Entrou.log", celulas);
- return 1;
- }
- return 0;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- new Name[MAX_PLAYER_NAME], Msg[125], celulas[100];
- format(Msg, 128, TXT_Desconectou, Name, playerid);
- SendClientMessageToAll( -1, Msg);
- if(!LogExistir("Saiu.log"))
- {
- CriarLog("Saiu.log");
- format(celulas, sizeof(celulas), "[Server]{00B9FF}O Player {FFFF00}%s{00B9FF} (id: {FFFF00}%i{00B9FF}) Saiu Do Servidor.",Name, playerid);
- EscreverLog("Saiu.log", celulas);
- return 1;
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement