[Ajuda] Colocar uma menssagem pra todos online
#9

Quote:
Originally Posted by RianRBS
Посмотреть сообщение
Agora estб aparecendo o nome do jogador que foi Multado, mais nгo aparece no valor que ele foi multado aparece sу R$
nгo sei se vai funcionar.. strcmp й muito ultrapassado alйm de ser mais dificil ...

PHP код:
if(strcmp(cmd"/multar"true) == 0)
{
    new
    
aname[MAX_PLAYER_NAME]
    ;
    
GetPlayerName(playeridanameMAX_PLAYER_NAME);
    
format(filesizeof(file), PASTA_CONTASaname);
    if(
dini_Int(file"Profissao") == Policial_C || dini_Int(file"Profissao") == Policial_F || dini_Int(file"Profissao") == Delegado || dini_Int(file"Profissao") == Bope || dini_Int(file"Profissao") == Swat || dini_Int(file"Profissao") == Narcoticos || dini_Int(file"Profissao") == Policial_M || dini_Int(file"Profissao") == FBI || dini_Int(file"Profissao") == Interpol || dini_Int(file"Profissao") == LSPD || dini_Int(file"aAdmin") == || IsPlayerAdmin(playerid))
    {
        new
        
tmp[256],
        
plid,
        
quant,
        
motivo[64]
        ;
        
tmp strtok(cmdtextidx);
        if(
strlen(tmp))
        return 
SendClientMessage(playerid, -1"/multar [id] [quantidade] [motivo]");
        
plid strval(tmp);
        
tmp strtok(cmdtextidx);
        if(!
strlen(tmp))
        return 
SendClientMessage(playerid, -1"/multar [id] [quantidade] [motivo]");
        if(
UsouID[plid] == true)
        return 
SendClientMessage(playerid, -1"Espere 1 Minutos para Multar esse ID Novamente!");
        
quant strval(tmp);
        if(
quant 1000 || quant <= 0)
        return 
SendClientMessage(playerid, -1"(INFO) Vocк nгo estб multando de forma justa.");
        new 
length strlen(cmdtext);
        while ((
idx length) && (cmdtext[idx] <= ' '))
        {
            
idx++;
        }
        new 
offset idx;
        while ((
idxex length) && ((idxex offset) < (sizeof(motivo) - 1)))
        {
            
motivo[idx offset] = cmdtext[idx];
            
idx++;
        }
        
motivo[idx offset] = EOS;
        if(!
strlen(motivo))
        return 
SendClientMessage(playerid,0xFFFFAA,"Uso correto: /banip [id] [motivo].");
        if(
IsPlayerConnected(plid))
        {
            new 
pname[MAX_PLAYER_NAME];
            
GetPlayerName(plidpnameMAX_PLAYER_NAME);
            
format(file2sizeof(file2), PASTA_CONTASpname);
            
format(stringsizeof(string), "(INFO) Vocк recebeu uma multa de R$%d Pelo policial %s . O dinheiro foi retirado do banco."quantaname);
            
SendClientMessage(plidCOLOR_GREENstring);
            
format(stringsizeof(string), "(INFO) O jogador %s recebeu uma multa de R$%d Pelo policial %s pelo motivo [ %s ] . O dinheiro foi retirado do banco." pnamequantanamemotivo);
            
SendClientMessageToAllCOLOR_GREENstring );
            
UsouID[plid] = true;
            
SetTimerEx("ResetarMultados"60000true"i"plid);
            
dini_IntSet(file2"SaldoBancario"dini_Int(file2"SaldoBancario")- quant);
            return 
1;
        }
        else
        {
            
SendClientMessage(playerid, -1"(INFO) O jogador nгo estб conectado!");
            return 
1;
        }
    }
    return 
1;

Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 4 Guest(s)