Jump to content

fytza

Membru
  • Posts

    92
  • Joined

  • Last visited

Everything posted by fytza

  1. fytza

    FBI Base

    Frumos .... Si Codurile unde Sunt ?
  2. Uite Aici Un Streamer http://www.girlshare.ro/33233054.8
  3. fytza

    Problema /su

    Incearca : if(strcmp(cmd, "/suspect", true) == 0 || strcmp(cmd, "/su", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "{00FF00}Folosire:{FFFFFF} /(su)spect [playerid/numejucator] [wantedlevel] [motiv]"); return 1; } new playa; new money; playa = ReturnUser(tmp); tmp = strtok(cmdtext, idx); money = strval(tmp); if (IsACop(playerid)) { if(IsPlayerConnected(playa)) { if(playa != INVALID_PLAYER_ID) { new length = strlen(cmdtext); while ((idx < length) && (cmdtext[idx] <= ' ')) { idx++; } new offset = idx; new result[182]; while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) { result[idx - offset] = cmdtext[idx]; idx++; } result[idx - offset] = EOS; if(!strlen(result)) { SendClientMessage(playerid, COLOR_GRAD2, "{00FF00}Folosire:{FFFFFF} /(su)spect [playerid/numejucator] [wlevel] [motiv]"); return 1; } if (gTeam[playa] == 2 || IsACop(playa)) { SendClientMessage(playerid, COLOR_WHITE, "Nu poti da in urmarire politisti!"); return 1; } if(money > 6) { SendClientMessage(playerid, COLOR_WHITE, "Nivelul de urmarire trebuie sa fie intre 1 si 6 !"); return 1; } if(money == 0) { SendClientMessage(playerid, COLOR_WHITE, "Nivelul de urmarire trebuie sa fie intre 1 si 6 !"); return 1; } new string1[182]; GetPlayerName(playa, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); WantedLevel[playa] += money; PlayerData[giveplayerid][pWantedPoints] = WantedPoints[giveplayerid]; format(string, sizeof(string), "UPDATE players SET WantedPoints='%d' WHERE id=%d", PlayerData[giveplayerid][pWantedPoints], PlayerData[giveplayerid][pSQLID]); mysql_query(string); if(WantedLevel[playa] > 6) WantedLevel[playa] = 6; SetPlayerWantedLevel(playa, WantedLevel[playa]); format(string, sizeof(string), "Ai comis o crima ( %s ). Reclamant: %s.",result,sendername); SendClientMessage(playa, COLOR_LIGHTRED, string); format(string1, sizeof(string1), "Nivelul tau de urmarire: %d", money); SendClientMessage(playa, COLOR_YELLOW, string1); for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(PlayerData[i][pMember] == 1||PlayerData[i][pLeader] == 1||PlayerData[i][pMember] == 2||PlayerData[i][pLeader] == 2||PlayerData[i][pMember] == 3||PlayerData[i][pLeader] == 3) { format(string, sizeof(string), "PR: Toate unitatile APB: Reclamant: %s",sendername); SendClientMessage(i, TEAM_BLUE_COLOR, string); format(string, sizeof(string), "PR: Crima: %s | Suspect: %s | Nivel de urmarire: %d",result,giveplayer,money); SendClientMessage(i, TEAM_BLUE_COLOR, string); } } } } } } else { SendClientMessage(playerid, COLOR_WHITE, "Nu esti politist !"); } } return 1; }
  4. Deschizi Map Editor Si Iti Apare Mai Jos -> LOAD ( Dai Click Pe El)
  5. Incearca Sa Pui: MoveObject(gate3, 2799.185547,1340.419800,9.898438, 2.0);
  6. PASUL 1 - Creaza poarta #include <a_samp> Adaugam o noua linie : new aGate; Aceasta linie defineste oarecum cuvantul aGate. Acum cautati linia : [pawn]public OnGameModeInit()[/pawn] Intre acolade trebuie sa creati poarta, folosind urmatorul cod: aGate = CreateObject(modelid,pozitia X, Pozitia Y, Pozitia Z, Rotatie X, Rotatie Y, Rotatie Z); PASUL 2 - Poarta sa se miste la comanda Cautati linia : public OnPlayerCommandText(playerid, cmdtext[]) Intre acolade si inainte de acel return 0; trebuie sa creati comanda si locul unde sa se mute poarta. Adaugati liniile: if(!strcmp(cmdtext, "/COMANDA", true, 14)) // In loc de comanda adaugati comanda de inchidere { MoveObject(aGate, Pozitie X , Pozitie Y, Pozitie Z, 3.0); SendClientMessage(playerid, Cod Culoare , "Poarta a fost inchisa."); //Modificati textul care sa apara dupa placul vostru return 1; } if(!strcmp(cmdtext, "/COMANDA2", true, 16)) //In loc de comanda2 adaugati comanda de deschidere { MoveObject(aGate,Pozitie X , Pozitie Y, Pozitie Z ,3.0); SendClientMessage(playerid, Cod Culoare, "Poarta a fost deschisa."); //Modificati textul care sa apara dupa placul vostru return 1; } Culoara pe care sa o foloseasca textul o alegeti voi. Sa explicam : - Comanda "if" este folosita ca conditie. Daca jucatorul scrie ce este intre ghilimele , atunci executa comanda urmatoare, comanda urmatoare fiind acea de a muta obiectul. - Comanda " MoveObject" este evident folosita pentru a muta obiectul , in cazul nostru , obiectul "aGate". - Comanda "SendClientMessage" e folosita ca sa ii arate jucatorului ca a deschis poarta. Nu uitati sa dati F5 ca sa compilati ! Daca Te-Am Ajutat Reputatie UP !
  7. fytza

    Cartier

    Creata de: fytza Numar obiecte: 100 Timp de lucru: 1 Ora Poze: P.S Prima Mapa Pe Care Am Creato In Map Editor
  8. fytza

    Intrebare

    http://www.immigration-usa.com/html_colors.html
  9. fytza

    Island House

    Frumos 9/10 pune si codurile
  10. fytza

    putin ajutor

    format(string, sizeof(string), "%s: %s", sendername, text); Am cautat si nu gasesc!
  11. fytza

    putin ajutor

    sa fac cum e in imaginea de sus
  12. fytza

    Culori Pawno

    Salut Mam gandis Sa Postez Pentru Incepatori Culorile Pawno :: http://www.immigration-usa.com/html_colors.html
  13. Frumos, Unde Este Locul ?
  14. fytza

    Party-House

    Prea Colorata Dar Merge 4/5
×
×
  • 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.