Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerConnect(playerid)
- {
- AntiF4[playerid] = 0;
- NeedCheckTuningAB [playerid] = 0;
- CanCheckAirBreak[playerid] = false;
- CanCheckABX[playerid] = true;
- Prisijunges[playerid] = false;
- HouseID[playerid] = -1;
- ChoosedPlayer[playerid] = INVALID_PLAYER_ID;
- HouseCost[playerid] = 0;
- ClearAntiCheatVariables(playerid);
- ClearBusDriversVariables(playerid);
- ResetPlayerWeaponsEx(playerid);
- if(IsPlayerNPC(playerid)) return 1;
- if(InvalidNickKick(playerid)) return 1;
- AntiAntiBan[playerid] = false;
- Clear(playerid);
- j_GetPlayerName(playerid);
- j_GetPlayerIp(playerid);
- RemoveObjectsForPlayer(playerid);
- CheckIP(GetPlayerIpEx(playerid));
- ClearChat(playerid, 8);
- KillTimer(nuomaTimer[playerid]);
- CheckPlayersOnlineRecord();
- CreatePlayerMapIcons (playerid);
- SendClientMessage(playerid, -1, "{FF0000}× {cccccc}Sveiki atvykę į {ff0000}testas {cccccc}serverį!");
- SendClientMessage(playerid, -1, "{FF0000}× {cccccc}Serverio svetainė : {ff0000}testas{cccccc}!");
- ClearChat(playerid, 2);
- new ConnIP[16];
- GetPlayerIp(playerid,ConnIP,16);
- new compare_IP[16];
- new number_IP = 0;
- for(new i = 0; i < MAX_PLAYERS; i ++)
- {
- if(IsPlayerConnected(i))
- {
- GetPlayerIp(i,compare_IP,16);
- if(!strcmp(compare_IP,ConnIP)) number_IP++;
- }
- }
- for(new s = 0; s < 5; s++) TextDrawHideForPlayer(playerid, SpeedoText[playerid][s]);
- for(new z = 0; z < MAX_ZONES; z++) GangZoneShowForPlayer(playerid, Zone[z], ZONE_COLOR);
- TextDrawHideForPlayer(playerid, Text);
- DestroyProgressBar(DegaluBar[playerid]);
- DegaluBar[playerid] = INVALID_BAR_ID;
- TextDrawHideForPlayer(playerid, Lasas[playerid]);
- DestroyProgressBar(VandensBar[playerid]);
- VandensBar[playerid] = INVALID_BAR_ID;
- TimeDateTD[playerid][0] = CreatePlayerTextDraw(playerid, 547.000000, 29.000000, "2012/09/13");
- PlayerTextDrawBackgroundColor(playerid, TimeDateTD[playerid][0], 255);
- PlayerTextDrawFont(playerid, TimeDateTD[playerid][0], 3);
- PlayerTextDrawLetterSize(playerid, TimeDateTD[playerid][0], 0.310000, 1.400000);
- PlayerTextDrawColor(playerid, TimeDateTD[playerid][0], -1);
- PlayerTextDrawSetOutline(playerid, TimeDateTD[playerid][0], 1);
- PlayerTextDrawSetProportional(playerid, TimeDateTD[playerid][0], 1);
- TimeDateTD[playerid][1] = CreatePlayerTextDraw(playerid, 566.000000, 13.000000, "22:13");
- PlayerTextDrawBackgroundColor(playerid, TimeDateTD[playerid][1], 255);
- PlayerTextDrawFont(playerid, TimeDateTD[playerid][1], 3);
- PlayerTextDrawLetterSize(playerid, TimeDateTD[playerid][1], 0.419999, 1.900000);
- PlayerTextDrawColor(playerid, TimeDateTD[playerid][1], -1);
- PlayerTextDrawSetOutline(playerid, TimeDateTD[playerid][1], 1);
- PlayerTextDrawSetProportional(playerid, TimeDateTD[playerid][1], 1);
- pCPID[playerid] = -1;
- for(new cp; cp < MAX_PLAYER_CPS; cp++)
- {
- pCPPosX[playerid][cp] = 0.0;
- pCPPosY[playerid][cp] = 0.0;
- pCPPosZ[playerid][cp] = 0.0;
- pCPSize[playerid][cp] = 0.0;
- pCPShow[playerid][cp] = false;
- }
- return 1;
- }
- stock GetVehicleSpeed( vehicleid )
- {
- new
- Float:x,
- Float:y,
- Float:z;
- GetVehicleVelocity( vehicleid, x, y, z );
- return floatround( floatsqroot( x*x + y*y + z*z ) * 160.0 );
- }
- stock GetSquareDistance (Float: x1, Float: y1, Float: z1, Float: x2, Float: y2, Float: z2)
- {
- x1 -= x2;
- y1 -= y2;
- z1 -= z2;
- x1 *= x1;
- y1 *= y1;
- z1 *= z1;
- return floatround (x1 + y1 + z1);
- }
- stock IsPlayerInArea(playerid, Float: max_x, Float: min_x, Float: max_y, Float: min_y)
- {
- new Float: X, Float: Y, Float: Z;
- GetPlayerPos(playerid, X, Y, Z);
- if(X <= max_x && X >= min_x && Y <= max_y && Y >= min_y) return 1;
- return 0;
- }
- stock LoahouseInteriors()
- {
- new kiek = sizeof(hInterior), str[20];
- strcat(IntList, "{ffffff}");
- for(new c; c < kiek; c++)
- {
- format(str, 20, "#%d - $%s\n", c + 1, konvertuoti_pinigus(hInterior[c][Price]));
- strcat(IntList, str);
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment