[Ajuda] CMD's
#1

galera como q eu faзo pra quando um player errar o comando aparecer :

O Comando %s Nгo Existe!

ao invez de SERVER: Unknown Command


eu Uso Zcmd

Obrigado...
Reply
#2

pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
    if(!success)
    {
        new string2[41];
        format(string2, 46, "[ERRO] O comando %s nгo existe!",cmdtext);        return SendClientMessage(playerid, -1, string2);
    }
    return true;
}
Reply
#3

Vou Testar e dou 1 Edit

@Edit

Vlw Funciono
Reply
#4

Sorry I only speak english, but here you go:

pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
    if(success == 0) return SendClientMessage(playerid, -1, "Sorry, command unknown, type /cmds");
    return 1;
}
Also make sure OnPlayerCommandText returns 0; if you are using stuff like ZCMD, or YCMD.


EDIT: damn it I was a few seconds late
Reply
#5

Quote:
Originally Posted by DeathTone
Посмотреть сообщение
Sorry I only speak english, but here you go:

pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
    if(success == 0) return SendClientMessage(playerid, -1, "Sorry, command unknown, type /cmds");
    return 1;
}
Also make sure OnPlayerCommandText returns 0; if you are using stuff like ZCMD, or YCMD.


EDIT: damn it I was a few seconds late
TKS
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)