[pawn]#include <a_samp>
#define szin_zöld 0x35b02aAA
#define zöld 0x35b02aAA
#define ConnectMessages
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
print(\"\\n--------------------------------------\");
print(\" Connect Message by Krissz96|| Javítva:DeaD;Flash\");
print(\"--------------------------------------\\n\");
return 1;
}
#endif
public OnPlayerConnect(playerid)
{
new pName[MAX_PLAYER_NAME], string[128];
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), \"Játékos %s %d csatlakozott a szerverhez\", pName);
SendClientMessageToAll(zöld,string);
}//By Flash
public OnPlayerDisconnect(playerid, reason)
{
new name[MAX_PLAYER_NAME];
new str[128];
GetPlayerName(playerid, name, sizeof(name));
{
switch (reason) {
case 0: format(str, sizeof(str), \"====={ff0000}%s (%d) Eltávozott a Szerveröl (hiba/crash)\", name, playerid);
case 1: format(str, sizeof(str), \"====={ff0000}%s (%d) Eltávozott a Szerveröl (Kilépett)\", name, playerid);
}
SendClientMessageToAll(zöld, str);
}
return 1;
}
[/pawn]