[AJUDA]samp 0.3e
#5

Eu utilizo este no meu servidor.
pawn Код:
if(strcmp(cmd, "/algemar", true) == 0 || strcmp(cmd, "/algemar", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(PlayerInfo[playerid][pTanabolisante] > 0) return SendClientMessage(playerid,COLOR_GREY,"<!> Vocк estб suspenso!");
            if(IsACop(playerid))
            {
                tmp = strtok(cmdtext, idx);
                if(!strlen(tmp)) {
                    SendClientMessage(playerid, COLOR_WHITE, "<!> /algemar [IdDOPlayer/ParteDoNome]");
                    return 1;
                }

                if(PlayerInfo[playerid][pDuty] == 0)
                {
                    SendClientMessage(playerid, COLOR_GREY, "* Vocк nгo estб em serviзo!");
                    return 1;
                }
                giveplayerid = ReturnUser(tmp);
                if(IsPlayerConnected(giveplayerid))
                {
                    if(giveplayerid != INVALID_PLAYER_ID)
                    {
                        if(IsACop(giveplayerid))
                        {
                            SendClientMessage(playerid, COLOR_GREY, "* Vocк nгo pode algemar um policial !");
                            return 1;
                        }
                        if(PlayerCuffed[giveplayerid] > 0)
                        {
                            SendClientMessage(playerid, COLOR_GREY, "* Jogador jб estб algemado !");
                            return 1;
                        }
                        if (ProxDetectorS(8.0, playerid, giveplayerid))
                        {
                            if(giveplayerid == playerid) return SendClientMessage(playerid, COLOR_GREY, "Vocк nгo pode se alegmar!");
                            GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
                            format(string, sizeof(string), "* %s leva a mгo atй a cintura, em seguida retirando um par de algemar e algemando %s.", sendername ,giveplayer);
                            ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                            SetPlayerAttachedObject(giveplayerid, 4, 19418, 6, -0.031999, 0.024000, -0.024000, -7.900000, -32.000011, -72.299987, 1.115998, 1.322000, 1.406000);
                            SetPlayerSpecialAction(giveplayerid, SPECIAL_ACTION_CUFFED);

                        }
                        else
                        {
                            SendClientMessage(playerid, COLOR_GREY, "* Este player nгo estб perto de vocк !");
                            return 1;
                        }
                    }
                }
                else
                {
                    SendClientMessage(playerid, COLOR_GREY, "* Este player estб offline !");
                    return 1;
                }
            }
            else
            {
                SendClientMessage(playerid, COLOR_GREY, "* vocк nгo й um COP !");
            }
        }
        return 1;
    }
Reply


Messages In This Thread
[AJUDA]samp 0.3e - by Rick_FusioN - 14.05.2012, 00:05
Re: [AJUDA]samp 0.3e - by dPlaYer_ - 14.05.2012, 00:07
Re: [AJUDA]samp 0.3e - by Rick_FusioN - 14.05.2012, 00:08
Re: [AJUDA]samp 0.3e - by Rick_FusioN - 14.05.2012, 00:10
Re: [AJUDA]samp 0.3e - by After - 14.05.2012, 00:15
Re: [AJUDA]samp 0.3e - by Josma_cmd - 14.05.2012, 00:16
Re: [AJUDA]samp 0.3e - by Rick_FusioN - 14.05.2012, 00:25
Re: [AJUDA]samp 0.3e - by Rick_FusioN - 14.05.2012, 00:29
Re: [AJUDA]samp 0.3e - by Rick_FusioN - 14.05.2012, 00:32
Re: [AJUDA]samp 0.3e - by After - 14.05.2012, 00:35

Forum Jump:


Users browsing this thread: 1 Guest(s)