[Pedido] congela
#4

Quote:
Originally Posted by Lуs
View Post
Obtenha o nome do jogador alvo, depois da checagem do sscanf.
Este й um erro grotesco de lуgica...


Estarei postando um tutorial sobre isto, enfim.


pawn Code:
CMD:congelar(playerid, params[]){

    if(isnull(parmas)){
        return  SendClientMessage ( playerid, -1, "[ USE ]: /congelar [ID]" ), false;
    }
   
    if(!IsPlayerConnected(strval(params[0])) || IsPlayerAdmin(strval(params[0])){
        return SendClientMessage(playerid, -1, "Erro: N CONECTADO");
    }
   
    TogglePlayerControllable(strval(params[0]), 0);
   
   
    static str[100], no[24];
    format(str, 100, "%s foi congelado por %s", (GetPlayerName(strval(params[0]), no, 24), no), (GetPlayerName(playerid, no, 24), no));
    SendClientMessageToAll(-1, str);
   
    return true;
}
Nгo testado.
Reply


Messages In This Thread
congela - by xGamminG - 16.04.2013, 01:35
Re: congela - by smiiir - 16.04.2013, 01:40
Re: congela - by Lуs - 16.04.2013, 01:43
Re: congela - by zSuYaNw - 16.04.2013, 02:52

Forum Jump:


Users browsing this thread: 3 Guest(s)