Код:
public OnPlayerConnect(playerid)
{
SetPlayerCameraPos(playerid, 1061.1375, -1348.5317, 72.5953);
SetPlayerCameraLookAt(playerid, 1062.0928, -1348.8217, 72.5754);
new name[MAX_PLAYER_NAME+1];
GetPlayerName(playerid, name, sizeof(name));
if(IsPlayerNPC(playerid)) return 1;
if(fexist(UserPath(playerid)))
{
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD,""COL_CYAN"LOGIN",""COL_WHITE"Dobrodosli na "COL_CYAN"Gilmore RPG"COL_WHITE"\n"COL_CYAN"%s "COL_WHITE"Vas profil je registriran.\nUnesite vasu lozinku da se logirate","Login","Napusti", name);
}
else
{
ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD,""COL_CYAN"REGISTER",""COL_WHITE"Dobrodosli na "COL_CYAN"Gilmore RPG"COL_WHITE"\nVase Ime i Prezime "COL_CYAN"%s \n"COL_WHITE"Vas profil "COL_RED"nije "COL_WHITE"registriran\nUnesite zeljenu lozinku da se registrirate\n\nLozinka: "COL_RED"Min 6/Max 26 znakova\n\n","Register","Napusti",name);
}
{
GameTextForPlayer(playerid,"~b~G~w~ilmore ~b~R~w~PG ~b~S~w~erver",3000,4);
SendClientMessage(playerid,-1,""#W"-------------------------------------------------------------------------------------");
SendClientMessage(playerid,-1,""#S"• "#W"Dobro dosli na "#S"G"#W"ilmore "#S"R"#W"PG "#S"S"#W"erver");
SendClientMessage(playerid,-1,""#W"-------------------------------------------------------------------------------------");
}
//Systems
{
ResetPlayerCash(playerid);
PlayerInfo[playerid][pAdmin] = 0;
PlayerInfo[playerid][pVIP] = 0;
AdminDuty[playerid] = 0;
SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
SetOriginalColor(playerid);
}
{
new Mes[1024];
format(Mes,sizeof(Mes),""COL_GREY"SERVER: %s se spojio na server.",
GetName(playerid));
SendClientMessageToAll(0xFFFFFFAA,Mes);
Log("SERVER/Logs/Join.txt", Mes);
}
//REMOVING BULDINGS
//burgpark
RemoveBuildingForPlayer(playerid, 3685, 1249.5547, -905.4609, 45.0313, 0.25);
RemoveBuildingForPlayer(playerid, 3685, 1287.6875, -900.4609, 45.0625, 0.25);
RemoveBuildingForPlayer(playerid, 3685, 1284.2031, -871.2969, 45.2734, 0.25);
RemoveBuildingForPlayer(playerid, 3685, 1245.4609, -874.7031, 45.0703, 0.25);
RemoveBuildingForPlayer(playerid, 617, 1235.8281, -917.5234, 41.8750, 0.25);
RemoveBuildingForPlayer(playerid, 617, 1231.4141, -886.9297, 41.8750, 0.25);
RemoveBuildingForPlayer(playerid, 1232, 1241.1953, -886.8438, 44.3594, 0.25);
RemoveBuildingForPlayer(playerid, 617, 1227.6094, -870.8047, 41.8750, 0.25);
RemoveBuildingForPlayer(playerid, 617, 1261.9531, -913.7813, 41.8750, 0.25);
RemoveBuildingForPlayer(playerid, 1232, 1266.4219, -913.1797, 44.3594, 0.25);
RemoveBuildingForPlayer(playerid, 1308, 1280.2422, -912.5234, 41.3047, 0.25);
RemoveBuildingForPlayer(playerid, 1232, 1272.3516, -912.4531, 44.3594, 0.25);
RemoveBuildingForPlayer(playerid, 617, 1275.6016, -911.9609, 41.8750, 0.25);
RemoveBuildingForPlayer(playerid, 3684, 1249.5547, -905.4609, 45.0313, 0.25);
RemoveBuildingForPlayer(playerid, 617, 1263.8828, -894.3516, 41.8750, 0.25);
RemoveBuildingForPlayer(playerid, 1211, 1266.0859, -906.7031, 42.3984, 0.25);
RemoveBuildingForPlayer(playerid, 1232, 1270.9609, -896.6172, 44.3594, 0.25);
RemoveBuildingForPlayer(playerid, 1232, 1265.0313, -897.3516, 44.3594, 0.25);
RemoveBuildingForPlayer(playerid, 617, 1271.8672, -892.3672, 41.8750, 0.25);
RemoveBuildingForPlayer(playerid, 617, 1299.5000, -909.1406, 41.8750, 0.25);
RemoveBuildingForPlayer(playerid, 3684, 1287.6875, -900.4609, 45.0625, 0.25);
RemoveBuildingForPlayer(playerid, 5847, 1295.8594, -895.0938, 41.7109, 0.25);
RemoveBuildingForPlayer(playerid, 1232, 1252.2578, -885.8750, 44.3594, 0.25);
RemoveBuildingForPlayer(playerid, 617, 1262.9844, -882.2188, 41.8750, 0.25);
RemoveBuildingForPlayer(playerid, 617, 1271.2031, -882.3984, 41.8750, 0.25);
RemoveBuildingForPlayer(playerid, 1232, 1285.6484, -881.3125, 44.3594, 0.25);
RemoveBuildingForPlayer(playerid, 3684, 1245.4609, -874.7031, 45.0703, 0.25);
RemoveBuildingForPlayer(playerid, 3684, 1284.2031, -871.2969, 45.2734, 0.25);
RemoveBuildingForPlayer(playerid, 1232, 1303.1094, -879.9531, 44.3594, 0.25);
return 1;
}