Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define DIALOG_RULES2 12
- public OnPlayerConnect(playerid)
- {
- KillTimer(UserTimer[playerid]);
- Info[playerid][Favouriteskin] = -1;
- Daysalive[playerid] = 0;
- PlayerInfo[playerid][pAdmin] = 0;
- PlayerInfo[playerid][pKills] = 0;
- PlayerInfo[playerid][pDeaths] = 0;
- PlayerInfo[playerid][pCash] = 0;
- LPinfo[playerid][Score] = 0;
- LPinfo[playerid][Drugs] = 0;
- LPinfo[playerid][Adre] = 0;
- Info[playerid][VIPLevel] = 0;
- BankMoney[playerid] = 0;
- Daysalive[playerid] = 0;
- Info[playerid][MissionsCompleted] = 0;
- Info[playerid][MissionsFailed] = 0;
- Info[playerid][Robbed] = 0;
- Info[playerid][MaximumRobbed] = 0;
- Info[playerid][Muted] = 0;
- Info[playerid][Jailed] = 0;
- Info[playerid][MuteWarnings] = 0;
- Info[playerid][MaxMuteWarnings] = 0;
- Info[playerid][Warnings] = 0;
- Info[playerid][TimesKicked] = 0;
- Info[playerid][EventsWon] = 0;
- Info[playerid][EventsLost] = 0;
- Info[playerid][StartingMusic] = 0;
- PlayerAlreadyLoggedIn[playerid] = 0;
- PlayerAlreadyRegisteredIn[playerid] = 0;
- Info[playerid][Logged] = 0;
- Info[playerid][Registered] = 0;
- Info[playerid][Respect] = 0;
- Autouseskin[playerid] = 0;
- playervehicle[playerid] = -1;
- fskillid[playerid] = 4;
- new string[64], pName2[MAX_PLAYER_NAME];
- GetPlayerName(playerid,pName2,MAX_PLAYER_NAME);
- format(string,sizeof string,"%s (%d) Has Joined The Server.",pName2,playerid);
- new plrIP[16];
- GetPlayerIp(playerid, plrIP, sizeof(plrIP));
- foreach(Player, i)
- {
- if(PlayerInfo[playerid][pAdmin] > 0)
- {
- format(string,sizeof string,"%s (%d) Has Joined The Server. [%s]",pName2,playerid,plrIP);
- SendClientMessage(i,0xBFFF00AA,string);
- }
- }
- GameTextForPlayer(playerid, "Welcome To The Los Santos Gang War Server", 5000, 4);
- ShowPlayerDialog(playerid, DIALOG_RULES2, DIALOG_STYLE_MSGBOX, "Server Rules", "1- No Cheating\n2- No Spamming\n3- Slide Bug Is Not Allowed And C Bug Too\n4- No Rule Breaking\n5- No G Abuse\n6- No Advertising\n7- Teleport Abuse Is Not Allowed\n8- Weapon Mods Are Allowed Only\n9- Respect Player Especially Admins\n10- Scamming Is Not Allowed\n11- Aimbot Is Not Allowed\n12- Don't Try To Climb Up Over The Freeroam Walls If You Are(not) In Freeroam Mod\n\nDo You Agree The Server Rules?", "Yes", "No");
- SetPlayerColor(playerid, 0xB0B0B0FF);
- SendClientMessageToAll(0xAFAFAFAA,string);
- SendClientMessage(playerid,-1,"Welcome To The {FFEA00}LOS SANTOS GANG WARS{FFFFFF} Version 10.8! Please Enjoy Your Stay.");
- SendClientMessage(playerid,-1,"We Made An Effective Anti Cheat, And Some Bugs have been Fixed. Full List: /updates");
- SendClientMessage(playerid, 0xFF0000AA, "NOTE: Use /music If When Connecting Music Making Lag To Turn It Off/On.");
- if(fexist(UserPath(playerid)))
- {
- INI_ParseFile(UserPath(playerid), "UserLoad_%s", .bExtra = true, .extra = playerid); // the same thing
- if(Info[playerid][Banned] == 1)
- {
- KickCommandWithMessage(playerid, 0xFF0000AA, "You Are Banned From This Server!");
- SendClientMessage(playerid, 0xFFC400AA, "If You Feel That You Are Wrongly Banned Feel Free To Post An Appeal In Forum: lsgangwars.createaforum.com");
- format(string,sizeof string,"%s (%d) Has Been Kicked | Reason: Account Banned.", pName2, playerid);
- SendClientMessageToAll(0xFFC400AA, string);
- }
- } // This get's the length of the player name
- new HouseID, HouseSlot, Name2[24];
- // Get the player's name
- GetPlayerName(playerid, Name2, sizeof(Name2));
- // Loop through all houses to find the ones which belong to this player
- for___loop (HouseID = 1; HouseID < MAX_HOUSES; HouseID++)
- {
- // Check if the house exists
- if (IsValidDynamicPickup(AHouseData[HouseID][PickupID]))
- {
- // Check if the house is owned
- if (AHouseData[HouseID][Owned] == true)
- {
- // Check if the player is the owner of the house
- if (strcmp(AHouseData[HouseID][Owner], Name2, false) == 0)
- {
- // Add the HouseID to the player's account for faster reference later on
- APlayerData[playerid][Houses][HouseSlot] = HouseID;
- // Load housecars if they weren't loaded at FilterscriptInit
- if (LoadCarsDuringFSInit == false)
- HouseFile_LoadCars(HouseID);
- // Select the next HouseSlot
- HouseSlot++;
- }
- }
- }
- }
- pmInfo[playerid][Last] = -1;
- pmInfo[playerid][NoPM] = 0;
- PlayerAlreadyLoggedIn[playerid] = 0;
- PlayerAlreadyRegisteredIn[playerid] = 0;
- if(Info[playerid][StartingMusic] == 0)
- {
- PlayAudioStreamForPlayer(playerid, "http://a.tumblr.com/tumblr_mno5ngNHLW1qmj9voo1.mp3");
- }
- PlayerDualWatching[playerid] = 0;
- InventationSent[playerid] = -1;
- Inventation[playerid] = -1;
- InDual[playerid] = 0;
- Inventationprice[playerid] = 0;
- format(string,sizeof(string),"FPS: %d Ping: %d",GetPlayerFPS(playerid),GetPlayerPing(playerid));
- FPSCount = CreatePlayerTextDraw(playerid,500.000000, 6.000000,string);
- PlayerTextDrawAlignment(playerid,FPSCount,0);
- PlayerTextDrawBackgroundColor(playerid,FPSCount, 255);
- PlayerTextDrawFont(playerid,FPSCount, 1);
- PlayerTextDrawLetterSize(playerid,FPSCount, 0.34567, 1.1452);
- PlayerTextDrawColor(playerid,FPSCount, -1);
- PlayerTextDrawSetOutline(playerid,FPSCount, 1);
- PlayerTextDrawUseBox(playerid,FPSCount,1);
- PlayerTextDrawBoxColor(playerid,FPSCount,0x00000054);
- PlayerTextDrawShow(playerid,FPSCount);
- PlayerDat[playerid][InGang] = 0;
- GangManager[playerid] = 0;
- Textdraw000[playerid] = CreatePlayerTextDraw(playerid,22.000000, 172.000000, "Respect:");
- PlayerTextDrawBackgroundColor(playerid,Textdraw000[playerid], 255);
- PlayerTextDrawFont(playerid,Textdraw000[playerid], 0);
- PlayerTextDrawLetterSize(playerid,Textdraw000[playerid], 0.480000, 1.200000);
- PlayerTextDrawColor(playerid,Textdraw000[playerid], 16777215);
- PlayerTextDrawSetOutline(playerid,Textdraw000[playerid], 1);
- PlayerTextDrawSetProportional(playerid,Textdraw000[playerid], 1);
- Textdraw111[playerid] = CreatePlayerTextDraw(playerid,22.000000, 197.000000, "Adrenaline Pills:");
- PlayerTextDrawBackgroundColor(playerid,Textdraw111[playerid], 255);
- PlayerTextDrawFont(playerid,Textdraw111[playerid], 0);
- PlayerTextDrawLetterSize(playerid,Textdraw111[playerid], 0.490000, 1.200000);
- PlayerTextDrawColor(playerid,Textdraw111[playerid], 16777215);
- PlayerTextDrawSetOutline(playerid,Textdraw111[playerid], 1);
- PlayerTextDrawSetProportional(playerid,Textdraw111[playerid], 1);
- Textdraw222[playerid] = CreatePlayerTextDraw(playerid,22.000000, 222.000000, "Grams Of Drugs:");
- PlayerTextDrawBackgroundColor(playerid,Textdraw222[playerid], 255);
- PlayerTextDrawFont(playerid,Textdraw222[playerid], 0);
- PlayerTextDrawLetterSize(playerid,Textdraw222[playerid], 0.490000, 1.200000);
- PlayerTextDrawColor(playerid,Textdraw222[playerid], 16777215);
- PlayerTextDrawSetOutline(playerid,Textdraw222[playerid], 1);
- PlayerTextDrawSetProportional(playerid,Textdraw222[playerid], 1);
- Textdraw333[playerid] = CreatePlayerTextDraw(playerid,509.000000, 242.000000, "Ratio:");
- PlayerTextDrawBackgroundColor(playerid,Textdraw333[playerid], 255);
- PlayerTextDrawFont(playerid,Textdraw333[playerid], 0);
- PlayerTextDrawLetterSize(playerid,Textdraw333[playerid], 0.539999, 1.600000);
- PlayerTextDrawColor(playerid,Textdraw333[playerid], -16776961);
- PlayerTextDrawSetOutline(playerid,Textdraw333[playerid], 1);
- PlayerTextDrawSetProportional(playerid,Textdraw333[playerid], 1);
- Textdraw444[playerid] = CreatePlayerTextDraw(playerid,64.000000, 427.000000, "Location");
- PlayerTextDrawBackgroundColor(playerid,Textdraw444[playerid], 255);
- PlayerTextDrawFont(playerid,Textdraw444[playerid], 1);
- PlayerTextDrawLetterSize(playerid,Textdraw444[playerid], 0.179998, 1.200000);
- PlayerTextDrawColor(playerid,Textdraw444[playerid], -16711681);
- PlayerTextDrawSetOutline(playerid,Textdraw444[playerid], 1);
- PlayerTextDrawSetProportional(playerid,Textdraw444[playerid], 1);
- if(dini_Exists(pFile(playerid)))
- {
- LoginPlayer(playerid);
- }
- else
- {
- CreateFile(playerid);
- }
- FPSTimer[playerid] = SetTimerEx("GetPlayerFPS",100,1,"d",playerid);
- UpdateText[playerid] = SetTimerEx("FPSPingUpdate",99,1,"d",playerid);
- GangApproved[playerid] = 0;
- new gangplayername[MAX_PLAYER_NAME];
- GetPlayerName(playerid, gangplayername, MAX_PLAYER_NAME);
- if(PlayerDat[playerid][InGang] == 1)
- {
- new string2[128];
- new PlayerGangID = strval(dini_Get(pFile(playerid),"GangID"));
- format(string2, sizeof(string2), "The Gang Member Of %s [GangID: %d] %s (%d) Has Connected To The Server.", dini_Get(pFile(playerid),"GangName"), PlayerGangID, pName2, playerid);
- SendClientMessageToAll(0x09FF00FF, string2);
- }
- new NAME[MAX_PLAYER_NAME];
- GetPlayerName(playerid,NAME,sizeof(NAME));
- R_1[playerid] = TextDrawCreate(498.000000, 100.000000, " ");
- TextDrawBackgroundColor(R_1[playerid], 255);
- TextDrawFont(R_1[playerid], 2);
- TextDrawLetterSize(R_1[playerid], 0.250000, 0.899999);
- TextDrawColor(R_1[playerid], -1);
- TextDrawSetOutline(R_1[playerid], 0);
- TextDrawSetProportional(R_1[playerid], 1);
- TextDrawSetShadow(R_1[playerid], 1);
- Stats[playerid] = TextDrawCreate(499.000000, 110.000000, "~r~Kills: ~w~0 ~g~Deaths: ~w~0");
- TextDrawBackgroundColor(Stats[playerid], 255);
- TextDrawFont(Stats[playerid], 2);
- TextDrawLetterSize(Stats[playerid], 0.159999, 1.000000);
- TextDrawColor(Stats[playerid], -1);
- TextDrawSetOutline(Stats[playerid], 0);
- TextDrawSetProportional(Stats[playerid], 1);
- TextDrawSetShadow(Stats[playerid], 1);
- SPEEDOS[playerid] = TextDrawCreate(10.0,200.0," ");
- TextDrawShowForPlayer(playerid,SPEEDOS[playerid]);
- HEALTH[playerid] = TextDrawCreate(10.0,180.0," ");
- TextDrawShowForPlayer(playerid,HEALTH[playerid]);
- SetPlayerZoneColor(playerid);
- ranktimers[playerid] = SetTimerEx("ranktimer", 3000, true, "d", playerid);
- antiarmourhack[playerid] = SetTimerEx("aantiarmourhack", 3000, true, "d", playerid);
- texttimers[playerid] = SetTimerEx("texttimer", 2000, true, "d", playerid);
- RemoveBuildingForPlayer(playerid, 1302, 0.0, 0.0, 0.0, 6000.0);
- RemoveBuildingForPlayer(playerid, 1209, 0.0, 0.0, 0.0, 6000.0);
- RemoveBuildingForPlayer(playerid, 955, 0.0, 0.0, 0.0, 6000.0);
- RemoveBuildingForPlayer(playerid, 956, 0.0, 0.0, 0.0, 6000.0);
- RemoveBuildingForPlayer(playerid, 1775, 0.0, 0.0, 0.0, 6000.0);
- RemoveBuildingForPlayer(playerid, 1776, 0.0, 0.0, 0.0, 6000.0);
- RemoveBuildingForPlayer(playerid, 1977, 0.0, 0.0, 0.0, 6000.0);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement