[Ajuda] Comando
#7

Quote:
Originally Posted by vdsvinicius
Посмотреть сообщение
Cara ve o que tem de errado ai pa eu:
pawn Код:
public OnPlayerCommandText(playerid,cmdtext[])
{
     if (strcmp("noob", cmdtext, true)==0)
    {
        new string[256];
        new nome[MAX_PLAYER_NAME];
        GetPlayerName(playerid, nome, MAX_PLAYER_NAME);
        format(string, sizeof(string), "[NOOB]: o Player %s Foi Kickado Do Servidor Por Motivo[Palavreado excessivamente ofensivo", nome);
        Kick(playerid);
        return 1;
}

     if(strcmp(cmdtext,"/tutorial",true)==0)
    {
        SendClientMessage(playerid,COR_CINZA_AZUL,"Esse й um gamemode baseado em The Walking Dead.(Serie de zombies).");
        SendClientMessage(playerid,COLOR_YELLOW,"Zombis devem esfaquear humanos para infectб-los.");
        SendClientMessage(playerid,COLOR_YELLOW,"Humanos devem fugir e tentar matar os Zombis.");
        SendClientMessage(playerid,COLOR_RED,"[AVISO] Os Zombis tem 150 de HP, e Humanos 100!");
        SendClientMessage(playerid,COLOR_GREEN,"Com uma facada vocк vira zombi, entгo tome cuidado!!");
        return 1;
    }

    SendClientMessage(playerid,COLOR_RED,"[ERRO]: Esse comando nгo existe!");
    return 0;
}
Toda vez que add um cmd da erro ou os cmds nгo funcionam
Pegue o codigo que eu passei..
E coloque em " OnPlayerText "

pawn Код:
if (strcmp("noob", cmdtext, true) || strcmp("PALAVRA", cmdtext, true)  || strcmp("PALAVRA", cmdtext, true) ==0) //--- queria colocar mais nomes aki, Ex: troxa, server lixo, ETC...
{
        Kick(playerid);
        SendClientMessageToAll(COR_ROXO, "Um Noob foi kikado por: Noй, Motivo: Palavreado excessivamente ofensivo" );
        return 0;
}
Reply


Messages In This Thread
Comando - by vdsvinicius - 11.07.2012, 21:56
Re: Comando - by R3S1D3NT1 - 11.07.2012, 22:06
Re: Comando - by @Riichard - 11.07.2012, 22:10
Re: Comando - by R3S1D3NT1 - 11.07.2012, 22:11
Re: Comando - by vdsvinicius - 11.07.2012, 22:14
Re: Comando - by Saw_BR - 11.07.2012, 22:16
Re: Comando - by @Riichard - 11.07.2012, 22:17
Re: Comando - by vdsvinicius - 11.07.2012, 22:19
Re: Comando - by @Riichard - 11.07.2012, 22:23
Re: Comando - by .FuneraL. - 11.07.2012, 22:27

Forum Jump:


Users browsing this thread: 1 Guest(s)