25.01.2018, 12:46
SOLVED!
I'm have a jail system,but,not working...
Ok,problem is When i'm enter in jail,The Jail Minutes textdraw is displayed as 0 and all my stats is setted to 0...
The System:
If help: The public on gamemodeinit:
And on player connect:
[Sorry for my bad english!]
EDIT: Probabily and OnPlayerSpawn Help...
I'm have a jail system,but,not working...
Ok,problem is When i'm enter in jail,The Jail Minutes textdraw is displayed as 0 and all my stats is setted to 0...
The System:
Код:
Variables: unjailtimer, PlayerText:Jailtimer[MAX_PLAYERS], JailTime, Jailed, The timer of SetPlayerUnjail: //Under OnGamemodeInit --------- unjailtimer = SetTimer("SetPlayerUnjail", 1000, 1); Function SetPlayerUnjail: public SetPlayerUnjail() { foreach(Player, i) { if(Player[i][Jailed] >= 1) { if(Player[i][LoggedIn] == 1) { Player[i][JailTime]--; PlayerTextDrawShow(i, Jailtime[i]); new string3[60]; format(string3,sizeof(string3),"ELIBERAT IN: ~r~%d MINUTE", Player[i][JailTime]); StopAudioStreamForPlayer(i); PlayerTextDrawSetString(i, Jailtime[i], string3); } } if(Player[i][JailTime] == 0) { Player[i][JailTime] = 0; if(Player[i][Jailed] == 1) { SetPlayerInterior(i, 6); SetPlayerPos(i, 268.7461,76.8184,1001.0391); Player[i][Jailed] = 0; SendClientMessage(i, COLOR_WHITE, "Ai fost eliberat din inchisoare,sa nu mai faci vreo boacana..."); SetPlayerSpecialAction(i,SPECIAL_ACTION_NONE); PlayerTextDrawHide(i, Jailtime[i]); TogglePlayerControllable(i, 1); StopAudioStreamForPlayer(i); } if(Player[i][Jailed] == 2) { SetPlayerInterior(i, 0); SetPlayerVirtualWorld(i, 0); SetPlayerPos(i, 1800.1581,-1865.7731,13.5722); Player[i][Jailed] = 0; SendClientMessage(i, COLOR_WHITE, "Ai fost eliberat din inchisoare,sa nu mai faci vreo boacana..."); SetPlayerSpecialAction(i,SPECIAL_ACTION_NONE); PlayerTextDrawHide(i, Jailtime[i]); TogglePlayerControllable(i, 1); StopAudioStreamForPlayer(i); } } } } And a command for admin jail: CMD:ajail(playerid, params[]) { if(IsPlayerConnected(playerid)) { if (Player[playerid][Level] < 1) return SendClientMessage(playerid, RED, "Trebuie sa fii admin pentru a folosii aceasta comanda!"); new id,reason[128],string[128],giveplayer[30],sendername[30],minutes; if(sscanf(params, "uis[128]", id,minutes,reason)) return SCM(playerid,COLOR_WHITE,"{FFFFFF}Syntax: {FFFFFF}/ajail <Nume/ID> <Minute> <Motiv>"); { if(IsPlayerConnected(id)) { if(id != INVALID_PLAYER_ID) { if(Player[id][JailTime] > 0) return SCM(playerid,COLOR_WHITE,"{B8DBFF}Eroare: Acest player este deja la inchisoare."); GetPlayerName(id, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); ResetPlayerWeapons(id); Player[id][Jailed] = 2; Player[id][JailTime] = minutes; JailPrice[id] = 0; SetPlayerInterior(id, 10); new rand; rand = random(sizeof(gRandomAJailSpawns)); SetPlayerPos(id,gRandomAJailSpawns[rand][0],gRandomAJailSpawns[rand][1],gRandomAJailSpawns[rand][2]); format(string, sizeof(string), "({FF0000}Admin Info{FFFFFF}): {FFFF00}%s a fost dus la inchisoare de catre %s pentru %d minute, motiv: %s.", giveplayer, sendername,minutes,reason); SendMessageToAdmins(COLOR_WHITE, string); format(string, sizeof(string), "{FFFFFF}({FF0000}Jail{FFFFFF}): {EE9A4D}%s a fost dus la inchisoare de catre %s pentru %d minute, motiv: %s.", giveplayer, sendername,minutes,reason); SendClientMessageToAll(RED, string); ReLoadPlayerData2(playerid); ReLoadPlayerData2(id); return 1; } } else { SendClientMessage(playerid, COLOR_WHITE, "{FFFFCC}EROARE: Acest player nu este conectat."); } } } return 1; }
Код:
public OnGameModeInit() { SetTimer("PayDay", 600000, true); Create3DTextLabel("{26C4EC}Las Venturas Police Department\nProcessing Entrance\n \n(/arrest)",0xFFFFFFFF,2282.1289,2425.7620,3.4692,20.0, 0, 1); Create3DTextLabel("{26C4EC}Los Santos Police Department\nProcessing Entrance\n \n(/arrest)",0xFFFFFFFF,1526.3739,-1678.0635,5.8906,20.0, 0, 1); AddStaticPickup(1314, 23, 2282.1289,2425.7620,3.4692); // Lvpd arrest AddStaticPickup(1314, 23, 1526.3739,-1678.0635,5.8906); // Lspd arrest Grovec[1] = AddStaticVehicleEx(560,2469.0774,-1670.1381,13.0464,8.7908,234,234,900); Grovec[2] = AddStaticVehicleEx(492,2473.8716,-1683.9072,13.2419,328.5286,234,234,900); Grovec[3] = AddStaticVehicleEx(521,2479.1731,-1685.0739,13.0803,343.7168,234,234,900); Grovec[4] = AddStaticVehicleEx(567,2488.3159,-1683.5178,13.3387,89.6946,234,234,900); Grovec[5] = AddStaticVehicleEx(405,2504.1091,-1680.6146,13.2740,311.4205,234,234,900); Grovec[6] = AddStaticVehicleEx(445,2509.3723,-1666.0325,13.3429,10.9913,234,234,900); Grovec[7] = AddStaticVehicleEx(579,2501.2131,-1655.9745,13.3384,68.0583,234,234,900); Grovec[8] = AddStaticVehicleEx(409,2482.6848,-1654.2417,13.1791,87.5403,234,234,900); Grovec[9] = AddStaticVehicleEx(461,2511.5447,-1675.7197,13.1295,72.9719,234,234,900); Grovec[10] = AddStaticVehicleEx(461,2510.1914,-1677.8276,13.1298,60.4334,234,234,900); Grovec[11] = AddStaticVehicleEx(487,2521.2319,-1696.2471,18.7845,43.8479,234,234,900); new nrinmatric[128]; for(new i = 0; i < sizeof(Grovec); i++) { format(nrinmatric, sizeof(nrinmatric), "F05 - %d", i); SetVehicleNumberPlate(Grovec[i], nrinmatric); SetVehicleToRespawn(Grovec[i]); } Copcar[1] = AddStaticVehicleEx(523,1601.9099,-1704.7168,5.4607,85.5587,0,0,900); Copcar[2] = AddStaticVehicleEx(523,1561.7004,-1607.0363,12.9542,181.1732,0,0,900); Copcar[3] = AddStaticVehicleEx(523,1558.0488,-1606.8695,12.9536,176.0035,0,0,900); Copcar[4] = AddStaticVehicleEx(523,1554.4407,-1607.0237,12.9505,178.5937,0,0,900); Copcar[5] = AddStaticVehicleEx(523,1551.1160,-1607.0157,12.9542,175.6818,0,0,900); Copcar[6] = AddStaticVehicleEx(411,1556.7578,-1632.5587,13.1441,89.4261,1,1,900); object3 = CreateObject(19620,-2597.0762, -2638.4270, -5.3536, 0.0000, 0.0000, 0.0000); AttachObjectToVehicle(object3, Copcar[6], 0.000000, 0.000000, 0.739999, 0.000000, 0.000000, 0.000000); //Object Model: 19620 | new policecar = CreateObject(19327, -2597.0762, -2638.4270, -5.3536, -87.6999, 90.4001, -87.1805); SetObjectMaterialText(policecar, "POLICE", 0, 50, "Arial", 25, 1, -16777216, 0, 1); AttachObjectToVehicle(policecar, Copcar[6], 0.0, -1.9, 0.3, 270.0, 0.0, 0.0); Copcar[7] = AddStaticVehicleEx(411,1565.6917,-1632.4874,13.1957,89.3249,1,1,900); object4 = CreateObject(19620,-2597.0762, -2638.4270, -5.3536, 0.0000, 0.0000, 0.0000); AttachObjectToVehicle(object4, Copcar[7], 0.000000, 0.000000, 0.739999, 0.000000, 0.000000, 0.000000); //Object Model: 19620 | new policecar2 = CreateObject(19327, -2597.0762, -2638.4270, -5.3536, -87.6999, 90.4001, -87.1805); SetObjectMaterialText(policecar2, "POLICE", 0, 50, "Arial", 25, 1, -16777216, 0, 1); AttachObjectToVehicle(policecar2, Copcar[7], 0.0, -1.9, 0.3, 270.0, 0.0, 0.0); Copcar[8] = AddStaticVehicleEx(523,1547.8560,-1606.9414,12.9542,176.4453,0,0,900); Copcar[9] = AddStaticVehicleEx(523,1601.6218,-1695.9435,5.4621,89.5925,38,66,900); Copcar[10] = AddStaticVehicleEx(599,1601.6401,-1610.9618,13.8689,89.1736,6,1,900); Copcar[11] = AddStaticVehicleEx(599,1601.9658,-1606.5083,13.9007,91.1313,6,1,900); Copcar[12] = AddStaticVehicleEx(599,1602.3624,-1684.1798,6.1165,91.2008,6,1,900); Copcar[13] = AddStaticVehicleEx(427,1585.1613,-1680.2198,6.0623,270.2807,6,1,900); Copcar[14] = AddStaticVehicleEx(528,1584.4968,-1671.7839,5.8576,267.2774,112,6,900); Copcar[15] = AddStaticVehicleEx(525,1584.8029,-1667.5214,5.7179,269.1004,79,6,900); Copcar[16] = AddStaticVehicleEx(497,1564.7638,-1651.2452,28.5810,90.4761,6,1,900); Copcar[17] = AddStaticVehicleEx(563,1565.4215,-1699.9995,29.1465,89.2499,6,1,900); Copcar[18] = AddStaticVehicleEx(411,1573.5585,-1632.5773,13.1982,88.3384,1,1,900); object5 = CreateObject(19620,-2597.0762,-2638.4270,-5.3536,0.0000,0.0000,0.0000); AttachObjectToVehicle(object5, Copcar[18], 0.000000, 0.000000, 0.739999, 0.000000, 0.000000, 0.000000); //Object Model: 19620 | new policecar3 = CreateObject(19327, -2597.0762, -2638.4270, -5.3536, -87.6999, 90.4001, -87.1805); SetObjectMaterialText(policecar3, "POLICE", 0, 50, "Arial", 25, 1, -16777216, 0, 1); AttachObjectToVehicle(policecar3, Copcar[18], 0.0, -1.9, 0.3, 270.0, 0.0, 0.0); Copcar[19] = AddStaticVehicleEx(596,1572.7958,-1607.4554,13.1044,181.5055,6,1,900); Copcar[20] = AddStaticVehicleEx(596,1576.6313,-1607.2098,13.0438,180.3890,6,1,900); Copcar[21] = AddStaticVehicleEx(596,1580.5406,-1607.1946,13.1068,180.8135,6,1,900); Copcar[22] = AddStaticVehicleEx(596,1584.4761,-1607.0475,13.1107,180.9560,6,1,900); Copcar[23] = AddStaticVehicleEx(596,1588.4292,-1607.0869,13.0365,181.4202,6,1,900); Copcar[24] = AddStaticVehicleEx(596,1529.4813,-1688.0271,5.5456,265.6431,6,1,900); Copcar[25] = AddStaticVehicleEx(596,1558.8655,-1710.8738,5.5487,0.1728,6,1,900); Copcar[26] = AddStaticVehicleEx(596,1570.2020,-1710.8259,5.5487,0.2026,6,1,900); Copcar[27] = AddStaticVehicleEx(596,1578.7587,-1711.0652,5.5501,359.3282,6,1,900); Copcar[28] = AddStaticVehicleEx(596,1535.7665,-1667.0135,13.1183,179.7693,6,1,900); Copcar[29] = AddStaticVehicleEx(596,1535.8132,-1678.6298,13.1151,0.2540,6,1,900); new nrinmatricg[128]; for(new i = 0; i < sizeof(Copcar); i++) { format(nrinmatricg, sizeof(nrinmatricg), "F01 - %d", i); SetVehicleNumberPlate(Copcar[i], nrinmatricg); SetVehicleToRespawn(Copcar[i]); } wantedicatimer = SetTimer("FiveSecondsTimer", 5000, 1); new SpawnPlace3D[300],Stunt3DText[300], Drift3DText[300], h, m, s; gettime(h, m, s); CreateObject(19130, 2145.1401,-1686.7572,15.0859, 20, 0.0, 0); new gratia1, gratia2, gratia3, gratia4, gratia5, gratia6, gratia7, gratia8; gratia1 = CreateObject(19302, 228.28619, 112.66590, 999.23529, 0.00000, 0.00000, 180.48010); gratia2 = CreateObject(19302, 226.50360, 112.64810, 999.23529, 0.00000, 0.00000, 0.90020); gratia3 = CreateObject(19302, 222.62360, 112.64810, 999.23529, 0.00000, 0.00000, 359.64001); gratia4 = CreateObject(19302, 224.36360, 112.64810, 999.23529, 0.00000, 0.00000, 538.79919); gratia5 = CreateObject(19302, 220.38361, 112.64810, 999.23529, 0.00000, 0.00000, 539.69940); gratia6 = CreateObject(19302, 218.66360, 112.64810, 999.23529, 0.00000, 0.00000, 359.33963); gratia7 = CreateObject(19302, 216.44360, 112.64810, 999.23529, 0.00000, 0.00000, 538.73865); gratia8 = CreateObject(19302, 214.72360, 112.64810, 999.23529, 0.00000, 0.00000, 359.45889); SetObjectMaterial(gratia1, 0, 19302, "gratia1", "gratia1", 0xFFFFFFFF); SetObjectMaterial(gratia2, 0, 19302, "gratia2", "gratia2", 0xFFFFFFFF); SetObjectMaterial(gratia3, 0, 19302, "gratia3", "gratia3", 0xFFFFFFFF); SetObjectMaterial(gratia4, 0, 19302, "gratia4", "gratia4", 0xFFFFFFFF); SetObjectMaterial(gratia5, 0, 19302, "gratia5", "gratia5", 0xFFFFFFFF); SetObjectMaterial(gratia6, 0, 19302, "gratia6", "gratia6", 0xFFFFFFFF); SetObjectMaterial(gratia7, 0, 19302, "gratia7", "gratia7", 0xFFFFFFFF); SetObjectMaterial(gratia8, 0, 19302, "gratia8", "gratia8", 0xFFFFFFFF); Create3DTextLabel("{0000FF}Droguri", RED, 2145.1401,-1686.7572,15.0859, 20, 0, 0); //-------------------------------------------------------------------------- DB_Connect = mysql_connect(SQL_Host, SQL_User, SQL_DB, SQL_Pass); mysql_log(LOG_ERROR | LOG_DEBUG | LOG_WARNING, LOG_TYPE_TEXT); //-------------------------------------------------------------------------- print("\n::::::::::::::::::::::::::::::::::::\n"); WorldHour = h; print(":: FireWhiteStunt V1 Started ::"); SetWorldTime(14); print("\n::::::::::::::::::::::::::::::::::::\n"); SetTimer("WorldTimeTimer", 3600000, true); SetTimer("StartReaction", 900000, true), SetTimer("CheckBallPosition", 250, true); //-------------------------------------------------------------------------- SoccerBall = CreateObject(2114, 1574.99329, -2017.36682, 736.69220, 0.00000, 0.00000, 0.00000); //-------------------------------------------------------------------------- // -> Server's Settings //-------------------------------------------------------------------------- AntiDeAMX(), UsePlayerPedAnims(), SetGameModeText("Stunt-DM-Race-FreeRoam"), SetWeather(2), SendRconCommand("rcon_password Zarzavat12332107062003Longover"), mysql_debug(0), AllowInteriorWeapons(true), DisableInteriorEnterExits(), SendRconCommand("rcon 0"), EnableStuntBonusForAll(0); printf("World Time: %d", WorldHour); //-------------------------------------------------------------------------- Server[PropertyPayDay] = 0, Server[MinigunDM] = 0, Server[DeagleDM] = 0, Server[AsztechDM] = 0, Server[OSDM] = 0, Server[M4DM] = 0, Server[JDM] = 0, Server[CSIDM] = 0, Server[CSDDM] = 0, Server[IslandDM] = 0, Server[CoruptDM] = 0, Server[CoruptDM] = 0, Server[CoruptDM] = 0, Server[HBuy] = 0, Server[HSell] = 0, Server[HInt] = 0, Server[HPos][1] = 0, Server[HPos][2] = 0, Server[HPos][3] = 0, Server[CreatingHouse] = 0, Server[CreatingPCar] = 0, Server[cID] = 0, Server[vColor][1] = 0, Server[vColor][2] = 0, Server[vOwner] = 0, Server[Count] = 0, Server[MRF] = 0; //-------------------------------------------------------------------------- // -> Load MySQL Stuff //-------------------------------------------------------------------------- for(new hi = 0; hi < MAX_HOUSES; hi++) { //---------------------------------------------------------------------- House[hi][ID] = 0, House[hi][Owner] = 0, House[hi][Locked] = 0, House[hi][Cost][1] = 0, House[hi][Cost][2] = 0, House[hi][IntID] = 0, House[hi][Pos][1] = 0, House[hi][Pos][2] = 0, House[hi][Pos][3] = 0, House[hi][Icon][1] = 0, House[hi][Icon][2] = 0, House[hi][Icon][3] = 0, House[hi][Pickup] = 0, House[hi][CustomInterior] = 0; //---------------------------------------------------------------------- } //-------------------------------------------------------------------------- for(new pID = 0; pID < MAX_PROPERTIES; pID++) { //---------------------------------------------------------------------- Property[pID][ID] = 0, Property[pID][Name] = 0, Property[pID][Owner] = 0, Property[pID][Cost][1] = 0, Property[pID][Cost][2] = 0, Property[pID][IntID] = 0, Property[pID][Pos][1] = 0, Property[pID][Pos][2] = 0, Property[pID][Pos][3] = 0, Property[pID][Icon][1] = 0, Property[pID][Icon][2] = 0, Property[pID][Icon][3] = 0, Property[pID][Pickup] = 0, Property[pID][Level] = 0, Property[pID][mIcon] = 0, Property[pID][OName] = 0; //---------------------------------------------------------------------- } //-------------------------------------------------------------------------- for(new vID = 0; vID < MAX_PCARS; vID++) { //---------------------------------------------------------------------- PersVehicle[vID][ID] = 0, PersVehicle[vID][Owner] = 0, PersVehicle[vID][Color][1] = 0, PersVehicle[vID][Color][2] = 0, PersVehicle[vID][Pos][1] = 0, PersVehicle[vID][Pos][2] = 0, PersVehicle[vID][Pos][3] = 0, PersVehicle[vID][Pos][4] = 0, PersVehicle[vID][VehicleID] = 0; //---------------------------------------------------------------------- } //-------------------------------------------------------------------------- for(new l = 0; l < MAX_INTERIORS1; l++) { //---------------------------------------------------------------------- Interior1[l][ID] = 0, Interior1[l][Pos][1] = 0, Interior1[l][Pos][2] = 0, Interior1[l][Pos][3] = 0, Interior1[l][IntID] = 0; //---------------------------------------------------------------------- } //-------------------------------------------------------------------------- for(new l = 0; l < MAX_INTERIORS2; l++) { //---------------------------------------------------------------------- Interior2[l][ID] = 0, Interior2[l][Pos][1] = 0, Interior2[l][Pos][2] = 0, Interior2[l][Pos][3] = 0, Interior2[l][IntID] = 0; //---------------------------------------------------------------------- } //-------------------------------------------------------------------------- for(new l = 0; l < MAX_INTERIORS3; l++) { //---------------------------------------------------------------------- Interior3[l][ID] = 0, Interior3[l][Pos][1] = 0, Interior3[l][Pos][2] = 0, Interior3[l][Pos][3] = 0, Interior3[l][IntID] = 0; //---------------------------------------------------------------------- } //-------------------------------------------------------------------------- for(new l = 0; l < MAX_INTERIORS4; l++) { //---------------------------------------------------------------------- Interior4[l][ID] = 0, Interior4[l][Pos][1] = 0, Interior4[l][Pos][2] = 0, Interior4[l][Pos][3] = 0, Interior4[l][IntID] = 0; //---------------------------------------------------------------------- } //-------------------------------------------------------------------------- for(new l = 0; l < MAX_INTERIORS5; l++) { //---------------------------------------------------------------------- Interior5[l][ID] = 0, Interior5[l][Pos][1] = 0, Interior5[l][Pos][2] = 0, Interior5[l][Pos][3] = 0, Interior5[l][IntID] = 0; //---------------------------------------------------------------------- } //-------------------------------------------------------------------------- for(new l = 0; l < MAX_INTERIORS6; l++) { //---------------------------------------------------------------------- Interior6[l][ID] = 0, Interior6[l][Pos][1] = 0, Interior6[l][Pos][2] = 0, Interior6[l][Pos][3] = 0, Interior6[l][IntID] = 0; //---------------------------------------------------------------------- } //-------------------------------------------------------------------------- for(new l = 0; l < MAX_INTERIORS7; l++) { //---------------------------------------------------------------------- Interior7[l][ID] = 0, Interior7[l][Pos][1] = 0, Interior7[l][Pos][2] = 0, Interior7[l][Pos][3] = 0, Interior7[l][IntID] = 0; //---------------------------------------------------------------------- } //-------------------------------------------------------------------------- for(new l = 0; l < MAX_INTERIORS8; l++) { //---------------------------------------------------------------------- Interior8[l][ID] = 0, Interior8[l][Pos][1] = 0, Interior8[l][Pos][2] = 0, Interior8[l][Pos][3] = 0, Interior8[l][IntID] = 0; //---------------------------------------------------------------------- } //-------------------------------------------------------------------------- for(new l = 0; l < MAX_INTERIORS9; l++) { //---------------------------------------------------------------------- Interior9[l][ID] = 0, Interior9[l][Pos][1] = 0, Interior9[l][Pos][2] = 0, Interior9[l][Pos][3] = 0, Interior9[l][IntID] = 0; //---------------------------------------------------------------------- } //-------------------------------------------------------------------------- for(new l = 0; l < MAX_INTERIORS10; l++) { //---------------------------------------------------------------------- Interior10[l][ID] = 0, Interior10[l][Pos][1] = 0, Interior10[l][Pos][2] = 0, Interior10[l][Pos][3] = 0, Interior10[l][IntID] = 0; //---------------------------------------------------------------------- } //-------------------------------------------------------------------------- for(new l = 0; l < MAX_INTERIORS11; l++) { //---------------------------------------------------------------------- Interior11[l][ID] = 0, Interior11[l][Pos][1] = 0, Interior11[l][Pos][2] = 0, Interior11[l][Pos][3] = 0, Interior11[l][IntID] = 0; //---------------------------------------------------------------------- } //-------------------------------------------------------------------------- for(new l = 0; l < MAX_INTERIORS12; l++) { //---------------------------------------------------------------------- Interior12[l][ID] = 0, Interior12[l][Pos][1] = 0, Interior12[l][Pos][2] = 0, Interior12[l][Pos][3] = 0, Interior12[l][IntID] = 0; //---------------------------------------------------------------------- } //-------------------------------------------------------------------------- for(new l = 0; l < MAX_CHECKPOINTS; l++) { //---------------------------------------------------------------------- Checkpoint[l][ID] = 0, Checkpoint[l][Pos][1] = 0, Checkpoint[l][Pos][2] = 0, Checkpoint[l][Pos][3] = 0, Checkpoint[l][ToPos][1] = 0, Checkpoint[l][ToPos][2] = 0, Checkpoint[l][ToPos][3] = 0, Checkpoint[l][CPString] = 0, Checkpoint[l][CPSize] = 0, Checkpoint[l][Distance] = 0; //---------------------------------------------------------------------- } //-------------------------------------------------------------------------- for(new l = 1; l < MAX_REPORTS; l++) Reports[l] = "No Reports Found"; //-------------------------------------------------------------------------- mysql_tquery(DB_Connect, "SELECT * FROM `Houses`", "LoadHouses", ""); mysql_tquery(DB_Connect, "SELECT * FROM `Properties`", "LoadProps", ""); mysql_tquery(DB_Connect, "SELECT * FROM `PersonalCars`", "LoadCars", ""); mysql_tquery(DB_Connect, "SELECT * FROM `Races`", "LoadRaceDetails", ""); mysql_tquery(DB_Connect, "SELECT * FROM `RacesCP`", "", ""); mysql_tquery(DB_Connect, "SELECT * FROM `Gangs`", "LoadGangTeritory", ""); //-------------------------------------------------------------------------- mysql_tquery(DB_Connect, "SELECT * FROM `DriftsCP` WHERE `Drift` = '1'", "LoadDrift1", ""); mysql_tquery(DB_Connect, "SELECT * FROM `DriftsCP` WHERE `Drift` = '2'", "LoadDrift2", ""); mysql_tquery(DB_Connect, "SELECT * FROM `DriftsCP` WHERE `Drift` = '3'", "LoadDrift3", ""); mysql_tquery(DB_Connect, "SELECT * FROM `DriftsCP` WHERE `Drift` = '4'", "LoadDrift4", ""); mysql_tquery(DB_Connect, "SELECT * FROM `DriftsCP` WHERE `Drift` = '5'", "LoadDrift5", ""); mysql_tquery(DB_Connect, "SELECT * FROM `DriftsCP` WHERE `Drift` = '6'", "LoadDrift6", ""); //-------------------------------------------------------------------------- mysql_tquery(DB_Connect, "SELECT * FROM `Interiors` WHERE `Category` = '1'", "LoadCategory1", ""); mysql_tquery(DB_Connect, "SELECT * FROM `Interiors` WHERE `Category` = '2'", "LoadCategory2", ""); mysql_tquery(DB_Connect, "SELECT * FROM `Interiors` WHERE `Category` = '3'", "LoadCategory3", ""); mysql_tquery(DB_Connect, "SELECT * FROM `Interiors` WHERE `Category` = '4'", "LoadCategory4", ""); mysql_tquery(DB_Connect, "SELECT * FROM `Interiors` WHERE `Category` = '5'", "LoadCategory5", ""); mysql_tquery(DB_Connect, "SELECT * FROM `Interiors` WHERE `Category` = '6'", "LoadCategory6", ""); mysql_tquery(DB_Connect, "SELECT * FROM `Interiors` WHERE `Category` = '7'", "LoadCategory7", ""); mysql_tquery(DB_Connect, "SELECT * FROM `Interiors` WHERE `Category` = '8'", "LoadCategory8", ""); mysql_tquery(DB_Connect, "SELECT * FROM `Interiors` WHERE `Category` = '9'", "LoadCategory9", ""); mysql_tquery(DB_Connect, "SELECT * FROM `Interiors` WHERE `Category` = '10'", "LoadCategory10", ""); mysql_tquery(DB_Connect, "SELECT * FROM `Interiors` WHERE `Category` = '11'", "LoadCategory11", ""); mysql_tquery(DB_Connect, "SELECT * FROM `Interiors` WHERE `Category` = '12'", "LoadCategory12", ""); //-------------------------------------------------------------------------- mysql_tquery(DB_Connect, "SELECT * FROM `Checkpoints` WHERE `Type` != '-1'", "LoadCheckpoints", ""); //-------------------------------------------------------------------------- // -> Server's Player Class //-------------------------------------------------------------------------- AddPlayerClass(23,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1); //-------------------------------------------------------------------------- // -> Server's 3D Texts //-------------------------------------------------------------------------- strcat(SpawnPlace3D, "{0072FF}Spawn Zone\n\ {00FF00}Type {FF0000}/HM {00FF00}for free Heal & Armour!\n\ {0072FF}www.XSW-Servers.com"); //-------------------------------------------------------------------------- Create3DTextLabel(SpawnPlace3D, BLUE, 404.2386,2453.6709,16.6602, 50, 0, 0); // AA Create3DTextLabel(SpawnPlace3D, BLUE, 1887.8350,-2625.3059,13.6016, 50, 0, 0); // LSAir Create3DTextLabel(SpawnPlace3D, BLUE, -1370.0363,-256.3452,18.7700, 50, 0, 0); // SFAir Create3DTextLabel(SpawnPlace3D, BLUE, 1602.5377,1311.2509,13.6200, 50, 0, 0); // LVAir Create3DTextLabel(SpawnPlace3D, BLUE, -2345.4111,-1623.9098,483.9355, 50, 0, 0); // Chilliad Create3DTextLabel(SpawnPlace3D, BLUE, 1420.3746,2773.9958,11.0972, 50, 0, 0); // Stunt Golf Create3DTextLabel(SpawnPlace3D, BLUE, -2272.3455,2318.3928,4.5575, 50, 0, 0); // Pimps Create3DTextLabel(SpawnPlace3D, BLUE, -2625.1626,1361.3967,7.0816, 50, 0, 0); // Jizzy's //-------------------------------------------------------------------------- strcat(Stunt3DText, "{FF0000}Stunt\n\ {BBFF00}Type {00BBF6}/Start {BBFF00}to try this stunt!\n\ {00BBF6}Have fun!"); //-------------------------------------------------------------------------- Create3DTextLabel(Stunt3DText, LIME, 1843.689941,1455.381835,11.197062, 150, 0, 0), Create3DTextLabel(Stunt3DText, LIME, 1838.994873,1586.723144,8.527256, 150, 0, 0); Create3DTextLabel(Stunt3DText, LIME, 2335.312255,2149.432128,10.249174, 150, 0, 0), Create3DTextLabel(Stunt3DText, LIME, 1922.183959,2008.699096,10.116531, 150, 0, 0); Create3DTextLabel(Stunt3DText, LIME, 1943.340087,2199.185791,10.392769, 150, 0, 0), Create3DTextLabel(Stunt3DText, LIME, 2876.097167,1579.139160,10.393080, 150, 0, 0); Create3DTextLabel(Stunt3DText, LIME, -2264.446044,320.152679,34.956920, 150, 0, 0), Create3DTextLabel(Stunt3DText, LIME, -2490.424072,441.591400,27.666994, 150, 0, 0); Create3DTextLabel(Stunt3DText, LIME, 1872.261840,-1427.949462,10.135522,150, 0, 0), Create3DTextLabel(Stunt3DText, LIME, -2003.273559,-283.168212,34.892936, 150, 0, 0); Create3DTextLabel(Stunt3DText, LIME, 2008.712158,900.844909,10.390938, 150, 0, 0), Create3DTextLabel(Stunt3DText, LIME, 2218.766113,2406.661132,10.385766, 150, 0, 0); Create3DTextLabel(Stunt3DText, LIME, -1795.686645,730.918395,34.581394, 150, 0, 0), Create3DTextLabel(Stunt3DText, LIME, 1536.790649,-1742.266601,13.120272, 150, 0, 0); Create3DTextLabel(Stunt3DText, LIME, 1855.901489,-1467.969238,12.967999, 150, 0, 0), Create3DTextLabel(Stunt3DText, LIME, -2267.8716,-102.2001,35.3203, 150, 0, 0); Create3DTextLabel(Stunt3DText, LIME, 1874.7556,-1444.6968,13.5510, 150, 0, 0), Create3DTextLabel(Stunt3DText, LIME, 2066.1096,-1340.9332,23.8203, 150, 0, 0); Create3DTextLabel(Stunt3DText, LIME, 2140.0549,-2223.0105,13.3899, 150, 0, 0), Create3DTextLabel(Stunt3DText, LIME, 1453.5579,-1300.2125,13.3828, 150, 0, 0); Create3DTextLabel(Stunt3DText, LIME, 1618.0244,-1592.3458,13.5469, 150, 0, 0), Create3DTextLabel(Stunt3DText, LIME, 2168.9238,1213.3776,10.8203, 150, 0, 0); Create3DTextLabel(Stunt3DText, LIME, 1878.1779,933.1486,10.6719, 150, 0, 0), Create3DTextLabel(Stunt3DText, LIME, -2291.7871,726.4196,49.4384, 150, 0, 0); Create3DTextLabel(Stunt3DText, LIME, 1373.9473,-939.9419,34.1875, 150, 0, 0), Create3DTextLabel(Stunt3DText, LIME, 1338.1860,-1282.4750,13.3828, 150, 0, 0); Create3DTextLabel(Stunt3DText, LIME, -2706.2795,77.7037,4.2400, 150, 0, 0), Create3DTextLabel(Stunt3DText, LIME, -1721.1564,1103.3379,45.2969, 150, 0, 0); Create3DTextLabel(Stunt3DText, LIME, 343.6186,-1467.6818,35.5760, 150, 0, 0); //-------------------------------------------------------------------------- Create3DTextLabel("{FF0000}Truck Job\n\ {00FF00}Type {00BBF6}/Start {00FF00} to start this job!\n\ {00BBF6}/car 403", LIME, -101.4014,-1183.8090,2.2559, 150, 0, 0); //-------------------------------------------------------------------------- Create3DTextLabel("{FF0000}Air Pilot Job\n\ {00FF00}Type {00BBF6}/Start {00FF00} to start this job!\n\ {00BBF6}/car 487", LIME, 337.6592,-1799.8015,4.7044, 150, 0, 0); //-------------------------------------------------------------------------- Create3DTextLabel("{FF0000}Ambulance Driver Job\n\ {00FF00}Type {00BBF6}/Start {00FF00} to start this job!\n\ {00BBF6}/car 416", LIME, 1183.2109,-1324.2020,13.5776, 150, 0, 0); //-------------------------------------------------------------------------- Create3DTextLabel("{FF0000}Pizza Boy Job\n\ {00FF00}Type {00BBF6}/Start {00FF00} to start this job!\n\ {00BBF6}/car 448", LIME, -2668.5017,274.8625,4.3359, 150, 0, 0); //-------------------------------------------------------------------------- Create3DTextLabel("{FF0000}Policeman Job\n\ {00FF00}Type {00BBF6}/Start {00FF00} to start this job!\n\ {00BBF6}/car 598", LIME, 2247.7876,2450.8083,10.8203, 150, 0, 0); //-------------------------------------------------------------------------- strcat(Drift3DText, "{FF0000}Drift\n\ {BBFF00}Type {00BBF6}/Start {BBFF00}to try this drift!\n\ {00BBF6}Have fun!"); //-------------------------------------------------------------------------- Create3DTextLabel(Drift3DText, LIME, -302.0906,1503.9202,75.4919, 150, 0, 0), Create3DTextLabel(Drift3DText, LIME, -1064.2598,-1648.1217,76.6414, 150, 0, 0), Create3DTextLabel(Drift3DText, LIME, -2411.9666,-600.9489,132.5644, 150, 0, 0), Create3DTextLabel(Drift3DText, LIME, 2072.6216,2431.7725,49.5234, 150, 0, 0), Create3DTextLabel(Drift3DText, LIME, 2228.6147,1964.5468,31.7797, 150, 0, 0), Create3DTextLabel(Drift3DText, LIME, 2262.2554,1398.9836,42.8203, 150, 0, 0); //-------------------------------------------------------------------------- // -> Others... //-------------------------------------------------------------------------- Server[Lift][1] = CreateObject(974, 948.788574, 2439.683350, 9.874555, 90.2409, 0.0000, 0.0000); Server[Lift][2] = CreateObject(974, 957.282593, 2432.806641, 42.432281, 90.2409, 0.0000, 0.0000); Server[Lift][3] = CreateObject(974, 957.160950, 2442.099365, 81.161102, 90.2409, 0.0000, 0.0000); //-------------------------------------------------------------------------- // -> Server's TextDraws //-------------------------------------------------------------------------- Textdraw0 = TextDrawCreate(20.000000, 421.000000, "Fire"); TextDrawBackgroundColor(Textdraw0, 255); TextDrawFont(Textdraw0, 0); TextDrawLetterSize(Textdraw0, 0.500000, 1.800000); TextDrawColor(Textdraw0, 7536639); TextDrawSetOutline(Textdraw0, 0); TextDrawSetProportional(Textdraw0, 1); TextDrawSetShadow(Textdraw0, 1); //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Textdraw1 = TextDrawCreate(72.000000, 421.000000, "White"); TextDrawBackgroundColor(Textdraw1, 255); TextDrawFont(Textdraw1, 0); TextDrawLetterSize(Textdraw1, 0.500000, 1.800000); TextDrawColor(Textdraw1, -65281); TextDrawSetOutline(Textdraw1, 0); TextDrawSetProportional(Textdraw1, 1); TextDrawSetShadow(Textdraw1, 1); //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Textdraw2 = TextDrawCreate(109.000000, 421.000000, "Stunt"); TextDrawBackgroundColor(Textdraw2, 255); TextDrawFont(Textdraw2, 0); TextDrawLetterSize(Textdraw2, 0.500000, 1.800000); TextDrawColor(Textdraw2, -16776961); TextDrawSetOutline(Textdraw2, 0); TextDrawSetProportional(Textdraw2, 1); TextDrawSetShadow(Textdraw2, 1); //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Textdraw3 = TextDrawCreate(26.000000, 437.000000, "/"); TextDrawBackgroundColor(Textdraw3, 255); TextDrawFont(Textdraw3, 1); TextDrawLetterSize(Textdraw3, 0.290000, 0.900000); TextDrawColor(Textdraw3, 12318463); TextDrawSetOutline(Textdraw3, 0); TextDrawSetProportional(Textdraw3, 1); TextDrawSetShadow(Textdraw3, 1); //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Textdraw4 = TextDrawCreate(31.000000, 436.000000, "help"); TextDrawBackgroundColor(Textdraw4, 255); TextDrawFont(Textdraw4, 1); TextDrawLetterSize(Textdraw4, 0.290000, 1.100000); TextDrawColor(Textdraw4, 16711935); TextDrawSetOutline(Textdraw4, 0); TextDrawSetProportional(Textdraw4, 1); TextDrawSetShadow(Textdraw4, 1); //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Textdraw5 = TextDrawCreate(55.000000, 437.000000, "/"); TextDrawBackgroundColor(Textdraw5, 255); TextDrawFont(Textdraw5, 1); TextDrawLetterSize(Textdraw5, 0.290000, 0.900000); TextDrawColor(Textdraw5, 12318463); TextDrawSetOutline(Textdraw5, 0); TextDrawSetProportional(Textdraw5, 1); TextDrawSetShadow(Textdraw5, 1); //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Textdraw6 = TextDrawCreate(59.000000, 436.000000, "cmds"); TextDrawBackgroundColor(Textdraw6, 255); TextDrawFont(Textdraw6, 1); TextDrawLetterSize(Textdraw6, 0.290000, 1.100000); TextDrawColor(Textdraw6, 16711935); TextDrawSetOutline(Textdraw6, 0); TextDrawSetProportional(Textdraw6, 1); TextDrawSetShadow(Textdraw6, 1); //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Textdraw7 = TextDrawCreate(89.000000, 436.000000, "teles"); TextDrawBackgroundColor(Textdraw7, 255); TextDrawFont(Textdraw7, 1); TextDrawLetterSize(Textdraw7, 0.290000, 1.100000); TextDrawColor(Textdraw7, 16711935); TextDrawSetOutline(Textdraw7, 0); TextDrawSetProportional(Textdraw7, 1); TextDrawSetShadow(Textdraw7, 1); //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Textdraw8 = TextDrawCreate(85.000000, 437.000000, "/"); TextDrawBackgroundColor(Textdraw8, 255); TextDrawFont(Textdraw8, 1); TextDrawLetterSize(Textdraw8, 0.290000, 0.900000); TextDrawColor(Textdraw8, 12318463); TextDrawSetOutline(Textdraw8, 0); TextDrawSetProportional(Textdraw8, 1); TextDrawSetShadow(Textdraw8, 1); //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Textdraw9 = TextDrawCreate(115.000000, 437.000000, "/"); TextDrawBackgroundColor(Textdraw9, 255); TextDrawFont(Textdraw9, 1); TextDrawLetterSize(Textdraw9, 0.290000, 0.900000); TextDrawColor(Textdraw9, 12318463); TextDrawSetOutline(Textdraw9, 0); TextDrawSetProportional(Textdraw9, 1); TextDrawSetShadow(Textdraw9, 1); //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Textdraw10 = TextDrawCreate(119.000000, 436.000000, "rules"); TextDrawBackgroundColor(Textdraw10, 255); TextDrawFont(Textdraw10, 1); TextDrawLetterSize(Textdraw10, 0.290000, 1.100000); TextDrawColor(Textdraw10, 16711935); TextDrawSetOutline(Textdraw10, 0); TextDrawSetProportional(Textdraw10, 1); TextDrawSetShadow(Textdraw10, 1); //-------------------------------------------------------------------------- // -> Server's Connect TextDraw //-------------------------------------------------------------------------- Textdraw11 = TextDrawCreate(472.000000, 261.000000, "Fire"); TextDrawBackgroundColor(Textdraw11, 255); TextDrawFont(Textdraw11, 0); TextDrawLetterSize(Textdraw11, 0.640000, 1.600000); TextDrawColor(Textdraw11, 65535); TextDrawSetOutline(Textdraw11, 1); TextDrawSetProportional(Textdraw11, 1); //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Textdraw12 = TextDrawCreate(542.000000, 263.000000, "White"); TextDrawBackgroundColor(Textdraw12, 255); TextDrawFont(Textdraw12, 0); TextDrawLetterSize(Textdraw12, 0.579999, 1.400000); TextDrawColor(Textdraw12, -65281); TextDrawSetOutline(Textdraw12, 1); TextDrawSetProportional(Textdraw12, 1); //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Textdraw13 = TextDrawCreate(587.000000, 264.000000, "Stunt"); TextDrawBackgroundColor(Textdraw13, 255); TextDrawFont(Textdraw13, 0); TextDrawLetterSize(Textdraw13, 0.629999, 1.400000); TextDrawColor(Textdraw13, -16776961); TextDrawSetOutline(Textdraw13, 1); TextDrawSetProportional(Textdraw13, 1); //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Textdraw14 = TextDrawCreate(489.000000, 280.000000, "]"); TextDrawBackgroundColor(Textdraw14, 255); TextDrawFont(Textdraw14, 0); TextDrawLetterSize(Textdraw14, 0.639999, 2.000000); TextDrawColor(Textdraw14, 12318463); TextDrawSetOutline(Textdraw14, 1); TextDrawSetProportional(Textdraw14, 1); //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Textdraw15 = TextDrawCreate(599.000000, 280.000000, "]"); TextDrawBackgroundColor(Textdraw15, 255); TextDrawFont(Textdraw15, 0); TextDrawLetterSize(Textdraw15, 0.639999, 2.000000); TextDrawColor(Textdraw15, 12318463); TextDrawSetOutline(Textdraw15, 1); TextDrawSetProportional(Textdraw15, 1); //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Textdraw16 = TextDrawCreate(517.000000, 280.000000, "Welcome"); TextDrawBackgroundColor(Textdraw16, 255); TextDrawFont(Textdraw16, 1); TextDrawLetterSize(Textdraw16, 0.500000, 2.000000); TextDrawColor(Textdraw16, 16711935); TextDrawSetOutline(Textdraw16, 1); TextDrawSetProportional(Textdraw16, 1); //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Textdraw17 = TextDrawCreate(493.000000, 303.000000, "/"); TextDrawBackgroundColor(Textdraw17, 255); TextDrawFont(Textdraw17, 1); TextDrawLetterSize(Textdraw17, 0.340000, 0.899999); TextDrawColor(Textdraw17, 12318463); TextDrawSetOutline(Textdraw17, 0); TextDrawSetProportional(Textdraw17, 1); TextDrawSetShadow(Textdraw17, 1); //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Textdraw18 = TextDrawCreate(498.000000, 303.000000, "cmds"); TextDrawBackgroundColor(Textdraw18, 255); TextDrawFont(Textdraw18, 1); TextDrawLetterSize(Textdraw18, 0.310000, 1.000000); TextDrawColor(Textdraw18, 16711935); TextDrawSetOutline(Textdraw18, 0); TextDrawSetProportional(Textdraw18, 1); TextDrawSetShadow(Textdraw18, 1); //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Textdraw19 = TextDrawCreate(528.000000, 303.000000, "/"); TextDrawBackgroundColor(Textdraw19, 255); TextDrawFont(Textdraw19, 1); TextDrawLetterSize(Textdraw19, 0.340000, 0.899999); TextDrawColor(Textdraw19, 12318463); TextDrawSetOutline(Textdraw19, 0); TextDrawSetProportional(Textdraw19, 1); TextDrawSetShadow(Textdraw19, 1); //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Textdraw20 = TextDrawCreate(534.000000, 303.000000, "help"); TextDrawBackgroundColor(Textdraw20, 255); TextDrawFont(Textdraw20, 1); TextDrawLetterSize(Textdraw20, 0.310000, 1.000000); TextDrawColor(Textdraw20, 16711935); TextDrawSetOutline(Textdraw20, 0); TextDrawSetProportional(Textdraw20, 1); TextDrawSetShadow(Textdraw20, 1); //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Textdraw21 = TextDrawCreate(558.000000, 303.000000, "/"); TextDrawBackgroundColor(Textdraw21, 255); TextDrawFont(Textdraw21, 1); TextDrawLetterSize(Textdraw21, 0.340000, 0.899999); TextDrawColor(Textdraw21, 12318463); TextDrawSetOutline(Textdraw21, 0); TextDrawSetProportional(Textdraw21, 1); TextDrawSetShadow(Textdraw21, 1); //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Textdraw22 = TextDrawCreate(562.000000, 303.000000, "rules"); TextDrawBackgroundColor(Textdraw22, 255); TextDrawFont(Textdraw22, 1); TextDrawLetterSize(Textdraw22, 0.310000, 1.000000); TextDrawColor(Textdraw22, 16711935); TextDrawSetOutline(Textdraw22, 0); TextDrawSetProportional(Textdraw22, 1); TextDrawSetShadow(Textdraw22, 1); //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Textdraw23 = TextDrawCreate(589.000000, 303.000000, "/"); TextDrawBackgroundColor(Textdraw23, 255); TextDrawFont(Textdraw23, 1); TextDrawLetterSize(Textdraw23, 0.340000, 0.899999); TextDrawColor(Textdraw23, 12318463); TextDrawSetOutline(Textdraw23, 0); TextDrawSetProportional(Textdraw23, 1); TextDrawSetShadow(Textdraw23, 1); //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Textdraw24 = TextDrawCreate(594.000000, 303.000000, "teles"); TextDrawBackgroundColor(Textdraw24, 255); TextDrawFont(Textdraw24, 1); TextDrawLetterSize(Textdraw24, 0.310000, 1.000000); TextDrawColor(Textdraw24, 16711935); TextDrawSetOutline(Textdraw24, 0); TextDrawSetProportional(Textdraw24, 1); TextDrawSetShadow(Textdraw24, 1); //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Textdraw25 = TextDrawCreate(539.000000, 316.000000, "/"); TextDrawBackgroundColor(Textdraw25, 255); TextDrawFont(Textdraw25, 1); TextDrawLetterSize(Textdraw25, 0.340000, 0.899999); TextDrawColor(Textdraw25, 12318463); TextDrawSetOutline(Textdraw25, 0); TextDrawSetProportional(Textdraw25, 1); TextDrawSetShadow(Textdraw25, 1); //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Textdraw26 = TextDrawCreate(543.000000, 315.000000, "credits"); //xmas TextDrawBackgroundColor(Textdraw26, 255); TextDrawFont(Textdraw26, 1); TextDrawLetterSize(Textdraw26, 0.310000, 1.100000); TextDrawColor(Textdraw26, -16776961); TextDrawSetOutline(Textdraw26, 0); TextDrawSetProportional(Textdraw26, 1); TextDrawSetShadow(Textdraw26, 1); //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Textdraw27 = TextDrawCreate(504.000000, 326.000000, "www.FireWhiteStunt.com"); TextDrawBackgroundColor(Textdraw27, 255); TextDrawFont(Textdraw27, 1); TextDrawLetterSize(Textdraw27, 0.300000, 1.200000); TextDrawColor(Textdraw27, 12318463); TextDrawSetOutline(Textdraw27, 0); TextDrawSetProportional(Textdraw27, 1); TextDrawSetShadow(Textdraw27, 1); //-------------------------------------------------------------------------- // => Server's Teleport/Connect/Disconnect TextDraws - by [XSS]Seby //-------------------------------------------------------------------------- TeleTD1 = TextDrawCreate(249.000000, 435.000000, ""), TextDrawBackgroundColor(TeleTD1, 255); TextDrawFont(TeleTD1, 1), TextDrawLetterSize(TeleTD1, 0.190000, 1.000000); TextDrawColor(TeleTD1, -1), TextDrawSetOutline(TeleTD1, 0); TextDrawSetProportional(TeleTD1, 1), TextDrawSetShadow(TeleTD1, 1); //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ TeleTD2 = TextDrawCreate(249.000000, 426.000000, ""), TextDrawBackgroundColor(TeleTD2, 255); TextDrawFont(TeleTD2, 1), TextDrawLetterSize(TeleTD2, 0.190000, 1.000000); TextDrawColor(TeleTD2, -1), TextDrawSetOutline(TeleTD2, 0); TextDrawSetProportional(TeleTD2, 1), TextDrawSetShadow(TeleTD2, 1); //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ TeleTD3 = TextDrawCreate(249.000000, 417.000000, ""), TextDrawBackgroundColor(TeleTD3, 255); TextDrawFont(TeleTD3, 1), TextDrawLetterSize(TeleTD3, 0.190000, 1.000000); TextDrawColor(TeleTD3, -1), TextDrawSetOutline(TeleTD3, 0); TextDrawSetProportional(TeleTD3, 1), TextDrawSetShadow(TeleTD3, 1); Textdraw27 = TextDrawCreate(169.000000, 283.000000, ""), TextDrawBackgroundColor(Textdraw27, 255); TextDrawFont(Textdraw27, 1), TextDrawLetterSize(Textdraw27, 0.430000, 2.599999); TextDrawColor(Textdraw27, -1), TextDrawSetOutline(Textdraw27, 0); TextDrawSetProportional(Textdraw27, 1), TextDrawSetShadow(Textdraw27, 1); //-------------------------------------------------------------------------- // -> Server's Second Connect TextDraw //-------------------------------------------------------------------------- Textdraw44 = TextDrawCreate(8.000000, 317.000000, "."); TextDrawBackgroundColor(Textdraw44, 255); TextDrawFont(Textdraw44, 1); TextDrawLetterSize(Textdraw44, 15.710023, 1.000000); TextDrawColor(Textdraw44, -1); TextDrawSetOutline(Textdraw44, 0); TextDrawSetProportional(Textdraw44, 1); TextDrawSetShadow(Textdraw44, 1); //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Textdraw45 = TextDrawCreate(30.000000, 210.000000, "Fire"); TextDrawBackgroundColor(Textdraw45, 255); TextDrawFont(Textdraw45, 3); TextDrawLetterSize(Textdraw45, 0.500000, 2.000000); TextDrawColor(Textdraw45, 7536639); TextDrawSetOutline(Textdraw45, 0); TextDrawSetProportional(Textdraw45, 1); TextDrawSetShadow(Textdraw45, 1); //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Textdraw46 = TextDrawCreate(67.000000, 225.000000, "White"); TextDrawBackgroundColor(Textdraw46, 255); TextDrawFont(Textdraw46, 3); TextDrawLetterSize(Textdraw46, 0.500000, 2.000000); TextDrawColor(Textdraw46, -3407617); TextDrawSetOutline(Textdraw46, 0); TextDrawSetProportional(Textdraw46, 1); TextDrawSetShadow(Textdraw46, 1); //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Textdraw47 = TextDrawCreate(94.000000, 240.000000, "Stunt"); TextDrawBackgroundColor(Textdraw47, 255); TextDrawFont(Textdraw47, 3); TextDrawLetterSize(Textdraw47, 0.500000, 2.000000); TextDrawColor(Textdraw47, -16776961); TextDrawSetOutline(Textdraw47, 0); TextDrawSetProportional(Textdraw47, 1); TextDrawSetShadow(Textdraw47, 1); //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Textdraw48 = TextDrawCreate(22.000000, 186.000000, "welcome to"); TextDrawBackgroundColor(Textdraw48, 255); TextDrawFont(Textdraw48, 2); TextDrawLetterSize(Textdraw48, 0.500000, 2.000000); TextDrawColor(Textdraw48, -1); TextDrawSetOutline(Textdraw48, 0); TextDrawSetProportional(Textdraw48, 1); TextDrawSetShadow(Textdraw48, 1); //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Textdraw49 = TextDrawCreate(108.000000, 217.000000, "[]"); TextDrawBackgroundColor(Textdraw49, 255); TextDrawFont(Textdraw49, 2); TextDrawLetterSize(Textdraw49, 0.500000, 2.000000); TextDrawColor(Textdraw49, -65281); TextDrawSetOutline(Textdraw49, 0); TextDrawSetProportional(Textdraw49, 1); TextDrawSetShadow(Textdraw49, 1); //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Textdraw50 = TextDrawCreate(26.000000, 233.000000, "[]"); TextDrawBackgroundColor(Textdraw50, 255); TextDrawFont(Textdraw50, 2); TextDrawBackgroundColor(Textdraw67, 255); TextDrawFont(Textdraw67, 1); TextDrawLetterSize(Textdraw67, 0.280000, 1.500000); TextDrawColor(Textdraw67, -1); TextDrawSetOutline(Textdraw67, 0); TextDrawSetProportional(Textdraw67, 1); TextDrawSetShadow(Textdraw67, 1); //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Textdraw68 = TextDrawCreate(285.000000, 380.000000, "Y"); TextDrawBackgroundColor(Textdraw68, 255); TextDrawFont(Textdraw68, 1); TextDrawLetterSize(Textdraw68, 0.280000, 1.500000); TextDrawColor(Textdraw68, 7536639); TextDrawSetOutline(Textdraw68, 0); TextDrawSetProportional(Textdraw68, 1); TextDrawSetShadow(Textdraw68, 1); //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Textdraw69 = TextDrawCreate(296.000000, 380.000000, "to flip your car."); TextDrawBackgroundColor(Textdraw69, 255); TextDrawFont(Textdraw69, 1); TextDrawLetterSize(Textdraw69, 0.280000, 1.500000); TextDrawColor(Textdraw69, -1); TextDrawSetOutline(Textdraw69, 0); TextDrawSetProportional(Textdraw69, 1); TextDrawSetShadow(Textdraw69, 1); //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Textdraw70 = TextDrawCreate(262.000000, 392.000000, "Press"); TextDrawBackgroundColor(Textdraw70, 255); TextDrawFont(Textdraw70, 1); TextDrawLetterSize(Textdraw70, 0.280000, 1.500000); TextDrawColor(Textdraw70, -1); TextDrawSetOutline(Textdraw70, 0); TextDrawSetProportional(Textdraw70, 1); TextDrawSetShadow(Textdraw70, 1); //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Textdraw71 = TextDrawCreate(288.000000, 392.000000, "Click"); TextDrawBackgroundColor(Textdraw71, 255); TextDrawFont(Textdraw71, 1); TextDrawLetterSize(Textdraw71, 0.280000, 1.500000); TextDrawColor(Textdraw71, 866792447); TextDrawSetOutline(Textdraw71, 0); TextDrawSetProportional(Textdraw71, 1); TextDrawSetShadow(Textdraw71, 1); //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Textdraw72 = TextDrawCreate(311.000000, 392.000000, "to hide this."); TextDrawBackgroundColor(Textdraw72, 255); TextDrawFont(Textdraw72, 1); TextDrawLetterSize(Textdraw72, 0.280000, 1.500000); TextDrawColor(Textdraw72, -1); TextDrawSetOutline(Textdraw72, 0); TextDrawSetProportional(Textdraw72, 1); TextDrawSetShadow(Textdraw72, 1); //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Textdraw73 = TextDrawCreate(246.000000, 360.000000, "."); TextDrawBackgroundColor(Textdraw73, 255); TextDrawFont(Textdraw73, 1); TextDrawLetterSize(Textdraw73, 13.380015, 1.100000); TextDrawColor(Textdraw73, -1); TextDrawSetOutline(Textdraw73, 0); TextDrawSetProportional(Textdraw73, 1); TextDrawSetShadow(Textdraw73, 1); //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Textdraw74 = TextDrawCreate(246.000000, 400.000000, "."); TextDrawBackgroundColor(Textdraw74, 255); TextDrawFont(Textdraw74, 1); TextDrawLetterSize(Textdraw74, 13.380015, 1.100000); TextDrawColor(Textdraw74, -1); TextDrawSetOutline(Textdraw74, 0); TextDrawSetProportional(Textdraw74, 1); TextDrawSetShadow(Textdraw74, 1); //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ unjailtimer = SetTimer("SetPlayerUnjail", 1000, 1);---THE TIMER! return 1; }
Код:
public OnPlayerConnect(playerid) { Jailtime[playerid] = CreatePlayerTextDraw(playerid, 504.000000, 97.000000, " "); PlayerTextDrawLetterSize(playerid, Jailtime[playerid], 0.219998, 1.800000); PlayerTextDrawColor(playerid, Jailtime[playerid], -1); PlayerTextDrawSetShadow(playerid, Jailtime[playerid], 1); PlayerTextDrawSetOutline(playerid, Jailtime[playerid], 1); PlayerTextDrawFont(playerid, Jailtime[playerid], 2); WantedText[playerid] = CreatePlayerTextDraw(playerid, 504.000000, 122.000000, "WANTED SCADE IN:"); PlayerTextDrawBackgroundColor(playerid, WantedText[playerid], 255); PlayerTextDrawFont(playerid, WantedText[playerid], 2); PlayerTextDrawLetterSize(playerid, WantedText[playerid], 0.219998, 1.800000); PlayerTextDrawColor(playerid, WantedText[playerid], -1); PlayerTextDrawSetOutline(playerid, WantedText[playerid], 1); PlayerTextDrawSetProportional(playerid, WantedText[playerid], 1); InitFly(playerid); wantedlost[playerid] = 1799; SetPlayerWantedLevel(playerid, Player[playerid][pWantedLevel]); DestroyDynamic3DTextLabel(WantedScris[playerid]); foreach(Player, iss) { KillTimer(deathdeletetime[iss]); SendDeathMessageToPlayer(iss, INVALID_PLAYER_ID, playerid, 200); deathdeletetime[iss] = SetTimerEx("DeleteDeathMessage",30000,0,"d",iss); } if(Player[playerid][pWantedLevel] > 0) { DestroyDynamic3DTextLabel(WantedScris[playerid]); new str2[256]; format(str2,sizeof(str2),"{FF00FF}Wanted Level: %d", Player[playerid][pWantedLevel]); WantedScris[playerid] = CreateDynamic3DTextLabel(str2, COLOR_WHITE, 0, 0, -20, 20, playerid); Streamer_SetFloatData(STREAMER_TYPE_3D_TEXT_LABEL, WantedScris[playerid] , E_STREAMER_ATTACH_OFFSET_Z, 0.48); } if(Player[playerid][Jailed] == 1) { SetPlayerWantedLevel(playerid, 0); DestroyDynamic3DTextLabel(WantedScris[playerid]); PlayerTextDrawHide(playerid, WantedText[playerid]); SetPlayerInterior(playerid, 6); new rand; rand = random(sizeof(gRandomJailSpawns)); SetPlayerPos(playerid,gRandomJailSpawns[rand][0],gRandomJailSpawns[rand][1],gRandomJailSpawns[rand][2]); TogglePlayerControllable(playerid, 0); SetTimerEx("UnFreezeStation", 1000, false, "i", playerid); } new rColor = random(9); Str[0] = '\0'; Str2[0] = '\0'; SendConnect(playerid); Server[PropertyPayDay]++; //-------------------------------------------------------------------------- // -> Checking if the Player is Banned/Blacklisted... //-------------------------------------------------------------------------- format(Str, 150, "SELECT * FROM `Bans` WHERE `Name` = '%s' OR `IP` = '%s' ORDER BY `ID` DESC", ReturnName(playerid), ReturnIP(playerid)); mysql_tquery(DB_Connect, Str, "CheckBan", "d", playerid); Str[0] = '\0'; //-------------------------------------------------------------------------- format(Str, 150, "SELECT * FROM `Accounts` WHERE `Name` = '%s' AND `Blacklist` != ''", ReturnName(playerid)); mysql_tquery(DB_Connect, Str, "CheckBlacklist", "d", playerid); Str[0] = '\0'; //-------------------------------------------------------------------------- // -> Setting Player's Stats to 0 //-------------------------------------------------------------------------- Player[playerid][ID][1] = 0, Player[playerid][Language] = 0, Player[playerid][MovieMan] = 0, Player[playerid][Level] = 0, Player[playerid][VIP] = 0, Player[playerid][GoldVIP] = 0, Player[playerid][LoggedIn] = 0, Player[playerid][TDs][1] = 0, Player[playerid][FailedLogins][1] = 0, Player[playerid][FailedLogins][2] = 0, Player[playerid][SPassword] = 0, Player[playerid][Read][1] = 0, Player[playerid][Read][2] = 0, Player[playerid][Description1] = 0, Player[playerid][Description2] = 0, Player[playerid][Description3] = 0, Player[playerid][EMail] = 0, Player[playerid][BuyerID] = 0, Player[playerid][SellerID] = 0, Player[playerid][ATrade] = -1, Player[playerid][Money] = 0, Player[playerid][Score] = 0, Player[playerid][Coins] = 0, Player[playerid][Kills] = 0, Player[playerid][Deaths] = 0, Player[playerid][KSpree] = 0, Player[playerid][Respect][1] = 0, Player[playerid][Respect][2] = 0, Player[playerid][C4] = 0, Player[playerid][Stunt] = 0, Player[playerid][Drift] = 0, Player[playerid][Race] = 0, Player[playerid][vChat] = 1, Player[playerid][RPreference] = -1, Player[playerid][UpCost] = 0, Player[playerid][Invite][1] = 0, Player[playerid][Invite][2] = 0, Player[playerid][Inviter][1] = -1, Player[playerid][Inviter][2] = -1, Player[playerid][Ignore][1] = 0, Player[playerid][Ignore][2] = 0, Player[playerid][Ignore][3] = 0, Player[playerid][Ignore][3] = 0, Player[playerid][Ignore][4] = 0, Player[playerid][Ignore][5] = 0, Player[playerid][Ignore][6] = 0, Player[playerid][Jailed] = 0, Player[playerid][BRB] = 0, Player[playerid][Online][1] = 0, Player[playerid][Online][2] = 0, Player[playerid][Online][3] = 0, Player[playerid][Online][4] = 0, Player[playerid][TempVIP][1] = 0, Player[playerid][TempVIP][2] = 0, Player[playerid][pWarns] = 0, Player[playerid][Online][5] = gettime(), Player[playerid][pKicks] = 0, Player[playerid][Muted][1] = 0, Player[playerid][Muted][2] = 0, Player[playerid][DoS] = 0, Player[playerid][Timer][1] = 0, Player[playerid][Timer][2] = 0, Player[playerid][Timer][3] = 0, Player[playerid][VipVehicle] = 0, Player[playerid][vBikeObj][0] = 0, Player[playerid][vBikeObj][1] = 0, Player[playerid][vBikeObj][2] = 0, Player[playerid][vBikeObj][3] = 0, Player[playerid][vBikeObj][4] = 0, Player[playerid][vBikeObj][5] = 0, Player[playerid][vBikeObj][6] = 0, Player[playerid][vBikeObj][7] = 0, Player[playerid][vBikeObj][8] = 0, Player[playerid][vHeliObj][1] = 0, Player[playerid][vHeliObj][2] = 0, Player[playerid][vHeliObj][3] = 0, Player[playerid][vHeliObj][4] = 0, Player[playerid][vHeliObj][5] = 0, Player[playerid][vHeliObj][6] = 0, Player[playerid][vHeliObj][7] = 0, Player[playerid][vTankObj][1] = 0, Player[playerid][vTankObj][2] = 0, Player[playerid][vTankObj][3] = 0, Player[playerid][vTankObj][4] = 0, Player[playerid][vTankObj][5] = 0, Player[playerid][vTankObj][6] = 0, Player[playerid][vTankObj][7] = 0, Player[playerid][VControl][1] = 0, Player[playerid][GodMode][1] = 0, Player[playerid][GodMode][2] = 0, Player[playerid][InMG] = 0, Player[playerid][InDM] = 0; Player[playerid][TDs][2] = 0, Player[playerid][TheRullZ] = 0, Player[playerid][OweProperty][1] = 0, Player[playerid][OweProperty][2] = 0, Player[playerid][LastPos][1] = 0, Player[playerid][LastPos][2] = 0, Player[playerid][LastPos][3] = 0, Player[playerid][HousePos][1] = 0, Player[playerid][HousePos][2] = 0, Player[playerid][HousePos][3] = 0, Player[playerid][PropPos][1] = 0, Player[playerid][PropPos][2] = 0, Player[playerid][PropPos][3] = 0, Player[playerid][ID][2] = 0, Player[playerid][ID][3] = 0, Player[playerid][Income][1] = 0, Player[playerid][Income][2] = 0, Player[playerid][Income][3] = 0, Player[playerid][AWarns] = 0, Player[playerid][VWarns] = 0, Player[playerid][Fav][1] = -1, Player[playerid][Fav][2] = -1, Player[playerid][Fav][3] = -1, Player[playerid][Fav][4] = -1, Player[playerid][Fav][5] = -1, Player[playerid][Fav][6] = -1, Player[playerid][Fav][7] = -1, Player[playerid][Fav][8] = -1, Player[playerid][Fav][9] = -1, Player[playerid][FavPos][1] = 0, Player[playerid][FavPos][2] = 0, Player[playerid][FavPos][3] = 0, Player[playerid][Neon][1] = 0, Player[playerid][Neon][2] = 0, Player[playerid][Neon][3] = 0, Player[playerid][Neon][4] = 0, Player[playerid][Neon][5] = 0, Player[playerid][Neon][6] = 0, Player[playerid][Neon][0] = 0, Player[playerid][Speed][1] = 0, Player[playerid][Speed][2] = 0, Player[playerid][VUP] = 0, Player[playerid][Timer][4] = 0, Player[playerid][SLimit] = 0, Player[playerid][InStunt] = 0, Player[playerid][InRace] = 0, Player[playerid][InDrift] = 0, Player[playerid][Engine] = 0, Player[playerid][Lights] = 0, Player[playerid][Alarm] = 0, Player[playerid][Doors] = 0, Player[playerid][Boot] = 0, Player[playerid][HTag][1] = 0, Player[playerid][HTag][2] = 0, Player[playerid][Timer][5] = 0, Player[playerid][AFoB] = 0, Player[playerid][MyCar] = -1, Player[playerid][PMID] = 0, Player[playerid][Fav][10] = -1, Player[playerid][DriftTime] = 0, Player[playerid][Timer][6] = 0, Player[playerid][MazeT] = 0, Player[playerid][MRFWeapon] = 0, Player[playerid][JailTime] = 0, Player[playerid][drugs] = 0, JailPrice[playerid] = 0, Player[playerid][pWantedLevel] = 0, Player[playerid][pJudecator] = 0; //-------------------------------------------------------------------------- Admin[playerid][Bans] = 0, Admin[playerid][Warns] = 0, Admin[playerid][Kicks] = 0, Admin[playerid][Mutes] = 0, Admin[playerid][Jails] = 0, Admin[playerid][Explodes] = 0, Admin[playerid][ChatsCleared] = 0; //-------------------------------------------------------------------------- Clan[playerid][ID] = 0, Clan[playerid][Name] = 0, Clan[playerid][Color] = 0, Clan[playerid][Skin][1] = 0, Clan[playerid][Skin][2] = 0, Clan[playerid][Invite] = 0, Clan[playerid][Weapon][1] = 0, Clan[playerid][Weapon][2] = 0, Clan[playerid][Weapon][3] = 0, Clan[playerid][Weapon][4] = 0, Clan[playerid][Weapon][5] = 0, Clan[playerid][Weapon][6] = 0, Clan[playerid][Rank] = 0, Clan[playerid][Pos][1] = 0, Clan[playerid][Pos][2] = 0, Clan[playerid][Pos][3] = 0, Clan[playerid][Kills] = 0, Clan[playerid][Deaths] = 0, Clan[playerid][Founder] = 0; //-------------------------------------------------------------------------- Gang[playerid][ID] = 0, Gang[playerid][Name] = 0, Gang[playerid][Color] = 0, Gang[playerid][Skin] = 0, Gang[playerid][Invite] = 0, Gang[playerid][Weapon][1] = 0, Gang[playerid][Weapon][2] = 0, Gang[playerid][Weapon][3] = 0, Gang[playerid][Weapon][4] = 0, Gang[playerid][Weapon][5] = 0, Gang[playerid][Weapon][6] = 0, Gang[playerid][Captures] = 0, Gang[playerid][Rank] = 0, Gang[playerid][Pos][1] = 0, Gang[playerid][Pos][2] = 0, Gang[playerid][Pos][3] = 0, Gang[playerid][Kills] = 0, Gang[playerid][Deaths] = 0, Gang[playerid][Founder] = 0; //-------------------------------------------------------------------------- // -> Language System //-------------------------------------------------------------------------- format(Str, 400, "{FFFF00}Welcome to {0072FF}Fire {FFFF00}White {FF0000}Stunt{FFFF00}, {00BBF6}%s{FFFF00}!\n", ReturnName(playerid)), strcat(Str2, Str, 400); strcat(Str2, "{FFFF00}Please select your language to continue!", 200), ShowPlayerDialog(playerid, Lang_D, DIALOG_STYLE_MSGBOX, "{00BBF6}Language {FF0000}/ {00BBF6}Limba", Str2, "Romana", "English"); //-------------------------------------------------------------------------- // -> Setting PLayer's Color //-------------------------------------------------------------------------- switch(rColor) { case 0: SetPlayerColor(playerid, 0xFFFFFFAA); case 1: SetPlayerColor(playerid, 0xFF0000AA); case 2: SetPlayerColor(playerid, 0x0072FFAA); case 3: SetPlayerColor(playerid, 0xFFFFFFAA); case 4: SetPlayerColor(playerid, 0x00BBF6AA); case 5: SetPlayerColor(playerid, 0xAFAFAFAA); case 6: SetPlayerColor(playerid, 0xFF9900AA); case 7: SetPlayerColor(playerid, 0xFFEB7BAA); case 8: SetPlayerColor(playerid, 0xFFCC00AA); } LoadPlayerTextdraws(playerid); //-------------------------------------------------------------------------- // -> Checking if the Player have or not a House/Property... //-------------------------------------------------------------------------- for(new hi = 0; hi < MAX_HOUSES; hi++) { if(strcmp(House[hi][Owner], ReturnName(playerid), true) == 0) { Player[playerid][OweProperty][1] = 1; //------------------------------------------------------------------ Player[playerid][HousePos][1] = House[hi][Icon][1], Player[playerid][HousePos][2] = House[hi][Icon][2], Player[playerid][HousePos][3] = House[hi][Icon][3], Player[playerid][ID][2] = hi + 1; } } //-------------------------------------------------------------------------- for(new pID = 0; pID < MAX_PROPERTIES; pID++) { if(strcmp(Property[pID][Owner], ReturnName(playerid), true) == 0) { Player[playerid][OweProperty][2] = Property[pID][Level]; //------------------------------------------------------------------ Player[playerid][PropPos][1] = Property[pID][Icon][1], Player[playerid][PropPos][2] = Property[pID][Icon][2], Player[playerid][PropPos][3] = Property[pID][Icon][3], Player[playerid][ID][3] = pID + 1; //------------------------------------------------------------------ Player[playerid][Income][1] = Property[pID][Income] * Property[pID][Level]; // New Income Method: Income Value x Level = Final Income. Player[playerid][Income][2] = Property[pID][Cost][1]; } } ShowZones(playerid); //-------------------------------------------------------------------------- // => AntiFlood - Thanks to [XSS]MaxXx //-------------------------------------------------------------------------- /*new IP[16]; GetPlayerIp(playerid, IP, 16); strdel(IP, strlen(IP) - 4, strlen(IP)); format(IP, sizeof(IP), "%s", IP); //-------------------------------------------------------------------------- AntiFlood[playerid][0] = GetTickCount(); AntiFlood[playerid][2] = GetTickCount(); //-------------------------------------------------------------------------- if(ConnectedIPs(ReturnIP(playerid)) > 3) { new h, m, s, y, mo, d; gettime(h, m, s); getdate(y, mo, d); Str[0] = '\0'; Str2[0] = '\0'; //---------------------------------------------------------------------- format(Str, 512, "INSERT INTO `Bans`(`Name`, `Admin`, `BanDate`, `BanExpire`, `IP`, `Reason`) VALUES ('%s', 'Anti-Flood', '%d', '-1', '%s', 'IP Flood')", ReturnName(playerid), gettime(), ReturnIP(playerid)); mysql_tquery(DB_Connect, Str, "", "", playerid); //---------------------------------------------------------------------- format(Str2, 512, "INSERT INTO `Logs`(`Date`, `Type`, `Log`, `uIDs`) VALUES ('On %d/%d/%d at %d:%d.%d', '1', 'Anti-Flood banned %s for IP Flood!', '%d - 0')", d, mo, y, h, m, s, ReturnName(playerid), Player[playerid][ID][1]), mysql_tquery(DB_Connect, Str2, "", ""), SetTimerEx("KickEx", 50, false, "d", playerid); } //-------------------------------------------------------------------------- if((GetTickCount() - AntiFlood[playerid][0]) < 50) { AntiFlood[playerid][1]++; //---------------------------------------------------------------------- if(AntiFlood[playerid][1] > 3) { new h, m, s, y, mo, d; gettime(h, m, s); getdate(y, mo, d); Str[0] = '\0'; Str2[0] = '\0'; //------------------------------------------------------------------ format(Str, 512, "INSERT INTO `Bans`(`Name`, `Admin`, `BanDate`, `BanExpire`, `IP`, `Reason`) VALUES ('%s', 'Anti-Flood', '%d', '-1', '%s', 'Connect Flood')", ReturnName(playerid), gettime(), ReturnIP(playerid)); mysql_tquery(DB_Connect, Str, "", "", playerid); //------------------------------------------------------------------ format(Str2, 512, "INSERT INTO `Logs`(`Date`, `Type`, `Log`, `uIDs`) VALUES ('On %d/%d/%d at %d:%d.%d', '1', 'Anti-Flood banned %s for Connect Flood!', '%d - 0')", d, mo, y, h, m, s, ReturnName(playerid), Player[playerid][ID][1]), mysql_tquery(DB_Connect, Str2, "", ""), SetTimerEx("KickEx", 50, false, "d", playerid); } }*/ //-------------------------------------------------------------------------- // -> Server's TextDraws & Connect Messages, Colors by [XSW]Edward //-------------------------------------------------------------------------- if(Player[playerid][FirstConnect] != 123) // Without this, /name command don't work properly. { //---------------------------------------------------------------------- TextDrawShowForPlayer(playerid, Textdraw44), TextDrawShowForPlayer(playerid, Textdraw45), TextDrawShowForPlayer(playerid, Textdraw46), TextDrawShowForPlayer(playerid, Textdraw47), TextDrawShowForPlayer(playerid, Textdraw48), TextDrawShowForPlayer(playerid, Textdraw49), TextDrawShowForPlayer(playerid, Textdraw50), TextDrawShowForPlayer(playerid, Textdraw51), TextDrawShowForPlayer(playerid, Textdraw52), TextDrawShowForPlayer(playerid, Textdraw53), Player[playerid][FirstConnect] = 123; //---------------------------------------------------------------------- SendClientMessage(playerid, 0xFFFFFFAA, "Use{FF0000} /help{FFFFFF} to find information about our server!"); SendClientMessage(playerid, 0xFFFFFFAA, "Use{FF9900} /cmds{FFFFFF} for a list with all server's commands!"); SendClientMessage(playerid, 0xFFFFFFAA, "Use{FFFF00} /teles{FFFFFF} for a list with all server's teleports!"); SendClientMessage(playerid, 0xFFFFFFAA, "Use{00FF00} /news{FFFFFF} to see what's new on our server!"); SendClientMessage(playerid, 0xFFFFFFAA, "Use{0072FF} /v, {8A2BE2}/car, {C77DF3}/nrg{FFFFFF} in case you need a vehicle!"); } //-------------------------------------------------------------------------- if(Server[PropertyPayDay] == 30) { new Str3[400]; //---------------------------------------------------------------------- foreach(new l : Player) { if(Player[l][LoggedIn] == 1) { if(Player[l][OweProperty][2] == 1) Player[l][Coins] += Player[l][Income][1], format(Str3, 400, "You got {00BBF6}%d Coins {00FF00}from your Property!", Player[l][Income][1]), SendClientMessage(playerid, LIME, Str3); else if(Player[l][OweProperty][2] == 2) Player[l][Coins] += Player[l][Income][1], format(Str3, 400, "You got {00BBF6}%d Coins {00FF00}from your Property!", Player[l][Income][1]), SendClientMessage(playerid, LIME, Str3); else if(Player[l][OweProperty][2] == 3) Player[l][Coins] += Player[l][Income][1], format(Str3, 400, "You got {00BBF6}%d Coins {00FF00}from your Property!", Player[l][Income][1]), SendClientMessage(playerid, LIME, Str3); else if(Player[l][OweProperty][2] == 4) Player[l][Coins] += Player[l][Income][1], format(Str3, 400, "You got {00BBF6}%d Coins {00FF00}from your Property!", Player[l][Income][1]), SendClientMessage(playerid, LIME, Str3); else if(Player[l][OweProperty][2] == 5) Player[l][Coins] += Player[l][Income][1], format(Str3, 400, "You got {00BBF6}%d Coins {00FF00}from your Property!", Player[l][Income][1]), SendClientMessage(playerid, LIME, Str3); } } //---------------------------------------------------------------------- Server[PropertyPayDay] = 0; } //-------------------------------------------------------------------------- //for(new l = 0; l < MAX_CHECKPOINTS; l++) CreateDynamic3DTextLabel(Checkpoint[l][CPString], -1, Checkpoint[l][Pos][1], Checkpoint[l][Pos][2], Checkpoint[l][Pos][3], Checkpoint[l][Distance], INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, -1, -1, -1, Checkpoint[l][Distance]), CreateDynamicCP(Checkpoint[l][Pos][1], Checkpoint[l][Pos][2], Checkpoint[l][Pos][3], Checkpoint[l][CPSize], -1, -1, -1, Checkpoint[l][Distance]); //-------------------------------------------------------------------------- return 1; }
EDIT: Probabily and OnPlayerSpawn Help...
Код:
public OnPlayerSpawn(playerid) { if(Gang[playerid][ID] == 0) { SCM(playerid, YELLOW, "Nu esti intr-un gang,daca doresti asta,scrie /entergang"); } if(Gang[playerid][ID] == 2) { SendClientMessage(playerid, RED, "[------------------[REGULI!]------------------------]"); SendClientMessage(playerid, ORANGE, "1.Sa nu le confisti armele jucatorilor fara motiv!"); SendClientMessage(playerid, ORANGE, "2.Sa nu faci DM pe membrii fara permisiunea lor!"); SendClientMessage(playerid, ORANGE, "3.Sa nu faci DM pe Jucatori fara motiv!"); SendClientMessage(playerid, ORANGE, "4.Sa nu ii ataci/omori/arestezi fara ca acel player sa fii facut vreo infractiune!"); SendClientMessage(playerid, RED, "AI GRIJA!"); SendClientMessage(playerid, RED, "Adminii au in chat ABSOLUT tot ceea ce faci!"); } else if(Gang[playerid][ID] == 1) { SendClientMessage(playerid, RED, "[------------------[REGULI!]------------------------]"); SendClientMessage(playerid, ORANGE, "1.Sa nu faci DM pe membrii fara permisiunea lor!"); SendClientMessage(playerid, ORANGE, "2.Sa nu incurci locuri publice cu plantatii de droguri!"); SendClientMessage(playerid, ORANGE, "Marijuana se obtine de la o casa dubioasa din Estul orasului [/Droguri]"); SendClientMessage(playerid, RED, "AI GRIJA!"); SendClientMessage(playerid, RED, "Adminii au in chat ABSOLUT tot ceea ce faci!"); } else if(Gang[playerid][ID] == 3) { SendClientMessage(playerid, RED, "[------------------[REGULI!]------------------------]"); SendClientMessage(playerid, ORANGE, "1.Sa nu faci DM pe membrii fara permisiunea lor!"); SendClientMessage(playerid, ORANGE, "2.Sa nu folosesti degeaba bombele fumigene!"); SendClientMessage(playerid, ORANGE, "[Fumigenele se obtin de la HQ cu comanda /fumigant(10 coins)]"); SendClientMessage(playerid, ORANGE, "3.Sa nu faci DM pe Jucatori fara motiv!"); SendClientMessage(playerid, RED, "AI GRIJA!"); SendClientMessage(playerid, RED, "Adminii au in chat ABSOLUT tot ceea ce faci!"); } SetPlayerInterior(playerid, 0), SetPlayerVirtualWorld(playerid, 0), SetPlayerWeather(playerid, 2), SetPlayerHealth(playerid, 100); //-------------------------------------------------------------------------- // -> Server's TextDraws //-------------------------------------------------------------------------- TextDrawShowForPlayer(playerid, Textdraw0), TextDrawShowForPlayer(playerid, Textdraw1), TextDrawShowForPlayer(playerid, Textdraw2), TextDrawShowForPlayer(playerid, Textdraw3), TextDrawShowForPlayer(playerid, Textdraw4), TextDrawShowForPlayer(playerid, Textdraw5), TextDrawShowForPlayer(playerid, Textdraw6), TextDrawShowForPlayer(playerid, Textdraw7), TextDrawShowForPlayer(playerid, Textdraw8), TextDrawShowForPlayer(playerid, Textdraw9), TextDrawShowForPlayer(playerid, Textdraw10), TextDrawShowForPlayer(playerid, TeleTD1), TextDrawShowForPlayer(playerid, TeleTD2), TextDrawShowForPlayer(playerid, TeleTD3), TextDrawShowForPlayer(playerid, Textdraw28), TextDrawShowForPlayer(playerid, Textdraw29), TextDrawShowForPlayer(playerid, Textdraw30), TextDrawShowForPlayer(playerid, Textdraw31), TextDrawShowForPlayer(playerid, Textdraw32), TextDrawShowForPlayer(playerid, Textdraw33), TextDrawShowForPlayer(playerid, Textdraw34), TextDrawShowForPlayer(playerid, Textdraw35), TextDrawShowForPlayer(playerid, Textdraw36), TextDrawShowForPlayer(playerid, Textdraw37), TextDrawShowForPlayer(playerid, Textdraw38), TextDrawShowForPlayer(playerid, Textdraw39), TextDrawShowForPlayer(playerid, Textdraw40), TextDrawShowForPlayer(playerid, Textdraw41), TextDrawShowForPlayer(playerid, Textdraw42), TextDrawShowForPlayer(playerid, Textdraw43), //-------------------------------------------------------------------------- TextDrawHideForPlayer(playerid, Textdraw44), TextDrawHideForPlayer(playerid, Textdraw45), TextDrawHideForPlayer(playerid, Textdraw46), TextDrawHideForPlayer(playerid, Textdraw47), TextDrawHideForPlayer(playerid, Textdraw48), TextDrawHideForPlayer(playerid, Textdraw49), TextDrawHideForPlayer(playerid, Textdraw50), TextDrawHideForPlayer(playerid, Textdraw51), TextDrawHideForPlayer(playerid, Textdraw52), TextDrawHideForPlayer(playerid, Textdraw53), //-------------------------------------------------------------------------- TextDrawHideForPlayer(playerid, Textdraw64), TextDrawHideForPlayer(playerid, Textdraw65), TextDrawHideForPlayer(playerid, Textdraw66), TextDrawHideForPlayer(playerid, Textdraw67), TextDrawHideForPlayer(playerid, Textdraw68), TextDrawHideForPlayer(playerid, Textdraw69), TextDrawHideForPlayer(playerid, Textdraw70), TextDrawHideForPlayer(playerid, Textdraw71), TextDrawHideForPlayer(playerid, Textdraw72), TextDrawHideForPlayer(playerid, Textdraw73), TextDrawHideForPlayer(playerid, Textdraw74), TextDrawHideForPlayer(playerid, Textdraw63), Player[playerid][TDs][1] = 1; PlayerPlaySound(playerid, 1063, 0.0, 0.0, 0.0); //-------------------------------------------------------------------------- // -> Other complicated Spawn Settings //-------------------------------------------------------------------------- if(Player[playerid][FirstSpawn] != 123) { //---------------------------------------------------------------------- Player[playerid][FirstSpawn] = 123; //---------------------------------------------------------------------- if(Player[playerid][Fav][1] != -1) SetPlayerSkin(playerid, Player[playerid][Fav][1]); //---------------------------------------------------------------------- else if(Player[playerid][Fav][1] == -1 && Clan[playerid][ID] != 0 && Gang[playerid][ID] == 0) { if(Clan[playerid][Rank] == 1) SetPlayerSkin(playerid, Clan[playerid][Skin][1]); else SetPlayerSkin(playerid, Clan[playerid][Skin][2]); } //---------------------------------------------------------------------- else if(Player[playerid][Fav][1] == -1 && Clan[playerid][ID] == 0 && Gang[playerid][ID] != 0) SetPlayerSkin(playerid, Gang[playerid][Skin]); //---------------------------------------------------------------------- if(Player[playerid][Fav][2] != -1) SetPlayerColor(playerid, Player[playerid][Fav][2]); else if(Player[playerid][Fav][2] == -1 && Clan[playerid][ID] != 0 && Gang[playerid][ID] == 0) SetPlayerColor(playerid, Clan[playerid][Color]); else if(Player[playerid][Fav][2] == -1 && Gang[playerid][ID] != 0 && Clan[playerid][ID] == 0) SetPlayerColor(playerid, Gang[playerid][Color]); //---------------------------------------------------------------------- if(Player[playerid][RPreference] == 2) RadioSwitch(playerid); //---------------------------------------------------------------------- if(strfind(Player[playerid][EMail], "None", true) == 0) RequestEMail(playerid); //---------------------------------------------------------------------- if(Player[playerid][FavPos][1] != 0 && Player[playerid][FavPos][2] != 0 && Player[playerid][FavPos][3] != 0) SetPlayerPos(playerid, Player[playerid][FavPos][1], Player[playerid][FavPos][2], Player[playerid][FavPos][3]); //---------------------------------------------------------------------- else if(Player[playerid][FavPos][1] == 0 && Player[playerid][FavPos][2] == 0 && Player[playerid][FavPos][3] == 0 && Clan[playerid][ID] != 0 && Clan[playerid][Pos][1] != 0 && Clan[playerid][Pos][2] != 0 && Clan[playerid][Pos][3] != 0) SetPlayerPos(playerid, Clan[playerid][Pos][1], Clan[playerid][Pos][2], Clan[playerid][Pos][3]); //---------------------------------------------------------------------- else if(Player[playerid][FavPos][1] == 0 && Player[playerid][FavPos][2] == 0 && Player[playerid][FavPos][3] == 0 && Gang[playerid][ID] != 0 && Gang[playerid][Pos][1] != 0 && Gang[playerid][Pos][2] != 0 && Gang[playerid][Pos][3] != 0) SetPlayerPos(playerid, Gang[playerid][Pos][1], Gang[playerid][Pos][2], Gang[playerid][Pos][3]); //---------------------------------------------------------------------- if(Player[playerid][Fav][10] == -1) SetPlayerTime(playerid, WorldHour, 0); else SetPlayerTime(playerid, Player[playerid][Fav][10], 0); //---------------------------------------------------------------------- if (Clan[playerid][ID] != 0) for(new l = 1; l != 7; l++) GivePlayerWeapon(playerid, Clan[playerid][Weapon][l], 1000); else if (Gang[playerid][ID] != 0) for(new l = 1; l != 7; l++) GivePlayerWeapon(playerid, Gang[playerid][Weapon][l], 1000); else if (Player[playerid][Fav][4] != 0, Player[playerid][Fav][5] != 0, Player[playerid][Fav][6] != 0, Player[playerid][Fav][7] != 0, Player[playerid][Fav][8] != 0, Player[playerid][Fav][9] != 0) for(new l = 4; l != 9; l++) GivePlayerWeapon(playerid, Player[playerid][Fav][l], 1000); } else if(Player[playerid][FirstSpawn] == 123) { //---------------------------------------------------------------------- if(Player[playerid][Fav][1] != -1) SetPlayerSkin(playerid, Player[playerid][Fav][1]); //---------------------------------------------------------------------- else if(Player[playerid][Fav][1] == -1 && Clan[playerid][ID] != 0 && Gang[playerid][ID] == 0) { if(Clan[playerid][Rank] == 1) SetPlayerSkin(playerid, Clan[playerid][Skin][1]); else SetPlayerSkin(playerid, Clan[playerid][Skin][2]); } //---------------------------------------------------------------------- else if(Player[playerid][Fav][1] == -1 && Clan[playerid][ID] == 0 && Gang[playerid][ID] != 0) SetPlayerSkin(playerid, Gang[playerid][Skin]); //---------------------------------------------------------------------- if(Player[playerid][RPreference] == 2) RadioSwitch(playerid); //---------------------------------------------------------------------- if(Player[playerid][InDM] != 0) DMSwitch(playerid); //---------------------------------------------------------------------- if(Player[playerid][FavPos][1] != 0 && Player[playerid][FavPos][2] != 0 && Player[playerid][FavPos][3] != 0) SetPlayerPos(playerid, Player[playerid][FavPos][1], Player[playerid][FavPos][2], Player[playerid][FavPos][3]); //---------------------------------------------------------------------- else if(Player[playerid][FavPos][1] == 0 && Player[playerid][FavPos][2] == 0 && Player[playerid][FavPos][3] == 0 && Clan[playerid][ID] != 0 && Clan[playerid][Pos][1] != 0 && Clan[playerid][Pos][2] != 0 && Clan[playerid][Pos][3] != 0) SetPlayerPos(playerid, Clan[playerid][Pos][1], Clan[playerid][Pos][2], Clan[playerid][Pos][3]); //---------------------------------------------------------------------- else if(Player[playerid][FavPos][1] == 0 && Player[playerid][FavPos][2] == 0 && Player[playerid][FavPos][3] == 0 && Gang[playerid][ID] != 0 && Gang[playerid][Pos][1] != 0 && Gang[playerid][Pos][2] != 0 && Gang[playerid][Pos][3] != 0) SetPlayerPos(playerid, Gang[playerid][Pos][1], Gang[playerid][Pos][2], Gang[playerid][Pos][3]); //---------------------------------------------------------------------- if(Player[playerid][Fav][10] == -1) SetPlayerTime(playerid, WorldHour, 0); else SetPlayerTime(playerid, Player[playerid][Fav][10], 0); //---------------------------------------------------------------------- if (Clan[playerid][ID] != 0) for(new l = 1; l != 7; l++) GivePlayerWeapon(playerid, Clan[playerid][Weapon][l], 1000); else if (Gang[playerid][ID] != 0) for(new l = 1; l != 7; l++) GivePlayerWeapon(playerid, Gang[playerid][Weapon][l], 1000); else if (Player[playerid][Fav][4] != 0, Player[playerid][Fav][5] != 0, Player[playerid][Fav][6] != 0, Player[playerid][Fav][7] != 0, Player[playerid][Fav][8] != 0, Player[playerid][Fav][9] != 0) for(new l = 4; l != 9; l++) GivePlayerWeapon(playerid, Player[playerid][Fav][l], 1000); } //-------------------------------------------------------------------------- // for(new i = 1; i < MAX_GANGS; i++) GangZoneShowForPlayer(playerid, Zone[i][ID], ColorsList[GangInfo[Teritories[i][owner]][GangColor]]); //-------------------------------------------------------------------------- return 1; }