SA-MP Forums Archive
Ajuda Prender ID Tempo Motivo - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: Ajuda Prender ID Tempo Motivo (/showthread.php?tid=433619)



Ajuda Prender ID Tempo Motivo - Cromado - 28.04.2013

Bom eu tava querendo um comando de prender id tempo motivo etc.... mais eu tentei o /canrandiru e nгo deu eo /bangu , alguem me passe um de acordo com as coisas do meu server? REPLY


Nгo sei se vai precisar mais e um comando do server quem sabe vc pode ta tirando coisas do comando e adcionando

Apenas um exemplo da variavel do meu GM

new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
format(file, sizeof(file), P_CONTAS, aname);
if(pAdmin[playerid] == 5){
new tmp[256];
new plid, grana;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)){
SendClientMessage(playerid, Vermelho
return 1;
}
plid = strval(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, Vermelho
Return 1;

Por favor me ajudem


Re: Ajuda Prender ID Tempo Motivo - DannielCooper - 28.04.2013

Mano, nгo entendi, vocк quer ajuda com esse code ae ? Ou fazendo outro pra vocк ?


Re: Ajuda Prender ID Tempo Motivo - bruxo00 - 28.04.2013

Tem este do meu script de Admin:

pawn Код:
CMD:aj(playerid, params[]) // AJ
{
    if(IsPlayerAdmin(playerid))
    {
        new id;
       
        if(checkaj[id] == 0)
        {
            new string[128];
            new string1[128];
            new reason[32];
            new nomeadmin[MAX_PLAYER_NAME];
            new nomeplayer[MAX_PLAYER_NAME];

            if(sscanf(params, "us", id, reason)) return SendClientMessage(playerid, INFO,"[ USO: ] /aj [playerid] [razгo]");
            if(!IsPlayerConnected(id)) return SendClientMessage(playerid, FAIL,"[ ERRO: ] O player nгo estб conectado.");
            GetPlayerName(playerid, nomeadmin, sizeof(nomeadmin));
            GetPlayerName(id, nomeplayer, sizeof(nomeplayer));
            format(string, sizeof(string), "Tu deste AJ ao jogador %s.", nomeplayer);
            format(string1, sizeof(string1), "Foste de Admin Jail pelo Administrador %s e perdeste 1000$. Razгo: %s", nomeadmin, reason);
            SendClientMessage(playerid, SUCESSO, string);
            SendClientMessage(id, INFO, string1);
            SetPlayerPos(id, 1232.4852,640.1943,0.4801);
            GivePlayerMoney(id, -1000);
            checkaj[playerid] = 1;
        }
        else
        {
            new string[128];
            new string1[128];
            new reason[32];
            new nomeadmin[MAX_PLAYER_NAME];
            new nomeplayer[MAX_PLAYER_NAME];

            if(sscanf(params, "us", id, reason)) return SendClientMessage(playerid, INFO,"[ USO: ] /aj [playerid] [razгo]");
            if(!IsPlayerConnected(id)) return SendClientMessage(playerid, FAIL,"[ ERRO: ] O player nгo estб conectado.");
            GetPlayerName(playerid, nomeadmin, sizeof(nomeadmin));
            GetPlayerName(id, nomeplayer, sizeof(nomeplayer));
            format(string, sizeof(string), "Tu tiraste do AJ o jogador %s.", nomeplayer);
            format(string1, sizeof(string1), "O Administrador %s tirou-te do Admin Jail. Razгo: %s", nomeadmin, reason);
            SendClientMessage(playerid, SUCESSO, string);
            SendClientMessage(id, INFO, string1);
            SetPlayerPos(id, -1560.8135,535.6848,7.8362);
            checkaj[playerid] = 0;
        }
    }
    else
    {
        SendClientMessage(playerid, FAIL, "[ ERRO: ] Tu nгo йs Administrador.");
    }
    return 1;
}
Precisa das includes:

pawn Код:
#include < zcmd >
#include < sscanf >
Esse comando й sу para admins por RCON, altere-o a seu gosto.


Re: Ajuda Prender ID Tempo Motivo - Psat - 28.04.2013

Nгo entendi nada.


Re: Ajuda Prender ID Tempo Motivo - Cromado - 29.04.2013

Desculpe exageriei no comando ali encima bom vou dar uma resumida eu quero um comando de /algemar id motivo tempo mais que nгo seja aquele do /bangu

ESQUECEM ESSE COMANDO INUTIL
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
format(file, sizeof(file), P_CONTAS, aname);
if(pAdmin[playerid] == 5){
new tmp[256];
new plid, grana;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)){
SendClientMessage(playerid, Vermelho
return 1;
}
plid = strval(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, Vermelho
Return 1;


Re: Ajuda Prender ID Tempo Motivo - Cromado - 29.04.2013

tipo o comando que eu quero e um /algemar id tempo motivo sabe etc....

Mais por favor esquecem isso

eu me enganei nisso
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
format(file, sizeof(file), P_CONTAS, aname);
if(pAdmin[playerid] == 5){
new tmp[256];
new plid, grana;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)){
SendClientMessage(playerid, Vermelho
return 1;
}
plid = strval(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, Vermelho
Return 1;