[Ajuda] Comando /removerlistap
#1

bom tenho um comando aki, desculpem por favor й a ultima vez que eu venho aqui pq ninguem gosta de mim pq eu peзo mt ajuda й a ultima vez que eu venho aki pedir ajuda, entгo eu queria que colocassem assim /removerlistap [id] [motivo] ai aparecia pra todo mundo: O policia % removeu o jogador % pelo motivo %

pawn Код:
if(strcmp(cmd, "/removerlistap", true) == 0)
if(dini_Int(file, "Profissao") == Policial_C || dini_Int(file, "Profissao") == Policial_F || dini_Int(file, "Profissao") == Recruta || dini_Int(file, "Profissao") == Bope || dini_Int(file, "Profissao") == Swat || dini_Int(file, "Profissao") == Rotam || dini_Int(file, "Profissao") == Policial_M || dini_Int(file, "Profissao") == FBI || dini_Int(file, "Profissao") == Interpol || dini_Int(file, "pAdm01") == 1){
new tmp[256];
tmp = strtok(cmdtext, idx);
new plid;
plid = strval(tmp);
if(!strlen(tmp))
{
SendClientMessage(playerid, 0xFFD39BAA, "Use: /removerlistap [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), "{0099FF}[x]{CCCCFF} Vocк foi retirado da lista de procurados pelo Oficial %s", sendername);
    SendClientMessage(plid, 0xFFD39BAA, str);
    format(str, sizeof(str), "{0099FF}[x]{CCCCFF} 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;
    return 1;
    }
    else
    {
    SendClientMessage(playerid, 0xFFD39BAA, "(ERRO) Jogador nгo conectado ou esse й seu id");
    return 1;
}
}
Ah aproveitando que й a ultima vez pf me ajudem nesse comando de algemar que nгo tem /algemar [id] [motivo] sу qkero que ponha /algemar [id] [motivo] nao kero que colokem pra apareзer mensagem pra todos que o % foi algemado pelo %.

pawn Код:
if(strcmp(cmd, "/algemar", true) == 0) {
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
format(file, sizeof(file), P_CONTAS, aname);
if(dini_Int(file, "Profissao") == Policial_M || dini_Int(file, "Profissao") == Policial_C || dini_Int(file, "Profissao") == Policial_F || dini_Int(file, "Profissao") == Recruta || dini_Int(file, "Profissao") == Bope || dini_Int(file, "Profissao") == Swat || dini_Int(file, "Profissao") == Rotam || dini_Int(file, "Profissao") == FBI || dini_Int(file, "Profissao") == Interpol ||dini_Int(file, "Profissao") == LSPD || dini_Int(file, "pAdm01") == 1){
new tmp[256];
new plid;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)){
SendClientMessage(playerid, Vermelho, "{0099FF}[x]{CCCCFF} Use: /algemar [id]");
return 1;
}
plid = strval(tmp);
if(IsPlayerInAnyVehicle(plid) == 1 || IsPlayerInAnyVehicle(playerid) == 1){
SendClientMessage(playerid, Vermelho, "{0099FF}[x]{CCCCFF} Alguem estб dentro de um carro.");
return 1 ;
}
if(plid == playerid){
SendClientMessage(playerid, Vermelho, "{0099FF}[x]{CCCCFF} Vocк nгo pode algemar vocк mesmo.");
return 1 ;
}
if(!IsPlayerConnected(plid)){
SendClientMessage(playerid, Vermelho, "{0099FF}[x]{CCCCFF} O jogador nгo estб conectado");
return 1;
} else {
if(GetDistanceBetweenPlayers(plid,playerid) < 10){
format(string, sizeof(string), "{0099FF}[x]{CCCCFF} O Policial %s te algemou.", aname);
SendClientMessage(plid, AzuL4, string);
TogglePlayerControllable(plid, 0);
SendClientMessage(playerid, COLOR_GREEN, "{0099FF}[x]{CCCCFF} Algemado com sucesso.");
algemado[plid] = 1;
return 1;
} else {
SendClientMessage(playerid,Vermelho,"{0099FF}[x]{CCCCFF} Chegue mais perto para algemar.");
return 1;
}
}
} else {
SendClientMessage(playerid,Vermelho,"{0099FF}[x]{CCCCFF} Apenas policiais podem usar este comando.");
return 1;
}
}

A e esse multar aqui nгo tem /multar [id] [motivo] [quantia] tem como ajudar?
Ai aparecia pra todos, o policial % mutou o jogador % em R$% pelo motivo: Contra-mгo!

pawn Код:
if(strcmp(cmd, "/multar", true) == 0) {
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
format(file, sizeof(file), P_CONTAS, aname);
if(dini_Int(file, "Profissao") == Policial_C || dini_Int(file, "Profissao") == Policial_F || dini_Int(file, "Profissao") == Recruta || dini_Int(file, "Profissao") == Bope || dini_Int(file, "Profissao") == Swat || dini_Int(file, "Profissao") == Rotam || dini_Int(file, "Profissao") == Policial_M || dini_Int(file, "Profissao") == FBI || dini_Int(file, "Profissao") == Interpol || dini_Int(file, "Profissao") == LSPD || dini_Int(file, "pAdm01") == 1 || IsPlayerAdmin(playerid)){
new tmp[256];
new plid;
new quant;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, Vermelho, "/multar [id] [quantidade]");
return 1;
}
plid = strval(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, Vermelho, "/multar [id] [quantidade]");
return 1;
}
quant = strval(tmp);
if(quant > 1000 || quant <= 0){
SendClientMessage(playerid, Vermelho, "{0099FF}[x]{CCCCFF} Valor de 0 a 1000 R$.");
return 1;
}
if(IsPlayerConnected(plid)){
new pname[MAX_PLAYER_NAME];
GetPlayerName(plid, pname, MAX_PLAYER_NAME);
format(file2, sizeof(file2), P_CONTAS, pname);
format(string, sizeof(string), "{0099FF}[x]{CCCCFF} Vocк recebeu uma multa de R$%d Pelo policial %s . O dinheiro foi retirado do banco.", quant, aname);
SendClientMessage(plid, COLOR_GREEN, string);
SendClientMessage(playerid, COLOR_GREEN, "{0099FF}[x]{CCCCFF} Multa dada.");
dini_IntSet(file2, "SaldoBancario", dini_Int(file2, "SaldoBancario")- quant);
return 1;
}
else{
SendClientMessage(playerid, Vermelho, "{0099FF}[x]{CCCCFF} O jogador nгo estб conectado!");
return 1;
}
}
}

ai tipo sabe quando usa o /cnnn ~n~ ~b~ Oi, ai apareзe no meio da tela '' Oi '' ?
entгo como eu faзo pra colocar Procurado no meio da tela quando o cara for procurado, algemado, multado e preso?
obrigado gente e + rep pra quem ajudar!
Reply
#2

Ah tб de sacanagem nй??

quer saber vo ir namorar q ganho mais flws.

a proposito a porra do comando lб funcionou?? se sim, dб pra fazer na base dele sу vc estudar.!
Reply
#3

Funcionou certinho obrigado, eu sei que й um pacote mano mais й pros policiais do meu servidor nгo cometerem abuser sacou ?
Reply
#4

Vamos a aula bбsica de Pawn, Segue abaixo os Ingredientes para fazer a Receita de Mensagem para Todos:

1 Linha de Format
1 Linha de GameTextForAll

1 Vontade de aprender... e Fim da Receita, Boa Sorte.
Reply
#5

с resultou '-'
Reply
#6

- Removido -
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)