Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Includes
- #include <a_samp>
- #include <c_vehicleinfo>
- #include <a_players>
- #include <a_vehicles>
- #include <dini>
- #include <cpstream>
- //#include <utils>
- //#include <nnfanticheater>
- #include <streamer>
- #include <foreach>
- #include <antibot>
- //// Tudo relacionado a wanted level
- if(dini_Int(file, "Procurado") == 1){
- Procurados[playerid]= 1;
- }
- if(dini_Int(file, "levelprocurado") == 1){
- Procurados[playerid]= 1;
- }
- ///
- /// Tudo que esta relacionado ao Wanted no gm
- if(strcmp(cmdtext, "/limparficha", true) == 0) {
- new pname[MAX_PLAYER_NAME];
- GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
- new check;
- check = CPS_GetPlayerCheckpoint(playerid);
- if(check == checkdpdentro){
- if(GetPlayerGrana(playerid) > 2499){
- GivePlayerGrana(playerid,-2500);
- dini_IntSet(filene(pname),"Procurado",0);
- SetPlayerWantedLevel(playerid, 0);
- Procurados[playerid] = 0;
- levelprocurado[playerid] = 0;
- PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_WHITE,"| INFO | Você limpou sua ficha e foi retirado da lista de procurados.");
- } else {
- SendClientMessage(playerid, Vermelho,"| ERRO | Você não tem dinheiro suficiente.");
- }
- } else {
- SendClientMessage(playerid, Vermelho,"| ERRO | Você não está na DP.");
- }
- return 1;
- }
- if(strcmp(cmdtext, "/fianca", true) == 0) {
- new aname[MAX_PLAYER_NAME];
- GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
- format(file, sizeof(file), PASTA_CONTAS, aname);
- new grana;
- grana = dini_Int(file, "SaldoBancario");
- if(dini_Int(file, "Preso") == 1){
- if(grana > 10000){
- if(Preso[playerid]>= 2){
- SetPlayerWantedLevel(playerid, 0);
- Procurados[playerid] = 0;
- levelprocurado[playerid] = 0;
- dini_IntSet(file2, "Procurado", 0);
- dini_IntSet(file, "Preso",0);
- dini_IntSet(file, "SaldoBancario", dini_Int(file, "SaldoBancario")-Fianca);
- preso[playerid] = 0;
- Preso[playerid] = 0;
- algemado[playerid] = 0;
- SetPlayerPos(playerid, 268.394561,77.728500,1001.039062);
- SetPlayerInterior(playerid, 6);
- SetPlayerHealth(playerid,100);
- SendClientMessage(playerid, Verde,"(CADEIA) Você pagou a fiança e foi liberado!");
- SetPlayerWantedLevel(playerid, 0);
- } else {
- SendClientMessage(playerid, Vermelho,"(ERRO) Aguarde 2 minutos para procurar ajuda.");
- }
- } else {
- SendClientMessage(playerid, Vermelho,"(ERRO) Você não tem dinheiro suficiente em sua conta bancaria R$: 10000");
- }
- } else {
- SendClientMessage(playerid, Vermelho,"(ERRO) Você não está preso para pagar fiança.");
- }
- return 1;
- }
- if(strcmp(cmd, "/assaltar", true) == 0) {
- if(dini_Int(file,"rouboubanco") == 1) return SendClientMessage(playerid, Vermelho, "(ERRO) Você assaltou o banco recentemente!");
- new aname[MAX_PLAYER_NAME];
- GetPlayerName(playerid, aname, sizeof(aname));
- format(file, sizeof(file), PASTA_CONTAS, aname);
- new checknome;
- checknome = CPS_GetPlayerCheckpoint(playerid);
- if(checknome == caixaeletronico1 || checknome == caixaeletronico2 || checknome == caixaeletronico3 || checknome == caixaeletronico4 || checknome == caixaeletronico5 || checknome == caixaeletronico6 || checknome == caixaeletronico7){
- if(dini_Int(file,"rouboubanco") == 0){
- if(dini_Int(file, "Profissao") == Assaltante || dini_Int(file, "aAdmin") == 1 || IsPlayerAdmin(playerid)){
- format(string, sizeof(string), "(BANCO) %s assaltou um banco e está na lista de procurados!",aname);
- SendClientMessageToAll(msgdm, string);
- new bancoa,Float:x,Float:y,Float:z;
- GetPlayerPos(playerid,x,y,z);
- bancoa = CreateObject(1829,x,y,z-0,0,0,0);
- SetTimerEx("DestruirObjeto",200000,false,"d",bancoa);
- dini_IntSet(file, "Procurado", 1);
- dini_IntSet(file, "rouboubanco", 1);
- Procurados[playerid]= 1;
- levelprocurado[playerid]= 6;
- SetPlayerWantedLevel(playerid, 6);
- GivePlayerGrana(playerid,1100);
- } else {
- SendClientMessage(playerid, Vermelho,"(ERRO) Você não é um assaltante!");
- }
- } else {
- SendClientMessage(playerid, Vermelho,"(ERRO) Você não esta em um Banco!");
- }
- }
- return 1;
- }
- SendClientMessage(playerid, Vermelho, " /vozdeprisao [id]");
- return 1;
- }
- plid = strval(tmp);
- if(plid == playerid){
- SendClientMessage(playerid, Vermelho, "| ERRO | Você não pode usar este comando em você mesmo.");
- return 1 ;
- }
- if(!IsPlayerConnected(plid)){
- SendClientMessage(playerid, Vermelho, "| ERRO | Jogador não conectado.");
- return 1;
- } else {
- if(GetDistanceBetweenPlayers(plid,playerid) < 10){
- new result[100];
- format(string, sizeof(string), "| INFO | Você foi colocado na viatura por %s !",aname, result);//ai essa pohan ta certa
- SendClientMessage(plid, 0x8C8CFFAA, string);
- levelprocurado[playerid]= 6;
- SetPlayerWantedLevel(playerid, 6);
- TogglePlayerControllable(plid, 0);
- RemovePlayerAttachedObject(plid, 4);
- preso[plid] = 1;
- SendClientMessage(playerid, 0x8C8CFFAA, "| INFO | Colocado na viatura, va ate a garagem da DP e prenda!");//perae vamo pesquisar
- new pname[MAX_PLAYER_NAME];
- GetPlayerName(plid,pname,MAX_PLAYER_NAME);
- format(string, sizeof(string),"[Corregedoria]O Policial %s(ID: %d) Deu voz de Prisão a %s(ID: %d)", aname,playerid,pname,plid,tmp);
- Comandosp(Roxo,string,1);//go la ver agora
- new VehicleID;
- VehicleID = GetPlayerVehicleID(playerid);
- PutPlayerInVehicle(plid,VehicleID,2);
- return 1;
- } else {
- if(algemado[plid] == 0 || GetPlayerSpecialAction(plid) != SPECIAL_ACTION_HANDSUP){
- SendClientMessage(playerid, COLOR_RED,"O player não está algemado ou rendido!");
- return 1;
- }
- SendClientMessage(playerid,Vermelho," Chegue mais perto !");
- return 1;
- }
- }
- } else {
- SendClientMessage(playerid,Vermelho,"| ERRO | Você não está em uma Viatura da Policia!");
- return 1;
- }
- } else {
- SendClientMessage(playerid,Vermelho,"(ERRO) Você não é um policial!");
- return 1;
- }
- }
- if(strcmp(cmd, "/soltar", true) == 0) {
- new aname[MAX_PLAYER_NAME];
- GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
- format(file, sizeof(file), PASTA_CONTAS, aname);
- if(dini_Int(file, "aAdmin") == 1 || dini_Int(file, "Profissao") == Advogado || IsPlayerAdmin(playerid) || pAdmin[playerid] == 5 || IsPlayerAdmin(playerid)){
- new tmp[256];
- new plid;
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp)){
- SendClientMessage(playerid, Vermelho, "/soltar [id]");
- return 1;
- }
- plid = strval(tmp);
- if(!IsPlayerConnected(plid)){
- SendClientMessage(playerid, Vermelho, "(ERRO) Jogador não conectado.");
- return 1;
- } else {
- new pname[MAX_PLAYER_NAME];
- GetPlayerName(plid, pname, MAX_PLAYER_NAME);
- format(file2, sizeof(file2), PASTA_CONTAS, pname);
- format(string, sizeof(string), "(INFO) Você foi solto por '%s'.", aname);
- SendClientMessage(plid, Aviso, string);
- dini_IntSet(file2, "Preso", 0);
- preso[plid] = 0;
- SetPlayerHealth(plid,100);
- Preso[plid] = 0;
- algemado[plid] = 0;
- SetPlayerPos(plid, 268.394561,77.728500,1001.039062);
- SetPlayerInterior(plid, 6);
- SetPlayerWantedLevel(plid, 0);
- SendClientMessage(playerid, 0x8C8CFFAA, "(INFO) Solto com sucesso.");
- soltou[playerid] = 1;
- return 1;
- }
- } else {
- SendClientMessage(playerid,Vermelho,"(ERRO) Você não é um Advogado");
- return 1;
- }
- }
- if(strcmp(cmd,"/procurar", true) == 0) {
- if(dini_Int(file, "Profissao") == Policia_Militar || dini_Int(file, "Profissao") == Policia_Civil || dini_Int(file, "Profissao") == Policia_Federal || dini_Int(file, "Profissao") == Delegado || dini_Int(file, "Profissao") == Bope || dini_Int(file, "Profissao") == Swat || dini_Int(file, "Profissao") == Narcoticos || dini_Int(file, "Profissao") == FBI || dini_Int(file, "Profissao") == Interpol || dini_Int(file, "Profissao") == PC || pAdmin[playerid] >= 3){
- new tmp[256];
- new msg[256];
- tmp = strtok(cmdtext, idx);
- new plid;
- plid = strval(tmp);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, 0xFFD39BAA, "Use: /procurar [id] [motivo]");
- return 1;
- }
- msg = strrest(cmdtext, idx);
- if(!strlen(msg)){
- SendClientMessage(playerid, COLOR_GREEN,"| ERRO | Use /procurar [id] [motivo]");
- return 1;
- }
- if(IsPlayerConnected(plid))
- {
- new str[128];
- new giveplayer[MAX_PLAYER_NAME];
- new sendername[MAX_PLAYER_NAME];
- //new result[100];
- GetPlayerName(playerid, sendername, sizeof(sendername));
- GetPlayerName(plid, giveplayer, sizeof(giveplayer));
- format(str, sizeof(str), "| INFO | Você foi colocado na lista de procurados pelo Policial %s (Motivo: %s)", sendername, msg);
- SendClientMessage(plid, 0xFFD39BAA, str);
- format(str, sizeof(str), "| INFO | Você colocou o jogador %s na lista de procurados!", giveplayer);
- SendClientMessage(playerid, 0xFFD39BAA, str);
- SetPlayerWantedLevel(plid, GetPlayerWantedLevel(plid)+1);
- if(GetPlayerWantedLevel(plid) > 6)
- SetPlayerWantedLevel(plid, 6);
- Procurados[plid]= 1;
- levelprocurado[plid]= 1;
- new pname[MAX_PLAYER_NAME];
- new aname[MAX_PLAYER_NAME];
- GetPlayerName(plid,pname,MAX_PLAYER_NAME);
- format(string, sizeof(string),"[Corregedoria]O Policial %s(ID: %d) Colocou %s(ID: %d) [Motivo: %s]", aname,playerid,pname,plid,msg);
- Comandosp(Roxo,string,1);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, 0xFFD39BAA, "(ERRO) Jogador não conectado ou esse e seu id");
- return 1;
- }
- }
- }
- if(strcmp(cmd, "/desprocurar", true) == 0){
- new aname[MAX_PLAYER_NAME];
- new plid;
- GetPlayerName(plid,aname,MAX_PLAYER_NAME);
- if(dini_Int(filene(aname),"Corregedor") >= 1 || pAdmin[playerid] == 5 || IsPlayerAdmin(playerid)){
- new tmp[256];
- GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
- tmp = strtok(cmdtext, idx);
- plid = strval(tmp);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, 0xFFD39BAA, "Use: /desprocurar [id]");
- return 1;
- }
- if(IsPlayerConnected(plid))
- {
- new str[128];
- new giveplayer[MAX_PLAYER_NAME];
- new sendername[MAX_PLAYER_NAME];
- GetPlayerName(playerid, sendername, sizeof(sendername));
- GetPlayerName(plid, giveplayer, sizeof(giveplayer));
- format(str, sizeof(str), "(INFO) Você foi retirado da lista de procurados pelo jogador %s", sendername);
- SendClientMessage(plid, 0xFFD39BAA, str);
- format(str, sizeof(str), "(INFO) Você retirou o jogador %s da lista de procurados!", giveplayer);
- SendClientMessage(playerid, 0xFFD39BAA, str);
- dini_IntSet(file, "Procurado", 0);
- SetPlayerWantedLevel(plid, 0);
- Procurados[plid]= 0;
- new pname[MAX_PLAYER_NAME];
- GetPlayerName(plid,pname,MAX_PLAYER_NAME);
- format(string, sizeof(string),"[Corregedoria]O Policial %s(ID: %d) desprocurou %s(ID: %d)", aname,playerid,pname,plid);
- Comandosp(Roxo,string,1);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, 0xFFD39BAA, "(ERRO) Jogador não conectado");
- return 1;
- }
- }
- }
- if(strcmp(cmd, "/algemar", true) == 0) {
- new aname[MAX_PLAYER_NAME];
- GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
- format(file, sizeof(file), PASTA_CONTAS, aname);
- if(dini_Int(file, "Profissao") == Policia_Militar || dini_Int(file, "Profissao") == Policia_Civil || dini_Int(file, "Profissao") == Policia_Federal || dini_Int(file, "Profissao") == Delegado || dini_Int(file, "Profissao") == Bope || dini_Int(file, "Profissao") == Swat || dini_Int(file, "Profissao") == Narcoticos || dini_Int(file, "Profissao") == FBI || dini_Int(file, "Profissao") == Interpol || dini_Int(file, "aAdmin") == 1){
- new tmp[256];
- new msg[256];
- new plid;
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp)){
- SendClientMessage(playerid, Vermelho, " /algemar [id] [motivo]");
- return 1;
- }
- plid = strval(tmp);
- if(plid == playerid){
- SendClientMessage(playerid, Vermelho, "(ERRO) Você não pode usar este comando em você mesmo.");
- return 1 ;
- }
- msg = strrest(cmdtext, idx);
- if(!strlen(msg)){
- SendClientMessage(playerid, COLOR_GREEN,"| ERRO | Use /algemar [id] [motivo]");
- return 1;
- }
- if(!IsPlayerConnected(plid)){
- SendClientMessage(playerid, Vermelho, "(ERRO) Jogador não conectado.");
- return 1;
- } else {
- if(GetDistanceBetweenPlayers(plid,playerid) < 10){
- format(string, sizeof(string),"| ALGEMADO | O Policial %s(ID: %d) te Algemou (Motivo: %s)", aname, playerid,msg);
- SetPlayerAttachedObject(plid, 4, 19418, 6, -0.031999, 0.024000, -0.024000, -7.900000, -32.000011, -72.299987, 1.115998, 1.322000, 1.406000);
- SendClientMessage(plid, 0x8C8CFFAA, string);
- TogglePlayerControllable(plid, 0);
- format(string, sizeof(string),"| ALGEMADO | Você algemou %s Motivo: %s", aname, playerid,msg);
- algemado[plid] = 1;
- algemou[playerid] = 1;
- levelprocurado[playerid]= 6;
- SetPlayerWantedLevel(playerid, 0);
- new pname[MAX_PLAYER_NAME];
- GetPlayerName(plid,pname,MAX_PLAYER_NAME);
- format(string, sizeof(string),"[Corregedoria]O Policial %s(ID: %d) Algemou %s(ID: %d) [Motivo: %s]", aname,playerid,pname,plid,msg);
- Comandosp(Roxo,string,1);
- return 1;
- } else {
- SendClientMessage(playerid,Vermelho," Chegue mais perto para algemar.");
- return 1;
- }
- }
- } else {
- SendClientMessage(playerid,Vermelho,"(ERRO) Você não é um policial!");
- return 1;
- }
- }
- if(strcmp(cmdtext, "/procurados", true) == 0){
- SendClientMessage(playerid, AdminCor,"~ > {0000CD}Brasil {1DF224}Segunda {E8E654}Vida {3225EB} Procurados {0000CD}Online {1DF224} < ~");
- new Jogador[24];
- new count = 0;
- new msg[120];
- for(new i=0; i<MAX_PLAYERS; i++){
- if(IsPlayerConnected(i) && Procurados[i]){
- GetPlayerName(i,Jogador,24);
- format(msg,sizeof(msg),"%d: %s : [Procurado Nivel %i]", i,Jogador,GetPlayerWantedLevel(i));
- SendClientMessage(playerid, 0xFFFFFFAA, msg);
- count++;
- }
- }
- if(count == 0){
- SendClientMessage(playerid, 0xFF0000AA, "Ninguém está procurado no momento.");
- }
- return 1;
- }
- if(strcmp(cmdtext, "/presos", true) == 0){
- SendClientMessage(playerid,0x408080AA,"» Lista de Presos:");
- new Jogador[24];
- new count = 0;
- new msg[120];
- for(new i=0; i<MAX_PLAYERS; i++){
- if(IsPlayerConnected(i) && preso[i]){
- GetPlayerName(i,Jogador,24);
- format(msg,sizeof(msg),"%d: %s", i,Jogador);
- SendClientMessage(playerid, Branco, msg);
- count++;
- }
- }
- if(count == 0){
- SendClientMessage(playerid, 0xFF0000AA, "Ninguém está preso no momento.");
- }
- return 1;
- }
- if(dini_Int(file, "HTerrestre") == 0){
- if(modelo == 509 || modelo == 510 || modelo == 481){
- SendClientMessage(playerid, Vermelho, "{69C7FA} Você está dirigindo uma bicicleta e não precisa de habilitação.");
- } else {
- SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid)+1);
- Procurados[playerid]= 1;
- levelprocurado[playerid]= 1;
- SendClientMessage(playerid, Vermelho, "{69C7FA}[!] Você Não tem Habilitação terrestre va ate a prefeitura e compre uma!");
- }
- }
- }
- }
- if(dini_Int(file2, "DM") == 1){
- new string[256];
- format(string, sizeof(string), "{15AD70}[!] %s matou o jogador %s e está sendo procurado pela Policia!",kname, aname);
- SendClientMessageToAll(msgdm3, string);
- dini_IntSet(file2, "Procurado", 1);
- dini_IntSet(file2, "levelprocurado", 6);
- Procurados[killerid] = 1;
- SetPlayerWantedLevel(killerid, 6);
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment