Mivel, hogy valamiért nem akarta feltölteni ez a sz*r net ezért felrakom a kódot:
[pawn]#include <a_samp>
#include <f_samp>
#if defined FILTERSCRIPT
new pName[MAX_PLAYER_NAME];
new string[256;]
public OnPlayerConnect(playerid)
{
new pName[MAX_PLAYER_NAME];
new string[46];
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), \"%s csatlakozott a szerverre.\", pName);
format(string, sizeof(string), \"%s connected to the server.\", pName);
SendClientMessageToAll(0xFF9900AA, string);
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
new pName[MAX_PLAYER_NAME];
new string[64];
GetPlayerName(playerid, pName, sizeof(pName));
switch(reason)
{
case 0:
GetPlayerName(playerid, pName, sizeof(pName));
format(string,sizeof(string),\"%s kírúgták. (KICK/BAN)\",pName);
format(string,sizeof(string),\"%s kicked and banned. (KICK/BAN)\",pName);
case 1:
GetPlayerName(playerid, pName, sizeof(pName));
format(string,sizeof(string),\"%s kilépett. (Idotúllépés)\",pName);
format(string,sizeof(string),\"%s quit. (Time out)\",pName);
case 2:
GetPlayerName(playerid, pName, sizeof(pName));
format(string,sizeof(string),\"%s kilépett. (Kilépés)\",pName);
format(string,sizeof(string),\"%s quit. (Quit)\",pName);
}
SendClientMessageToAll(0xFF9900AA,string);
return 1;
}
#endif[/pawn]