[Ajuda] OnRconCommand(cmd[])
#9

Quote:
Originally Posted by ViniBorn
Посмотреть сообщение
Se vocк quer que apenas admin rcon use o comando, faзa assim
pawn Код:
if(!strcmp(cmd,"setarvip",true))
{
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "Vocк nгo tem permissгo.");

    ShowPlayerDialog(playerid, DIALOG_DARVIP, DIALOG_STYLE_INPUT,"SetarVip","Digite o [ID] ou o [NICK] do jogador. \nE os [DIAS] que serб vip.","Setar","Cancelar");
    return 1;
}
Falta parвmetro "playerid", sendo que na callback й inexistente.



Tente isto,
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[]){

    if(!strcmp(cmdtext,"/rcon setarvip",true))
    {
   
        printf("%s", cmdtext);
        if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "Vocк nгo tem permissгo.");

        ShowPlayerDialog(playerid, 5, DIALOG_STYLE_INPUT,"SetarVip","Digite o [ID] ou o [NICK] do jogador. \nE os [DIAS] que serб vip.","Setar","Cancelar");
        return 1;
    }
    return 0;
}
Estou sem GTA, nгo testado.
Reply


Messages In This Thread
OnRconCommand(cmd[]) - by Marlon307 - 02.08.2014, 14:23
Re: OnRconCommand(cmd[]) - by darkxdll - 02.08.2014, 14:25
Re: OnRconCommand(cmd[]) - by Marlon307 - 02.08.2014, 14:26
Re: OnRconCommand(cmd[]) - by darkxdll - 02.08.2014, 14:30
Re: OnRconCommand(cmd[]) - by Marlon307 - 02.08.2014, 14:32
Re: OnRconCommand(cmd[]) - by darkxdll - 02.08.2014, 14:36
Re: OnRconCommand(cmd[]) - by Marlon307 - 02.08.2014, 14:46
Re: OnRconCommand(cmd[]) - by ViniBorn - 02.08.2014, 17:56
Re: OnRconCommand(cmd[]) - by zSuYaNw - 02.08.2014, 18:12
Re: OnRconCommand(cmd[]) - by ViniBorn - 02.08.2014, 18:16

Forum Jump:


Users browsing this thread: 2 Guest(s)