[Ajuda] Comando Kick
#3

Tente:
PHP код:
public OnPlayerCommandText(playeridcmdtext[])
{
    if(
strcmp(cmd,"/kick",true)==0)
    {
        new 
aname[MAX_PLAYER_NAME];
        
GetPlayerName(playerid,aname,MAX_PLAYER_NAME);
        
format(file,sizeof(file),CONTAS,aname);
        if(
pAdmin[playerid]== 1)
        {
            new 
tmp[256]
            
strmid(tmp,cmdtext2,strlen(cmdtext));
            if(!
srlen(tmp)) 
            {
                
SendClientMessage(playerid,Vermelho,"Digite: /Kick [ID DO PLAYER]);
                return 1;
            }
            else
            {
                format(string,sizeof(string), "
|ADMIN-CMDO Administrador %s Kikcou o Jogador %!"aname,tmp);
                return 1;
                SendClientMessage,playerid,azul," 
|ERROVocк nгo tem Permissгo para Executar este Comando!");
            }
            return 1;
        } 
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: 1 Guest(s)