[Ajuda] Comando /kick nгo funcionando
#8

PHP код:
if(strcmp(cmd"/kick"true) == 0)
{
    
id strval(tmp);
    
GetPlayerName(idgiveplayersizeof(giveplayer));
    
GetPlayerName(playeridsendernamesizeof(sendername));
    
tmp strtok(cmdtextidx);
    if(!
strlen(tmp))
    {
        
SendClientMessage(playerid,-1"Uso: /kick [id do player] [motivo]");
        return 
1;
    }
    
id strval(tmp);
    {
    if(
IsPlayerConnected(id))
    {
        new 
length strlen(cmdtext);
        while ((
idx length) && (cmdtext[idx] <= ' '))
        {
            
idx++;
        }
        new 
offset idx;
        new 
result[350];
        while ((
idx length) && ((idx offset) < (sizeof(result) - 1))) {
            
result[idx offset] = cmdtext[idx];
            
idx++;
        }
        
result[idx offset] = EOS;
        if(!
strlen(result))
        {
            
result "N/A";
        }
        
GetPlayerName(idgiveplayersizeof(giveplayer));
        
format(stringsizeof(string), "%s foi kickado pelo %s | Motivo: %s"giveplayer,sendername,result);
        
SendClientMessageToAll(-1string);
        
Kick(id);
    }
    return 
1;

Reply


Messages In This Thread
Comando /kick nгo funcionando - by ViniciusTUF - 14.04.2016, 22:06
Re: Alguйm ajuda aqui glr. - by zPain - 14.04.2016, 22:55
Re: Alguйm ajuda aqui glr. - by SkyneTSAMP - 15.04.2016, 01:20
Re: Alguйm ajuda aqui glr. - by SkyneTSAMP - 15.04.2016, 01:22
Re: Alguйm ajuda aqui glr. - by ViniciusTUF - 16.04.2016, 02:08
Re: Alguйm ajuda aqui glr. - by ApocaSamp - 16.04.2016, 07:26
Re: Alguйm ajuda aqui glr. - by ViniciusTUF - 16.04.2016, 14:59
Re: Alguйm ajuda aqui glr. - by ApocaSamp - 16.04.2016, 15:34
Re: Comando /kick nгo funcionando - by SkyneTSAMP - 16.04.2016, 17:50
Re: Comando /kick nгo funcionando - by ViniciusTUF - 17.04.2016, 15:13

Forum Jump:


Users browsing this thread: 1 Guest(s)