// This callback gets called when a player connects to the server
public OnPlayerConnect(playerid)
{
GameTextForPlayer(playerid,\"~w~HUN Kamionos Szerver\",3000,4);
SendClientMessage(playerid, 0xFFFFFFFF, \"{FFFF00}Üdvözlünk a szerveren!\");
SendClientMessage(playerid, 0xFFFFFFFF, \"{FFFF00}Szerver tulajdonosok: Szily88 es Csabee\");
SendClientMessage(playerid, 0xFFFFFFFF, \"{FFFF00}ADMIN:[RC]Zsolti!\");
SendClientMessage(playerid, 0xFFFFFFFF, \"{FF0000}Skype:szilixdd \");
SendClientMessage(playerid, 0xFFFFFFFF, \"{FF0000}A szabályokért{FFFF00}/rules{FF0000}A parancsokért {FFFF00}/cmds\");
// Always allow NPC\'s to login without password or account
if (IsPlayerNPC(playerid))
return 1;
// Setup local variables
new Name[MAX_PLAYER_NAME], NewPlayerMsg[128], HouseID;
// Setup a PVar to allow cross-script money-transfers (only from filterscript to this mainscript) and scorepoints
SetPVarInt(playerid, \"PVarMoney\", 0);
SetPVarInt(playerid, \"PVarScore\", 0);
// Get the playername
GetPlayerName(playerid, Name, sizeof(Name));
// Also store this name for the player
GetPlayerName(playerid, APlayerData[playerid][PlayerName], 24);
// Send a message to all players to let them know somebody else joined the server
format(NewPlayerMsg, 128, TXT_PlayerJoinedServer, Name, playerid);
SendClientMessageToAll(0xFFFFFFFF, NewPlayerMsg);