Jump to content

Cipriann

Membru
  • Posts

    6
  • Joined

  • Last visited

    Never

Cipriann's Achievements

Rookie

Rookie (2/14)

  • First Post
  • Conversation Starter
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

0

Reputation

  1. Nume: Cipriann Nume tutorial: Cum sa mut o factiune. Descriere: As dorii si eu un tutorial complex prin care sa invat cum sa mut o factiune, cat de cat stiu, dar nu ma pot descurca cu interiorul ..
  2. //----------------------------------[setCrim]----------------------------------------------- if(strcmp(cmd, "/suspect", true) == 0 || strcmp(cmd, "/su", true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 3 || PlayerInfo[playerid][pMember] == 3) { } else { SendClientMessage(playerid, COLOR_GREY, " You are not on Duty!"); return 1; } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: (/su)spect [playerid/PartOfName] [crime discription]"); return 1; } giveplayerid = ReturnUser(tmp); if (gTeam[playerid] == 2 || IsACop(playerid)) { if(IsPlayerConnected(giveplayerid)) { if(giveplayerid != INVALID_PLAYER_ID) { if (gTeam[giveplayerid] != 2) { GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); new length = strlen(cmdtext); while ((idx < length) && (cmdtext[idx] <= ' ')) { idx++; } new offset = idx; new result[64]; 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, "USAGE: (/su)spect [playerid/PartOfName] [crime text]"); return 1; } if(WantedPoints[giveplayerid] == 0) { WantedPoints[giveplayerid] = 3; } else { WantedPoints[giveplayerid]+= 1; } SetPlayerCriminal(giveplayerid,playerid, result); SetPlayerWantedLevel(giveplayerid, GetPlayerWantedLevel(giveplayerid) + 1); return 1; } else { SendClientMessage(playerid, COLOR_GRAD2, " You can't suspect a Cop !"); } } } else { format(string, sizeof(string), " %d is not an active player.", giveplayerid); SendClientMessage(playerid, COLOR_GRAD1, string); return 1; } } else { SendClientMessage(playerid, COLOR_GRAD2, " You are not a Cop / FBI / National Guard !"); } } return 1; } if(strcmp(cmd, "/wanted", true) == 0) { if(IsPlayerConnected(playerid)) { if(gTeam[playerid] == 2 || IsACop(playerid)) { new x; SendClientMessage(playerid, COLOR_GREEN, "Current Wanted Suspects:"); for(new i=0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(WantedLevel > 1) { GetPlayerName(i, giveplayer, sizeof(giveplayer)); format(string, sizeof(string), "%s%s: %d", string,giveplayer,WantedLevel); x++; if(x > 3) { SendClientMessage(playerid, COLOR_YELLOW, string); x = 0; format(string, sizeof(string), ""); } else { format(string, sizeof(string), "%s, ", string); } } } } if(x <= 3 && x > 0) { string[strlen(string)-2] = '.'; SendClientMessage(playerid, COLOR_YELLOW, string); } } else { SendClientMessage(playerid, COLOR_GREY, " You're not a Cop / FBI / National Guard !"); } }//not connected return 1; } Si la /wanted vreau sa arate suspectii cu wanted si motivul. Adica: "Ciprian wanted 3 atac cop".
  3. Iulian, uite aici: public PDGATECLOSE() { MoveObject(PDGATE, 1590.3316, -1638.0882, 14.6553,2); return 1; } MoveObject(PDGATE,1597.846802, -1638.088257, 14.655367,1); SetTimer("PDGATECLOSE", 10000, false); }
  4. WaZP, eu am zis ca nu da wanted corect, eu pun de exemplu: '/su Ciprian 3 atac cop', si da doar wanted 1 fara motiv. Si la /wanted nu imi afiseaza pe cei cu wanted..
  5. if(IsPlayerInAnyVehicle(playerid)) { if((IsACop(playerid)) && PlayerToPoint(15.0, playerid, 1588.2966,-1637.8121,13.4255)) { MoveObject(PDGATE,1597.846802, -1638.088257, 14.655367,1); SetTimer("PDGATECLOSE", 10000, false); Asta ? Se deschid pe "H".
  6. Va rog frumos sa ma ajutati, de ce mi se deschid portile in felul urmator? https://www.youtube.com/watch?v=aQOLcOiPQII&feature=youtu.be Si as mai vrea sa stiu inca ceva. Atunci cand dau /su [iD] [wanted] [Crima] da wanted 1 si nu arata crima, ma puteti ajuta va rog frumos ?
×
×
  • 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.