Jump to content

Stephen

Membru
  • Posts

    52
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Stephen

  1. Începe așa; public OnPlayerText(playerid, text[]) { new giver[MAX_PLAYER_NAME]; new sendername[MAX_PLAYER_NAME]; new giveplayer[MAX_PLAYER_NAME]; new tmp[256]; new string[256]; new giveplayerid; if ( AFKCheck[ playerid ] >= AFK_TIME ) IsBack( playerid ); AFKCheck[ playerid ] = 0; și se termină abia aici; if (realchat) { if(gPlayerLogged[playerid] == 0) { return 0; } if(PlayerInfo[playerid][pAdmin] >= 0) { format(string, sizeof(string), " %s ", text); SetPlayerChatBubble(playerid, string, 0xF6F6F6FF, 30.0, 8000); } //ApplyAnimation(playerid,"PED","IDLE_CHAT",4.1,0,1,1,1,1); ChatColor(20.0, playerid,string); return 0; } return 1; }
  2. else if (PlayerToPoint(8.0, playerid,1267.663208,-781.323242,1091.906250))//Clanul sadoveanu /exit hq { if (PlayerData[playerid][pMember] == 11 || PlayerData[playerid][pLeader] == 11) { GameTextForPlayer(playerid, "~w~Ai iesit din Clanul Sadoveanu!", 5000, 1); SetPlayerInterior(playerid,0); SetPlayerPos(playerid,2495.3325,-1690.7804,14.7656); } } Încearcă să pui asta la /exit
  3. Dacă fac asta primesc din nou eroare de la pawno compiler.
  4. Acela se numește ODOMETER. Dacă ai serverul GF poți adăuga cu ușurință un speedometer , fiindcă este cel mai folosit. De foarte multe ori se regăsesc diferite bug-uri în privința Odometer-ului, așa că îți propun speedometer-ul, este mult mai eficient.
  5. Am rezolvat. Mulțumesc oricum, WopsS. P.S: Au trecut 24h de la postarea de mai sus.
  6. Am făcut backup înainte să încep să lucrez la DMV, deci nu-i de la altceva.
  7. Ai încercat să folosești alt sistem de vamă, sau să ștergi și să o iei iar la de la zero?
  8. Am reușit să scap de problema de mai sus, dar mă confrunt cu alta. (51558) : warning 225: unreachable code Linia problemă:
  9. Adaugă #include <mxINI05> dacă nu funcționează ceea ce a spus Gireada.
  10. Le-am folosit pe toate. Mai există o metodă asemănătoare și nici aceea nu a mers. Am ratat două paranteze din câte am priceput de la acel program, dar mi-a dat liniile greșite. M-a trimis undeva unde nu-i nicio legătură cu DMV
  11. (69665) : error 021: symbol already defined: "SetPlayerInterior" (69670) : error 021: symbol already defined: "SetPlayerFree" Caută SetPlayerInterior și SetPlayerFree - le ai pe fiecare de două ori definite și nu e ok. Caută „SetPlayerInterior” te uiți dacă îl ai de două ori, iar dacă îl ai îl ștergi, astfel încât să rămână în gm doar o singură dată. # idem și la SetPlayerFree P.S: Încearcă asta if(strcmp(cmd, "/surrender", true) == 0) { if(IsPlayerConnected(playerid)) { if((WantedLevel[playerid] >= 1) || (WantedLevel[playerid] <= 3)) { if(!PlayerToPoint(2.0, playerid, ) || PlayerToPoint(2.0, playerid, )) { SCM(playerid, COLOR_WHITE, "You don't a surrender place"); return 1; } GetPlayerName(playerid, sendername, sizeof(sendername)); GivePlayerMoney(playerid, -moneys); ResetPlayerWeapons(playerid); format(string, sizeof(string), "%s had surrender having wanted %d ", sendername ,WantedLevel[playerid]); OccAnunt(COLOR_LIGHTRED, string); SetPlayerInterior(playerid, 6); SetPlayerPos(playerid,264.2164,82.0997,1001.0391); InfoJucator[playerid][zJilava] = 1; InfoJucator[playerid][zArestat] += 1; InfoJucator[playerid][zJilavaTimp] = (WantedLevel[playerid])*(120); SetPlayerFree(playerid,playerid, "Got Arrested"); SetPlayerWantedLevel(playerid, 0); WantedPoints[playerid] = 0; WantedLevel[playerid] = 0; WantedJail[playerid] = 1; } else { SCM(playerid, COLOR_WHITE, "Must have wanted 1 or your wanted level is more than 3!"); } } return 1; }
  12. Trebuie să ai ultima versiune. Dacă ai server care rulează pe 0.3z bagi ultima versiune de mxINI, nu versiunea de la 0.3x,d,etc. Șterge include din .pwn, șterge .inc din pawno - include și pune-le iar pe rând. Întâi .inc în pawno - include și apoi pune #include <mxINI> la tine în gm
  13. Ai nevoie de mxINI pe care îl pui în pawno - include
  14. Problemă întâlnită (descriere): O paranteză sau mai multe mâncate. Ero(area / rile) / warning-(ul / urile): error 004: function "SetPlayerToTeamColor" is not implemented error 004: function "SetPlayerToTeamColor" is not implemented error 004: function "SetPlayerToTeamColor" is not implemented error 004: function "PlayerToPoint" is not implemented error 004: function "PlayerToPoint" is not implemented error 004: function "PlayerToPoint" is not implemented error 004: function "PlayerToPoint" is not implemented error 004: function "PlayerToPoint" is not implemented error 004: function "PlayerToPoint" is not implemented error 004: function "PlayerToPoint" is not implemented error 004: function "PlayerToPoint" is not implemented error 004: function "PlayerToPoint" is not implemented error 004: function "PlayerToPoint" is not implemented error 004: function "PlayerToPoint" is not implemented error 004: function "PlayerToPoint" is not implemented error 004: function "PlayerToPoint" is not implemented error 004: function "PlayerToPoint" is not implemented error 004: function "PlayerToPoint" is not implemented error 004: function "PlayerToPoint" is not implemented error 004: function "PlayerToPoint" is not implemented error 004: function "PlayerToPoint" is not implemented error 004: function "PlayerToPoint" is not implemented error 004: function "SendIRCMessage" is not implemented error 004: function "SendIRCMessage" is not implemented error 004: function "SaveCK" is not implemented error 004: function "SavePapers" is not implemented Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 26 Errors. Liniile de cod / sursa / script-ul: //========================[Sistem DMV]========================================== new dmvtimer1; new DMVPrepare[MAX_PLAYERS]; new DMV1; new DMV2; new DMV3; new DMV4; new DMV5; new DMVT[MAX_PLAYERS]; //========================[Sistem DMV]========================================== public examcar(carid) { if(carid == DMV1 || carid == DMV2 || carid == DMV3 || carid == DMV4 || carid == DMV5) { return 1; } return 0; } DMVPrepare[playerid] = 0; //===============================================================================================// //---DMV---// //===============================================================================================// else if(CP[playerid]==80) { DisablePlayerCheckpoint(playerid); } else if(CP[playerid] == 99) { DisablePlayerCheckpoint(playerid); CP[playerid] = 0; } else if(CP[playerid] == 100) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,1039.5325,-1543.7972,13.3583,5.0); CP[playerid] = 101; } else if(CP[playerid] == 101) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,1061.8568,-1459.1182,13.3682,5.0); CP[playerid] = 102; } else if(CP[playerid] == 102) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,1027.7583,-1393.8885,13.1695,5.0); CP[playerid] = 103; } else if(CP[playerid] == 103) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,876.9847,-1394.3779,13.2167,5.0); CP[playerid] = 104; } else if(CP[playerid] == 104) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,794.8256,-1426.9683,13.3828,5.0); CP[playerid] = 105; } else if(CP[playerid] == 105) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,789.3463,-1590.5248,13.3828,5.0); CP[playerid] = 106; } else if(CP[playerid] == 106) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,876.4854,-1579.9303,13.3828,5.0); CP[playerid] = 107; } else if(CP[playerid] == 107) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,987.3360,-1575.1237,13.3828,5.0); CP[playerid] = 108; } else if(CP[playerid] == 108) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,1039.5325,-1543.7972,13.3583,5.0); CP[playerid] = 109; } else if(CP[playerid] == 109) { new currentveh; currentveh = GetPlayerVehicleID(playerid); if(IsPlayerInAnyVehicle(playerid)) { SetVehicleToRespawn(currentveh); } GetPlayerName(playerid, name, sizeof(name)); DisablePlayerCheckpoint(playerid); PlayerInfo[playerid][pCarLic] = 1; TakingLesson[playerid] = 0; SendClientMessage(playerid,COLOR_BLUE,"========================================================"); SendClientMessage(playerid,COLOR_GREEN,"Felicitari, ai trecut testul !"); SendClientMessage(playerid,COLOR_GREEN,"Acum ai primit licenta de condus !"); SendClientMessage(playerid,COLOR_BLUE,"========================================================"); CP[playerid] = 0; } if(newcar == DMV1 || newcar == DMV2 || newcar == DMV3 || newcar == DMV4 || newcar == DMV5) { if(TakingLesson[playerid] == 1) { KillTimer(dmvtimer1); SendClientMessage(playerid,COLOR_RED,"DMV: {ffffff}Urmeaza checkpointurile pentru a trece examenul"); // new name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); CP[playerid] = 100; SetPlayerCheckpoint(playerid, 1039.5325,-1543.7972,13.3583,5.0); } else { SendClientMessage(playerid,COLOR_GREY,"* This car is for DMV Testers !"); RemovePlayerFromVehicle(playerid); } } if(DMVPrepare >= 1) { DMVPrepare += 1; if(DMVPrepare == 3) { TogglePlayerControllable(i, 0); SendClientMessage(i,COLOR_LIGHTBLUE,""); SendClientMessage(i,COLOR_LIGHTBLUE,""); SendClientMessage(i,COLOR_LIGHTBLUE,""); SendClientMessage(i,COLOR_LIGHTBLUE,""); SendClientMessage(i,COLOR_LIGHTBLUE,""); SendClientMessage(i,COLOR_LIGHTBLUE,""); SendClientMessage(i,COLOR_LIGHTBLUE,"{669999}||{FFFF00}================[ {669999}Examen {FF0A00}]================{669999}||"); SendClientMessage(i,COLOR_WHITE,"Bine ai venit,acuma esti pe cale sa dai de Permis!"); SendClientMessage(i,COLOR_LIGHTBLUE,"Daca vrei sa treci testul scris,fi atent la legislatie!"); SendClientMessage(i,COLOR_LIGHTBLUE,"{669999}||{FFFF00}================[ {669999}Examen {FF0A00}]================{669999}||"); } else if(DMVPrepare == 7) { SendClientMessage(i,COLOR_LIGHTBLUE,""); SendClientMessage(i,COLOR_LIGHTBLUE,""); SendClientMessage(i,COLOR_LIGHTBLUE,""); SendClientMessage(i,COLOR_LIGHTBLUE,""); SendClientMessage(i,COLOR_LIGHTBLUE,""); SendClientMessage(i,COLOR_LIGHTBLUE,""); SendClientMessage(i,COLOR_LIGHTBLUE,"{669999}||{FFFF00}================[ {669999}Examen {FFFF00}]================{669999}||"); SendClientMessage(i,COLOR_WHITE,"In primul rand licenta nu ti-o poate suspenda oricine!"); SendClientMessage(i,COLOR_LIGHTBLUE,"Doar un membru Police Departament iti poate suspenda licenta!"); SendClientMessage(i,COLOR_LIGHTBLUE,"{669999}||{FFFF00}================[ {669999}Examen {FFFF00}]================{669999}||"); } else if(DMVPrepare == 18) { SendClientMessage(i,COLOR_LIGHTBLUE,""); SendClientMessage(i,COLOR_LIGHTBLUE,""); SendClientMessage(i,COLOR_LIGHTBLUE,""); SendClientMessage(i,COLOR_LIGHTBLUE,""); SendClientMessage(i,COLOR_LIGHTBLUE,""); SendClientMessage(i,COLOR_LIGHTBLUE,""); SendClientMessage(i,COLOR_LIGHTBLUE,"{669999}||{FFFF00}================[ {669999}Examen {FFFF00}]================{669999}||"); SendClientMessage(i,COLOR_WHITE,"Daca un Politist iti cere sa tragi pe dreapta,asta vei face!"); SendClientMessage(i,COLOR_LIGHTBLUE,"Nu fugi de el,Te opresti regulamentar pe partea dreapta!"); SendClientMessage(i,COLOR_LIGHTBLUE,"{669999}||{FFFF00}================[ {669999}Examen {FFFF00}]================{669999}||"); } else if(DMVPrepare == 30) { SendClientMessage(i,COLOR_LIGHTBLUE,""); SendClientMessage(i,COLOR_LIGHTBLUE,""); SendClientMessage(i,COLOR_LIGHTBLUE,""); SendClientMessage(i,COLOR_LIGHTBLUE,""); SendClientMessage(i,COLOR_LIGHTBLUE,""); SendClientMessage(i,COLOR_LIGHTBLUE,""); SendClientMessage(i,COLOR_LIGHTBLUE,"{669999}||{FFFF00}================[ {669999}Examen {FFFF00}]================{669999}||"); SendClientMessage(i,COLOR_WHITE,"Daca vezi o masina in flacari suna la 911!"); SendClientMessage(i,COLOR_LIGHTBLUE,"Ei vor veni in cel mai scurt timp,Stai la departare de foc"); SendClientMessage(i,COLOR_LIGHTBLUE,"{669999}||{FFFF00}================[ {669999}Examen {FFFF00}]================{669999}||"); } else if(DMVPrepare == 35) { SendClientMessage(i,COLOR_LIGHTBLUE,""); SendClientMessage(i,COLOR_LIGHTBLUE,""); SendClientMessage(i,COLOR_LIGHTBLUE,""); SendClientMessage(i,COLOR_LIGHTBLUE,""); SendClientMessage(i,COLOR_LIGHTBLUE,""); SendClientMessage(i,COLOR_LIGHTBLUE,""); SendClientMessage(i,COLOR_LIGHTBLUE,"{669999}||{FFFF00}================[ {669999}Examen {FFFF00}]================{669999}||"); SendClientMessage(i,COLOR_WHITE,"Asta a fost tot ! Urmeaza testul,intrebarile au 4 variante de raspuns (A,B,C,D)"); SendClientMessage(i,COLOR_LIGHTBLUE,"Numai una din ele este corecta.Iti uram succes !"); SendClientMessage(i,COLOR_LIGHTBLUE,"{669999}||{FFFF00}================[ {669999}Examen {FFFF00}]================{669999}||"); DMVPrepare = 0; SetTimerEx("DMVTest1", 8000, 0, "d", i); } } //====================================[Drive/Motor/Vehicle]================================ DMV1 = AddStaticVehicle(445,1023.6622,-1548.5857,13.4199,270.1102,1,1); // DMV1 DMV2 = AddStaticVehicle(445,1023.6041,-1551.9958,13.4381,269.0005,1,1); // DMV2 DMV3 = AddStaticVehicle(445,1023.5645,-1555.2330,13.4485,268.0548,1,1); // DMV3 DMV4 = AddStaticVehicle(445,1023.5852,-1558.3516,13.4443,270.1723,1,1); // DMV4 DMV5 = AddStaticVehicle(445,1029.9929,-1534.4114,13.2088,177.1790,1,1); // DMV5 AddStaticPickup(1239, 23, 1018.2375,-1558.3032,14.8657); // dmv //===============================================================================================// //---Comanda: /examen---// //===============================================================================================// if(strcmp(cmd, "/examen", true) == 0) { if(PlayerToPoint(5.0,playerid,1018.2375,-1558.3032,14.8657)) { if(GetPlayerMoney(playerid) >= 10000) { if(PlayerInfo[playerid][pCarLic] == 0) { if(DMVPrepare[playerid] == 0) { DMVPrepare[playerid] = 1; SetPlayerHealth(playerid, 100); GivePlayerMoney(playerid, -1000); SendClientMessage(playerid,COLOR_GREY,"Acum vei da examenul de condus. [-10000$]"); } else { SendClientMessage(playerid,COLOR_GREY,"Deja dai testul !"); } } else { SendClientMessage(playerid,COLOR_GREY,"Ai deja carnetul !"); } } else { SendClientMessage(playerid,COLOR_GREY,"N-ai bani pentru a da testul !"); } } } //===============================================================================================// if(DMVT[playerid] > 0) { new idx; tmp = strtok(text, idx); if(DMVT[playerid] == 1) { if ((strcmp("A", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("A"))) { SendClientMessage(playerid,COLOR_LIGHTRED,"Raspuns gresit,Ai picat sala!"); DMVT[playerid] = 0; TogglePlayerControllable(playerid, 1); return 0; } else if ((strcmp("B", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("B"))) { SendClientMessage(playerid,COLOR_LIGHTGREEN,"Raspuns corect,trecem la urmatoarea intrebare !"); SetTimerEx("DMVTest2", 5000, 0, "d", playerid); return 0; } else if ((strcmp("C", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("C"))) { SendClientMessage(playerid,COLOR_LIGHTRED,"Raspuns gresit,Ai picat sala!"); DMVT[playerid] = 0; TogglePlayerControllable(playerid, 1); return 0; } else if ((strcmp("D", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("D"))) { SendClientMessage(playerid,COLOR_LIGHTRED,"Raspuns gresit.Ai picat testul !"); DMVT[playerid] = 0; TogglePlayerControllable(playerid, 1); return 0; } else { SendClientMessage(playerid,COLOR_LIGHTBLUE,"{669999}||{FFFF00}================[ {669999}Examen {FFFF00}]================{669999}||"); SendClientMessage(playerid,COLOR_RED,"Cand am voie sa conduc pe partea stanga ?"); SendClientMessage(playerid,COLOR_YELLOW,"A:{FFFFFF} Cand vreau eu."); SendClientMessage(playerid,COLOR_YELLOW,"B:{FFFFFF} Cand drumul din dreapta este blocat. "); SendClientMessage(playerid,COLOR_YELLOW,"C:{FFFFFF} Cand imi zice cineva sa o fac."); SendClientMessage(playerid,COLOR_YELLOW,"D:{FFFFFF} Mereu. "); SendClientMessage(playerid,COLOR_LIGHTBLUE,"{669999}||{FFFF00}================[ {669999}Examen {FFFF00}]================{669999}||"); } } if(DMVT[playerid] == 2) { if ((strcmp("A", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("A"))) { SendClientMessage(playerid,COLOR_LIGHTRED,"Raspuns gresit,Ai picat sala!"); DMVT[playerid] = 0; TogglePlayerControllable(playerid, 1); return 0; } else if ((strcmp("B", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("B"))) { SendClientMessage(playerid,COLOR_LIGHTRED,"Raspuns gresit,Ai picat sala!"); DMVT[playerid] = 0; TogglePlayerControllable(playerid, 1); return 0; } else if ((strcmp("C", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("C"))) { SendClientMessage(playerid,COLOR_LIGHTGREEN,"Raspuns corect,trecem la urmatoarea intrebare !"); SetTimerEx("DMVTest3", 5000, 0, "d", playerid); return 0; } else if ((strcmp("D", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("D"))) { SendClientMessage(playerid,COLOR_LIGHTRED,"Raspuns gresit,Ai picat sala!!"); DMVT[playerid] = 0; TogglePlayerControllable(playerid, 1); return 0; } else { SendClientMessage(playerid,COLOR_RED,"");SendClientMessage(playerid,COLOR_RED,"");SendClientMessage(playerid,COLOR_RED,"");SendClientMessage(playerid,COLOR_RED,"");SendClientMessage(playerid,COLOR_RED,"");SendClientMessage(playerid,COLOR_RED,""); SendClientMessage(playerid,COLOR_LIGHTBLUE,"{669999}||{FFFF00}================[ {669999}Examen {FFFF00}]================{669999}||"); SendClientMessage(playerid,COLOR_RED,"Ce fac daca un politist imi spune sa ma opresc ?"); SendClientMessage(playerid,COLOR_YELLOW,"A:{FFFFFF} Fug sa nu ma prinda. "); SendClientMessage(playerid,COLOR_YELLOW,"B:{FFFFFF} Ma dau jos si il bat. "); SendClientMessage(playerid,COLOR_YELLOW,"C:{FFFFFF} Ma opresc regulamentar pe partea dreapta. "); SendClientMessage(playerid,COLOR_YELLOW,"D:{FFFFFF} Dau /quit. "); SendClientMessage(playerid,COLOR_LIGHTBLUE,"{669999}||{FFFF00}================[ {669999}Examen {FFFF00}]================{669999}||"); } } if(DMVT[playerid] == 3) { if ((strcmp("A", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("A"))) { SendClientMessage(playerid,COLOR_LIGHTRED,"Raspuns gresit,Ai picat sala !"); DMVT[playerid] = 0; TogglePlayerControllable(playerid, 1); return 0; } else if ((strcmp("B", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("B"))) { SendClientMessage(playerid,COLOR_LIGHTRED,"Raspuns gresit,Ai picat sala !"); DMVT[playerid] = 0; TogglePlayerControllable(playerid, 1); return 0; } else if ((strcmp("C", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("C"))) { SendClientMessage(playerid,COLOR_LIGHTRED,"Raspuns gresit,Ai picat sala !"); DMVT[playerid] = 0; TogglePlayerControllable(playerid, 1); return 0; } else if ((strcmp("D", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("D"))) { SendClientMessage(playerid,COLOR_LIGHTGREEN,"Raspuns corect,trecem la urmatoarea intrebare !"); SetTimerEx("DMVTest4", 5000, 0, "d", playerid); return 0; } else { SendClientMessage(playerid,COLOR_RED,"");SendClientMessage(playerid,COLOR_RED,"");SendClientMessage(playerid,COLOR_RED,"");SendClientMessage(playerid,COLOR_RED,"");SendClientMessage(playerid,COLOR_RED,"");SendClientMessage(playerid,COLOR_RED,""); SendClientMessage(playerid,COLOR_LIGHTBLUE,"{669999}||{FFFF00}================[ {669999}Examen {FFFF00}]================{669999}||"); SendClientMessage(playerid,COLOR_RED,"Ce fac cand cineva imi fura masina ?"); SendClientMessage(playerid,COLOR_YELLOW,"A:{FFFFFF} Fug dupa el sa-l bat. "); SendClientMessage(playerid,COLOR_YELLOW,"B:{FFFFFF} Plec mai departe. "); SendClientMessage(playerid,COLOR_YELLOW,"C:{FFFFFF} Il injur. "); SendClientMessage(playerid,COLOR_YELLOW,"D:{FFFFFF} Sun la Politie(/call 911). "); SendClientMessage(playerid,COLOR_LIGHTBLUE,"{669999}||{FFFF00}================[ {669999}Examen {FFFF00}]================{669999}||"); } } if(DMVT[playerid] == 4) { if ((strcmp("A", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("A"))) { SendClientMessage(playerid,COLOR_LIGHTRED,"Raspuns gresit,Ai picat sala!"); DMVT[playerid] = 0; TogglePlayerControllable(playerid, 1); return 0; } else if ((strcmp("B", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("B"))) { SendClientMessage(playerid,COLOR_LIGHTRED,"Raspuns gresit,Ai picat sala!"); DMVT[playerid] = 0; TogglePlayerControllable(playerid, 1); return 0; } else if ((strcmp("C", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("C"))) { SendClientMessage(playerid,COLOR_RED,"");SendClientMessage(playerid,COLOR_RED,"");SendClientMessage(playerid,COLOR_RED,"");SendClientMessage(playerid,COLOR_RED,"");SendClientMessage(playerid,COLOR_RED,"");SendClientMessage(playerid,COLOR_RED,""); SendClientMessage(playerid,COLOR_LIGHTBLUE,"{669999}||{FF0A00}================[ {669999}Examen {FF0A00}]================{669999}||"); SendClientMessage(playerid,COLOR_LIGHTBLUE,"Raspuns corect.Ai trecut testul din sala !"); SendClientMessage(playerid,COLOR_YELLOW,"SERVER: {FFFFFF}Du-te afara si ia o masina pentru a da traseul !"); SendClientMessage(playerid,COLOR_LIGHTBLUE,"{669999}||{FF0A00}================[ {669999}Examen {FF0A00}]================{669999}||"); TogglePlayerControllable(playerid, 1); DMVT[playerid] = 0; TakingLesson[playerid] = 1; GetPlayerName(playerid, sendername, sizeof(sendername)); return 0; } else if ((strcmp("D", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("D"))) { SendClientMessage(playerid,COLOR_LIGHTRED,"Raspuns gresit,Ai picat sala!"); DMVT[playerid] = 0; TogglePlayerControllable(playerid, 1); return 0; } else { SendClientMessage(playerid,COLOR_RED,"");SendClientMessage(playerid,COLOR_RED,"");SendClientMessage(playerid,COLOR_RED,"");SendClientMessage(playerid,COLOR_RED,"");SendClientMessage(playerid,COLOR_RED,"");SendClientMessage(playerid,COLOR_RED,""); SendClientMessage(playerid,COLOR_LIGHTBLUE,"{669999}||{FFFF00}================[ {669999}Examen {FFFF00}]================{669999}||"); SendClientMessage(playerid,COLOR_RED,"Cand am voie sa fac drive-by?"); SendClientMessage(playerid,COLOR_YELLOW,"A:{FFFFFF} Cand vreau. "); SendClientMessage(playerid,COLOR_YELLOW,"B:{FFFFFF} Cand drumul este blocat. "); SendClientMessage(playerid,COLOR_YELLOW,"C:{FFFFFF} Nu am voie sa fac drive-by. "); SendClientMessage(playerid,COLOR_YELLOW,"D:{FFFFFF} Mereu. "); SendClientMessage(playerid,COLOR_LIGHTBLUE,"{669999}||{FFFF00}================[ {669999}Examen {FF0A00}]================{669999}||"); } } } //===============================================================================================// //---DMV---// //===============================================================================================// if (newkeys & KEY_SECONDARY_ATTACK) { if(IsPlayerConnected(playerid)) { if (PlayerToPoint(2.0, playerid, 893.6019,-1635.7104,14.9296)) { SendClientMessage(playerid,COLOR_WHITE,"Welcome to the DMV!"); SetPlayerPos(playerid,834.6571,7.3710,1004.1870); SetPlayerInterior(playerid, 3); } if (PlayerToPoint(2.0, playerid,834.6571,7.3710,1004.1870)) { SetPlayerPos(playerid,893.6019,-1635.7104,14.9296); SetPlayerInterior(playerid, 0); SendClientMessage(playerid,COLOR_WHITE,"GoodBye !"); } } } //===============================================================================================// //---DMV Test---// //===============================================================================================// public DMVTest1(playerid) { SendClientMessage(playerid,COLOR_RED,"");SendClientMessage(playerid,COLOR_RED,"");SendClientMessage(playerid,COLOR_RED,"");SendClientMessage(playerid,COLOR_RED,"");SendClientMessage(playerid,COLOR_RED,"");SendClientMessage(playerid,COLOR_RED,""); SendClientMessage(playerid,COLOR_LIGHTBLUE,"{669999}||{FFFF00}================[ {669999}Examen {FFFF00}]================{669999}||"); SendClientMessage(playerid,COLOR_RED,"Cand am voie sa conduc pe partea stanga ?"); SendClientMessage(playerid,COLOR_YELLOW,"A:{FFFFFF} Cand vreau eu."); SendClientMessage(playerid,COLOR_YELLOW,"B:{FFFFFF} Cand drumul din dreapta este blocat. "); SendClientMessage(playerid,COLOR_YELLOW,"C:{FFFFFF} Cand imi zice cineva sa o fac."); SendClientMessage(playerid,COLOR_YELLOW,"D:{FFFFFF} Mereu. "); SendClientMessage(playerid,COLOR_LIGHTBLUE,"{669999}||{FFFF00}================[ {669999}Examen {FFFF00}]================{669999}||"); DMVT[playerid] = 1; } public DMVTest2(playerid) { SendClientMessage(playerid,COLOR_RED,"");SendClientMessage(playerid,COLOR_RED,"");SendClientMessage(playerid,COLOR_RED,"");SendClientMessage(playerid,COLOR_RED,"");SendClientMessage(playerid,COLOR_RED,"");SendClientMessage(playerid,COLOR_RED,""); SendClientMessage(playerid,COLOR_LIGHTBLUE,"{669999}||{FFFF00}================[ {669999}Examen {FFFF00}]================{669999}||"); SendClientMessage(playerid,COLOR_RED,"Ce fac daca un politist imi spune sa ma opresc ?"); SendClientMessage(playerid,COLOR_YELLOW,"A:{FFFFFF} Fug sa nu ma prinda. "); SendClientMessage(playerid,COLOR_YELLOW,"B:{FFFFFF} Ma dau jos si il bat. "); SendClientMessage(playerid,COLOR_YELLOW,"C:{FFFFFF} Ma opresc regulamentar pe partea dreapta. "); SendClientMessage(playerid,COLOR_YELLOW,"D:{FFFFFF} Dau /quit. "); SendClientMessage(playerid,COLOR_LIGHTBLUE,"{669999}||{FFFF00}================[ {669999}Examen {FFFF00}]================{669999}||"); DMVT[playerid] = 2; } public DMVTest3(playerid) { SendClientMessage(playerid,COLOR_RED,"");SendClientMessage(playerid,COLOR_RED,"");SendClientMessage(playerid,COLOR_RED,"");SendClientMessage(playerid,COLOR_RED,"");SendClientMessage(playerid,COLOR_RED,"");SendClientMessage(playerid,COLOR_RED,""); SendClientMessage(playerid,COLOR_LIGHTBLUE,"{669999}||{FFFF00}================[ {669999}Examen {FFFF00}]================{669999}||"); SendClientMessage(playerid,COLOR_RED,"Ce fac cand cineva imi fura masina ?"); SendClientMessage(playerid,COLOR_YELLOW,"A:{FFFFFF} Fug dupa el sa-l bat. "); SendClientMessage(playerid,COLOR_YELLOW,"B:{FFFFFF} Plec mai departe. "); SendClientMessage(playerid,COLOR_YELLOW,"C:{FFFFFF} Il injur. "); SendClientMessage(playerid,COLOR_YELLOW,"D:{FFFFFF} Sun la Politie(/call 911). "); SendClientMessage(playerid,COLOR_LIGHTBLUE,"{669999}||{FFFF00}================[ {669999}Examen {FFFF00}]================{669999}||"); DMVT[playerid] = 3; } public DMVTest4(playerid) { SendClientMessage(playerid,COLOR_RED,"");SendClientMessage(playerid,COLOR_RED,"");SendClientMessage(playerid,COLOR_RED,"");SendClientMessage(playerid,COLOR_RED,"");SendClientMessage(playerid,COLOR_RED,"");SendClientMessage(playerid,COLOR_RED,""); SendClientMessage(playerid,COLOR_LIGHTBLUE,"{669999}||{FFFF00}================[ {669999}Examen {FFFF00}]================{669999}||"); SendClientMessage(playerid,COLOR_RED,"Cand am voie sa fac drive-by?"); SendClientMessage(playerid,COLOR_YELLOW,"A:{FFFFFF} Cand vreau. "); SendClientMessage(playerid,COLOR_YELLOW,"B:{FFFFFF} Cand drumul este blocat. "); SendClientMessage(playerid,COLOR_YELLOW,"C:{FFFFFF} Nu am voie sa fac drive-by. "); SendClientMessage(playerid,COLOR_YELLOW,"D:{FFFFFF} Mereu. "); SendClientMessage(playerid,COLOR_LIGHTBLUE,"{669999}||{FFFF00}================[ {669999}Examen {FF0A00}]================{669999}||"); DMVT[playerid] = 4; } public dmventercartimer(playerid) { TakingLesson[playerid] = 0; SendClientMessage(playerid,COLOR_LIGHTRED,"SERVER: {FFFFFF}Ai picat testul.Nu ai intrat in masina ca sa dai traseul !"); } Imagini / Video (optional): - Aţi încercat să rezolvaţi singur?: Da
  15. Ce am greșit la așezare? Am eroarea „Pawn Compiler library has stopped working” Cu siguranță am mâncat o paranteză sau am pus-o greșit. Mă poți ajuta?
  16. Oare problema cu care mă confrunt are legătură cumva cu aceste linii? new ZoneInfo[16][eZone]; new Zones[16]; Am lăsat 16, n-am umblat la ele, are ceva? (16 = vla, gst, lsv și blls) - fără tcf și tsf
  17. Nume: Flavius Ștefan Descriere tutorial: Acum ceva timp am conspectat pe un server mai multe chestii pentru a adăuga destule update-uri la propriul meu server. Un mic amănunt ce m-a întristat că nu i-am putut da de cap a fost acela cu chat-ul. Exemplu: [POWER USER] Costel: -say- [VIP] Ion: -say- [EXTRA VIP] Liviu: -say- Am încercat și eu să fac ceva de genul acesta; să apară pe chat public atunci când tastezi și aplici cu enter, dar nu mi-a reușit. Nu am găsit niciun tutorial în Română pe google, iar cele în Engleză nu au fost fără erori la compilare. Ca să înțelegeți mai pe scurt, am nevoie de un tutorial pentru chat. Vreau să apară donate rank-ul de pe server înainte de nume. (doar când vorbești pe chat) Mulțumesc!
  18. Cu plăcere. P.S: Marchează topicul ca și rezolvat.
  19. Ai liniile acestea, presupun. if (newkeys==KEY_SECONDARY_ATTACK) { if(PlayerInfo[playerid][pMember] == 0 || PlayerInfo[playerid][pLeader] == 0) { if(IsPlayerConnected(playerid)) { if(PlayerToPoint(2, playerid,COORDONATE EXTERIOR - AddStaticPickup)) { SetPlayerPos(playerid,COORDONATE INTERIOR - AddStaticPickup); SetPlayerInterior(playerid,AICI TREBUIE SA AI ID-UL DE LA INTERIOR); Verifică dacă id-ul de la SetplayerInterior se potrivește cu interiorul ales de tine de aici
  20. new VarriorsLosAztecs; new GroveStreet; new Ballas; new LosSantosVagos; new TheCorleoneFamily; new TheStracciFamily; Sunt toate 6 puse la locul lor.
  21. if(strcmp(cmd,"/takezone",true)==0) { if(PlayerInfo[playerid][pLeader] == 5 || PlayerInfo[playerid][pLeader] == 6 || PlayerInfo[playerid][pLeader] == 12 || PlayerInfo[playerid][pLeader] == 13 || PlayerInfo[playerid][pLeader] == 14 || PlayerInfo[playerid][pLeader] == 15) { for(new z=0; z<sizeof(ZoneInfo); z++) { if(IsPlayerInZone(playerid,z)) { if(takezone == 1) { SendClientMessage(playerid, COLOR_GRAD1, " The Gang war is allready started"); } else { new leader[30]; format(leader,sizeof(leader),"%s" ,ZoneInfo[GetPlayerZone(playerid)][zOwner]); #define min 30000 GetPlayerName(playerid, sendername, sizeof(sendername)); if(ZoneInfo[GetPlayerZone(playerid)][zTeam] == 5 && PlayerInfo[playerid][pLeader] == 5) { SendClientMessage(playerid, COLOR_GRAD1, " Error. You are in an area of your"); } if(ZoneInfo[GetPlayerZone(playerid)][zTeam] == 6 && PlayerInfo[playerid][pLeader] == 6) { SendClientMessage(playerid, COLOR_GRAD1, " Error. You are in an area of your"); } if(ZoneInfo[GetPlayerZone(playerid)][zTeam] == 12 && PlayerInfo[playerid][pLeader] == 12) { SendClientMessage(playerid, COLOR_GRAD1, " Error. You are in an area of your"); } else if(ZoneInfo[GetPlayerZone(playerid)][zTeam] == 13 && PlayerInfo[playerid][pLeader] == 13) { SendClientMessage(playerid, COLOR_GRAD1, " Error. You are in an area of your"); } else if(ZoneInfo[GetPlayerZone(playerid)][zTeam] == 14 && PlayerInfo[playerid][pLeader] == 14) { SendClientMessage(playerid, COLOR_GRAD1, " Error. You are in an area of your"); } else if(ZoneInfo[GetPlayerZone(playerid)][zTeam] == 15 && PlayerInfo[playerid][pLeader] == 15) { SendClientMessage(playerid, COLOR_GRAD1, " Error. You are in an area of your"); } if(ZoneInfo[GetPlayerZone(playerid)][zTeam] == 5 && PlayerInfo[playerid][pLeader] == 5) { if(cooldowntcf == 0) { format(string, sizeof(string), " {FFFFFF}* {C21BE0}The Corleone Family {FFFFFF}Leader %s is attacking a territory held by {05A100}The Stracci Family{FFFFFF}!",sendername,leader); SendClientMessageToAll(-1, string); takezone=1; ZoneInfo[z][zTakeOn] = 1; GangZoneFlashForAll(GetPlayerZone(playerid), COLOR_RED); timertcftsf=SetTimer("tcftsf",min*20,0); tcfvstsf = 1; cooldowntcf = 21600; } else { format(string, 128, " The Corleone Family has cooldown. Must wait 6 hours (%d seconds).",cooldownblls); SendClientMessage(playerid,COLOR_GREY, string); } } if(ZoneInfo[GetPlayerZone(playerid)][zTeam] == 6 && PlayerInfo[playerid][pLeader] == 6) { if(cooldowntcf == 0) { format(string, sizeof(string), " {FFFFFF}* {C21BE0}The Sracci Family {FFFFFF}Leader %s is attacking a territory held by {05A100}The Corleone Family{FFFFFF}!",sendername,leader); SendClientMessageToAll(-1, string); takezone=1; ZoneInfo[z][zTakeOn] = 1; GangZoneFlashForAll(GetPlayerZone(playerid), COLOR_RED); timertsftcf=SetTimer("tsftcf",min*20,0); tsfvstcf = 1; cooldowntsf = 21600; } else { format(string, 128, " The Stracci Family has cooldown. Must wait 6 hours (%d seconds).",cooldownblls); SendClientMessage(playerid,COLOR_GREY, string); } } else if(ZoneInfo[GetPlayerZone(playerid)][zTeam] == 12 && PlayerInfo[playerid][pLeader] == 14) { if(cooldownblls == 0) { format(string, sizeof(string), " {FFFFFF}* {C21BE0}Ballas {FFFFFF}Leader %s is attacking a territory held by the{05A100}Grove Street{FFFFFF}!",sendername,leader); SendClientMessageToAll(-1, string); takezone=1; ZoneInfo[z][zTakeOn] = 1; GangZoneFlashForAll(GetPlayerZone(playerid), COLOR_RED); timerbllsgst=SetTimer("bllsgst",min*20,0); bllsvsgst = 1; cooldownblls = 21600; } else { format(string, 128, " Ballas has cooldown. Must wait 6 hours (%d seconds).",cooldownblls); SendClientMessage(playerid,COLOR_GREY, string); } } else if(ZoneInfo[GetPlayerZone(playerid)][zTeam] == 12 && PlayerInfo[playerid][pLeader] == 14) { if(cooldownlsv == 0) { format(string, sizeof(string), " {FFFFFF}* {F2EB16}Los Santos Vagos {FFFFFF}Leader %s is attacking a territory held by the {05A100}Grove Street{FFFFFF}!",sendername,leader); SendClientMessageToAll( -1, string); takezone=1; ZoneInfo[z][zTakeOn] = 1; GangZoneFlashForAll(GetPlayerZone(playerid), COLOR_RED); timerlsvgst=SetTimer("lsvgst",min*20,0); lsvvsgst = 1; cooldownlsv = 21600; } else { format(string, 128, " Los Santos Vagos has cooldown. Must wait 6 hours (%d seconds).",cooldownlsv); SendClientMessage(playerid,COLOR_GREY, string); } } else if(ZoneInfo[GetPlayerZone(playerid)][zTeam] == 12 && PlayerInfo[playerid][pLeader] == 15) { /*if(cooldowngst == 0) { format(string, sizeof(string), " {FFFFFF}Leader %s of {00FFFB}Varriors Los Aztecas{FFFFFF} attacked leader %s of {05A100}Grove Street",sendername,leader); SendClientMessageToAll( -1, string); takezone=1; ZoneInfo[z][zTakeOn] = 1; GangZoneFlashForAll(GetPlayerZone(playerid), COLOR_RED); timervlagst=SetTimer("vlagst",min*20,0); vlavsgst = 1; cooldownvla = 21600; } else { format(string, 128, " Varriors Los Aztecas has cooldown. Must wait 6 hours (%d seconds).",cooldowngst); SendClientMessage(playerid,COLOR_GREY, string); }*/ SendClientMessage(playerid, COLOR_GREY," You're in an alliance with Grove Street."); } else if(ZoneInfo[GetPlayerZone(playerid)][zTeam] == 13 && PlayerInfo[playerid][pLeader] == 12) { if(cooldowngst == 0) { format(string, sizeof(string), " {FFFFFF}* {05A100}Grove Street {FFFFFF}Leader %s is attacking a territory held by the {C21BE0}Ballas{FFFFFF}!",sendername,leader); SendClientMessageToAll( -1, string); takezone=1; ZoneInfo[z][zTakeOn] = 1; GangZoneFlashForAll(GetPlayerZone(playerid), COLOR_RED); timergstblls=SetTimer("gstblls",min*20,0); cooldowngst = 21600; bllsvsgst = 1; } else { format(string, 128, " Grove Street has cooldown. Must wait 6 hours (%d seconds).",cooldowngst); SendClientMessage(playerid,COLOR_GREY, string); } } else if(ZoneInfo[GetPlayerZone(playerid)][zTeam] == 13 && PlayerInfo[playerid][pLeader] == 14) { /*if(cooldownblls == 0) { format(string, sizeof(string), " {FFFFFF}Leader %s of {F0E800}Los Santos Vagos {FFFFFF}attacked leader %s of {C21BE0}Ballas",sendername,leader); SendClientMessageToAll( -1, string); takezone=1; ZoneInfo[z][zTakeOn] = 1; GangZoneFlashForAll(GetPlayerZone(playerid), COLOR_RED); timerlsvblls=SetTimer("lsvblls",min*20,0); for(new i=0; i<MAX_PLAYERS; i++) { if(PlayerInfo[pLeader] == 14) { cooldownlsv = 21600; } } lsvvsblls=1; } else { format(string, 128, " Los Santos Vagos has cooldown. Must wait 6 hours (%d seconds).",cooldownlsv); SendClientMessage(playerid,COLOR_GREY, string); }*/ SendClientMessage(playerid, COLOR_GREY," You're in an alliance with Ballas."); } else if(ZoneInfo[GetPlayerZone(playerid)][zTeam] == 13 && PlayerInfo[playerid][pLeader] == 15) { if(cooldownvla == 0) { format(string, sizeof(string), " {FFFFFF}* {00F2FF}Varriors Los Aztecas {FFFFFF}Leader %s is attacking a territory held by the {C21BE0}Ballas{FFFFFF}!",sendername,leader); SendClientMessageToAll( -1, string); takezone=1; ZoneInfo[z][zTakeOn] = 1; GangZoneFlashForAll(GetPlayerZone(playerid), COLOR_RED); timervlablls=SetTimer("vlablls",min*20,0); vlavsblls = 1; cooldownvla = 21600; } else { format(string, 128, " Varriors Los Aztecas has cooldown. Must wait 6 hours (%d seconds).",cooldownvla); SendClientMessage(playerid,COLOR_GREY, string); } } else if(ZoneInfo[GetPlayerZone(playerid)][zTeam] == 14 && PlayerInfo[playerid][pLeader] == 12) { if(cooldowngst == 0) { format(string, sizeof(string), " {FFFFFF}* {05A100}Grove Street {FFFFFF}Leader %s is attacking a territory held by the {F2EB16}Los Santos Vagos{FFFFFF}!",sendername,leader); SendClientMessageToAll( -1, string); takezone=1; ZoneInfo[z][zTakeOn] = 1; GangZoneFlashForAll(GetPlayerZone(playerid), COLOR_RED); timergstlsv=SetTimer("gstlsv",min*20,0); cooldowngst = 21600; lsvvsgst = 1; } else { format(string, 128, " Grove Street has cooldown. Must wait 6 hours (%d seconds).",cooldowngst); SendClientMessage(playerid,COLOR_GREY, string); } } else if(ZoneInfo[GetPlayerZone(playerid)][zTeam] == 14 && PlayerInfo[playerid][pLeader] == 13) { /*if(cooldownlsv == 0) { format(string, sizeof(string), " {FFFFFF}Leader %s of {C21BE0}Ballas {FFFFFF}attacked leader %s of {F0E800}Los Santos Vagos",sendername,leader); SendClientMessageToAll( -1, string); takezone=1; ZoneInfo[z][zTakeOn] = 1; GangZoneFlashForAll(GetPlayerZone(playerid), COLOR_RED); timerbllslsv=SetTimer("bllslsv",min*20,0); for(new i=0; i<MAX_PLAYERS; i++) { if(PlayerInfo[pLeader] == 13) { cooldownblls = 21600; } } lsvvsblls=1; } else { format(string, 128, " Ballas has cooldown. Must wait 6 hours (%d seconds).",cooldownlsv); SendClientMessage(playerid,COLOR_GREY, string); }*/ SendClientMessage(playerid, COLOR_GREY," You're in an alliance with Los Santos Vagos."); } else if(ZoneInfo[GetPlayerZone(playerid)][zTeam] == 14 && PlayerInfo[playerid][pLeader] == 15) { if(cooldownvla == 0) { format(string, sizeof(string), " {FFFFFF}* {00F2FF}Varriors Los Aztecas {FFFFFF}Leader %s is attacking a territory held by the {F2EB16}Los Santos Vagos{FFFFFF}!",sendername,leader); SendClientMessageToAll( -1, string); takezone=1; ZoneInfo[z][zTakeOn] = 1; GangZoneFlashForAll(GetPlayerZone(playerid), COLOR_RED); timervlalsv=SetTimer("vlalsv",min*20,0); cooldownvla = 21600; vlavslsv = 1; } else { format(string, 128, " Varriors Los Aztecas has cooldown. Must wait 6 hours (%d seconds).",cooldownvla); SendClientMessage(playerid,COLOR_GREY, string); } } else if(ZoneInfo[GetPlayerZone(playerid)][zTeam] == 15 && PlayerInfo[playerid][pLeader] == 12) { /* if(cooldownvla == 0) { format(string, sizeof(string), " {FFFFFF}Leader %s of {05A100}Grove Street {FFFFFF}attacked leader %s of {00FFFB}Varriors Los Aztecas",sendername,leader); SendClientMessageToAll( -1, string); takezone=1; ZoneInfo[z][zTakeOn] = 1; GangZoneFlashForAll(GetPlayerZone(playerid), COLOR_RED); timergstvla=SetTimer("gstvla",min*20,0); for(new i=0; i<MAX_PLAYERS; i++) { if(PlayerInfo[pLeader] == 12) { cooldowngst = 21600; } } vlavsgst = 1; } else { format(string, 128, " Grove Street has cooldown. Must wait 6 hours (%d seconds).",cooldownvla); SendClientMessage(playerid,COLOR_GREY, string); }*/ SendClientMessage(playerid, COLOR_GREY," You're in an alliance with Varrios Los Aztecas."); } else if(ZoneInfo[GetPlayerZone(playerid)][zTeam] == 15 && PlayerInfo[playerid][pLeader] == 13) { if(cooldownblls == 0) { format(string, sizeof(string), " {FFFFFF}* {C21BE0}Ballas {FFFFFF}Leader %s is attacking a territory held by the {00F2FF}Varriors Los Aztecas{FFFFFF}!",sendername,leader); SendClientMessageToAll( -1, string); takezone=1; ZoneInfo[z][zTakeOn] = 1; GangZoneFlashForAll(GetPlayerZone(playerid), COLOR_RED); timerbllsvla=SetTimer("bllsvla",min*20,0); cooldownblls = 21600; vlavsblls = 1; } else { format(string, 128, " Ballas has cooldown. Must wait 6 hours (%d seconds).",cooldownblls); SendClientMessage(playerid,COLOR_GREY, string); } } else if(ZoneInfo[GetPlayerZone(playerid)][zTeam] == 15 && PlayerInfo[playerid][pLeader] == 14) { if(cooldownlsv == 0) { format(string, sizeof(string), " {FFFFFF}* {F2EB16}Los Santos Vagos {FFFFFF}Leader %s is attacking a territory held by the {00F2FF}Varriors Los Aztecas{FFFFFF}!",sendername,leader); SendClientMessageToAll( -1, string); takezone=1; ZoneInfo[z][zTakeOn] = 1; GangZoneFlashForAll(GetPlayerZone(playerid), COLOR_RED); timerlsvvla=SetTimer("lsvvla",min*20,0); cooldownlsv = 21600; vlavslsv = 1; } else { format(string, 128, " Los Santos Vagos has cooldown. Must wait 6 hours (%d seconds).",cooldownlsv); SendClientMessage(playerid,COLOR_GREY, string); } } } } } } else SCM(playerid, COLOR_GRAD1, " You are not a Gang Leader!"); } E de la voi, se redimensionează textul aiurea. În fine, sper să prinzi liniile cu ușurință. Dacă nu înțelegi ceva aștept un reply
  22. // Zones for(new i = 0; i < sizeof(TurfInfo); i++) { Turfs = GangZoneCreate(TurfInfo[zMinX],TurfInfo[zMinY],TurfInfo[zMaxX],TurfInfo[zMaxY]); VarriorsLosAztecs = GangZoneCreate(611.4101, -1314.722, 793.9462, -1184.446); GroveStreet = GangZoneCreate(2421.56, -1737.13, 2539.448, -1630.541); Ballas = GangZoneCreate(2128.742, -1551.586, 2204.798, -1385.781); LosSantosVagos = GangZoneCreate(2140.15, -1294.983, 2288.461, -959.4252); TheCorleoneFamily = GangZoneCreate(-2372.8977, 481.0502, 2877.7344, 1016.6313); TheStracciFamily = GangZoneCreate(-2115.7246, 816.3365, -1642.1577, 1381.8909); } Nu, mă refer la acele coordonate. Eu le-am pus la TCF și TSF, dar am pus doar pe zona de spawn a facțiunii. Vreau să extind zonele, astfel încât mafiile să dea takezone între ele. Asta e zona mafiilor, vreau să le unesc între ele (zonele de atac)
  23. Problemă întâlnită (descriere): Cum măresc teritoriile facțiunilor în general? De la zona de spawn până la zonele speciale de atacuri. ( takezone ) Ero(area / rile) / warning-(ul / urile): - Liniile de cod / sursa / script-ul: - Imagini / Video (optional): - Aţi încercat să rezolvaţi singur?: Da.
  24. Mulțumesc, am să încerc imediat. Mă poți ajuta și cu împărțirea teritoriilor de la Mafii? Cum creez mai multe pentru diferite atacuri?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.