[Ajuda] Comando Kick
#10

Tente Agora...
PHP код:
public OnPlayerCommandText(playeridcmdtext[])
{
    
cmd strtok(cmdtextidx);
    
// - Comeзo dos Comandos - //
    
if(strcmp(cmd"/kick"true) == 0)
    {
        new 
aname[MAX_PLAYERS_NAME], file[40];
        
GetPlayerName(playerid,aname,MAX_PLAYERS_NAME);
        
format(file,sizeof(file),CONTAS,aname);
        if(
pAdmin[playerid] != 1) return false;
        
strmid(tmp,cmdtext2,strlen(cmdtext));
        if(!
srlen(tmp)) return SendClientMessage(playerid,Vermelho,"Digite: /Kick [ID DO PLAYER]);
        format(string,sizeof(string), "
|ADMIN-CMDO Administrador %s Kikcou o Jogador %!" aname,tmp);
        SendClientMessage,playerid,azul" 
|ERROVocк nгo tem Permissгo para Executar este Comando!");
    }
    return 1;

Final do GM/FS
PHP код:
strtok(const string[], &index)
{
        new 
length strlen(string);
        while ((
index length) && (string[index] <= ' '))
        {
                
index++;
        }
        new 
offset index;
        new 
result[20];
        while ((
index length) && (string[index] > ' ') && ((index offset) < (sizeof(result) - 1)))
        {
                
result[index offset] = string[index];
                
index++;
        }
        
result[index offset] = EOS;
        return 
result;

Reply


Messages In This Thread
Comando Kick - by JokerHurley - 03.02.2013, 21:14
Re: Comando Kick - by NuTShoT - 03.02.2013, 21:22
Re: Comando Kick - by DanDRT - 03.02.2013, 21:24
Re: Comando Kick - by tonisantolia - 03.02.2013, 21:29
Re: Comando Kick - by DanDRT - 03.02.2013, 21:31
Re: Comando Kick - by JokerHurley - 03.02.2013, 21:32
Re: Comando Kick - by tonisantolia - 03.02.2013, 21:33
Re: Comando Kick - by XStylerX - 03.02.2013, 21:36
Re: Comando Kick - by JokerHurley - 03.02.2013, 21:37
Re: Comando Kick - by DanDRT - 03.02.2013, 21:38

Forum Jump:


Users browsing this thread: 6 Guest(s)