[Ajuda] Comando estranho
#2

pawn Код:
CMD:freeze(playerid, params[])
{
    if(IsPlayerAdmin(playerid))
    {
        new id;
        new string[64];
        new string1[64];
        new playername[MAX_PLAYER_NAME];
        GetPlayerName(playerid, playername, sizeof(playername));
        if(sscanf(params, "u", id)) return SendClientMessage(playerid, INFO,"[ USO: ] /freeze [playerid]");
        if(!IsPlayerConnected(id)) return SendClientMessage(playerid, FAIL,"[ ERRO: ] O player nгo estб conectado.");
        TogglePlayerControllable(id);
        format(string, sizeof(string), "Tu freezaste o jogador com o id ( %d ) ", id);
        SendClientMessage(playerid, SUCESSO, string);
        format(string1, sizeof(string1), "Foste congelado pelo administrador %s.", playername);
        SendClientMessage(id, INFO, string1);
    }
    else
    {
         SendClientMessage(playerid, FAIL, "[ ERRO: ] Tu nгo йs Administrador.");
    }
    return 1;
}
Reply


Messages In This Thread
Comando estranho - by bruxo00 - 09.04.2013, 17:38
Respuesta: Comando estranho - by Pedro Pawno - 09.04.2013, 17:48
Re: Comando estranho - by Baiano - 09.04.2013, 17:50
Re: Comando estranho - by bruxo00 - 09.04.2013, 18:04
Respuesta: Comando estranho - by Pedro Pawno - 09.04.2013, 18:17
Re: Comando estranho - by bruxo00 - 09.04.2013, 18:24
Respuesta: Comando estranho - by Pedro Pawno - 09.04.2013, 18:26
Re: Comando estranho - by bruxo00 - 09.04.2013, 18:42
Re: Comando estranho - by Delete_ - 09.04.2013, 19:35
Re: Comando estranho - by bruxo00 - 10.04.2013, 12:49

Forum Jump:


Users browsing this thread: 1 Guest(s)