SA-MP Forums Archive
[Ajuda] no /carandiru - 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] no /carandiru (/showthread.php?tid=286699)



[Ajuda] no /carandiru - Raphael_Lima - 30.09.2011

Bom nao sei se ja tem um topico com essa pergunta, eu coloquei o sistema neon FS, quando coloquei nao dava mais para entrar.


Re: Ajuda no /carandiru - Mattos - 30.09.2011

??


Re: Ajuda no /carandiru - Raphael_Lima - 30.09.2011

ops desculpa esquecir
Quote:

SendClientMessage(playerid, COLOR_GRAD2, "USE: /carandiru [id] [ Tempo ]");
return 1;
}
if(!strlen(tempo))
{
SendClientMessage(playerid, COLOR_GRAD2, "USE: /carandiru [id] [ Tempo ]");
}
if(PlayerInfo[giveplayerid][pAdmin] >= 1339 && PlayerInfo[playerid][pAdmin] < 133
{
SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo pode dar carandiru para um Admin Dono !");
return 1;

to querendo coloca /carandiru ID e Motivo, se poder da uma ajudar...


Re: Ajuda no /carandiru - WLSF - 30.09.2011

Oque tem haver Neon com Carandiru? e esse /carandiru estб incompleto poste todo ele..


Re: Ajuda no /carandiru - Raphael_Lima - 30.09.2011

Quote:

if(strcmp(cmd, "/carandiru",true) == 0)
{
if(IsPlayerConnected(playerid))
{
new tempo[20];
new tempo2;
if(PlayerInfo[playerid][pAdmin] < 2)
{
SendClientMessage(playerid, COLOR_GREY, " Vocк nгo esta autorizado para usar este comando!");
return 1;
}
tmp = strtok(cmdtext, idx);
tempo = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USE: /carandiru [id] [ Tempo ]");
return 1;
}
if(!strlen(tempo))
{
SendClientMessage(playerid, COLOR_GRAD2, "USE: /carandiru [id] [ Tempo ]");
}
if(PlayerInfo[giveplayerid][pAdmin] >= 1339 && PlayerInfo[playerid][pAdmin] < 133
{
SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo pode dar carandiru para um Admin Dono !");
return 1;
}
if(admtrampando[playerid] < 1 && PlayerInfo[playerid][pAdmin] != 1342)
{
SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo estб trabalhando! (/trabalhar)");
return 1;
}
giveplayerid = ReturnUser(tmp);
tempo2 = strval(tempo);
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
new string[128];
format(string,sizeof(string), "%s foi preso no carandiru pelo admin: %s.", giveplayer ,sendername);
SendClientMessageToAll(COLOR_LIGHTRED,string,1);
if(admtrampando[playerid] == 1 && admhide[playerid] == 1)
else
{
format(string, sizeof(string), "* Vocк foi colocado no Carandiru Pelo Admin %s.", sendername);
SendClientMessage(giveplayerid, COLOR_LIGHTRED, string);
}

Bom, pesso desculpas, to morrendo de sono, me enganei de topico


Re: Ajuda no /carandiru - Pharrel - 30.09.2011

usa [pawn] CODIGO AQUI! [ /pawn]


Re: Ajuda no /carandiru - Raphael_Lima - 30.09.2011

pawn Код:
if(strcmp(cmd, "/carandiru",true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            new tempo[20];
            new tempo2;
            if(PlayerInfo[playerid][pAdmin] < 2)
            {
                SendClientMessage(playerid, COLOR_GREY, "   Vocк nгo esta autorizado para usar este comando!");
                return 1;
            }
            tmp = strtok(cmdtext, idx);
            tempo = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_GRAD2, "USE: /carandiru [id] [ Tempo ]");
                return 1;
            }
            if(!strlen(tempo))
            {
            SendClientMessage(playerid, COLOR_GRAD2, "USE: /carandiru [id] [ Tempo ]");
            }
            if(PlayerInfo[giveplayerid][pAdmin] >= 1339 && PlayerInfo[playerid][pAdmin] < 1338)
            {
                SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo pode dar carandiru para um Admin Dono !");
                return 1;
            }
            if(admtrampando[playerid] < 1 && PlayerInfo[playerid][pAdmin] != 1342)
            {
                SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo estб trabalhando! (/trabalhar)");
                return 1;
            }
            giveplayerid = ReturnUser(tmp);
            tempo2 = strval(tempo);
            if(IsPlayerConnected(giveplayerid))
            {
                if(giveplayerid != INVALID_PLAYER_ID)
                {
                    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
                    GetPlayerName(playerid, sendername, sizeof(sendername));
                    new string[128];
                    format(string,sizeof(string), "%s foi preso no carandiru pelo admin: %s.", giveplayer ,sendername);
                    SendClientMessageToAll(COLOR_LIGHTRED,string,1);
                    if(admtrampando[playerid] == 1 && admhide[playerid] == 1)
                    {
                        SendClientMessage(giveplayerid, COLOR_LIGHTRED, "* Vocк foi colocado no Carandiru Pelo Admin Chuck_Norris.");
                    }
                    else
                    {
                        format(string, sizeof(string), "* Vocк foi colocado no Carandiru Pelo Admin %s.", sendername);
                        SendClientMessage(giveplayerid, COLOR_LIGHTRED, string);
                    }
/\


Re: Ajuda no /carandiru - Raphael_Lima - 30.09.2011

alguem ae sabe o que eu devo modificar?