[Pedido] /algemar e /desalgemar
#1

Quem tem aquele /algemar com as mгos para traz e fora do carro e o /desalgemar que possa me passar, atй um tempo atraz eu tinha um mais perdi ele, se ninguem tiver poder me passar pelo menos as animes e as instruзхes ficarei grato.

Obrigado!
Reply
#2

Quote:
Originally Posted by iStronG
Посмотреть сообщение
Quem tem aquele /algemar com as mгos para traz e fora do carro e o /desalgemar que possa me passar, atй um tempo atraz eu tinha um mais perdi ele, se ninguem tiver poder me passar pelo menos as animes e as instruзхes ficarei grato.

Obrigado!
PHP код:
if(strcmp(cmd"/algemar"true) == 0)
    {
        if(
IsPlayerConnected(playerid))
        {
            if(!
IsACop(playerid) && !IsAGOV(playerid))
            {
                
SendClientMessage(playeridCOLOR_GREY"   Vocк nгo й um policial nem um membro do Governo!");
                return 
true;
            }
            
tmp strtok(cmdtextidx);
            if(!
strlen(tmp))
            {
                
SendClientMessage(playeridCOLOR_WHITE"Use: /algemar [id]");
                return 
true;
            }
            
giveplayerid ReturnUser(tmp);
            if(
IsPlayerConnected(giveplayerid))
            {
                if(
giveplayerid != INVALID_PLAYER_ID)
                {
                    if(
gTeam[giveplayerid] == || IsACop(giveplayerid))
                    {
                        
SendClientMessage(playeridCOLOR_GREY"   Vocк nгo pode algemar COPs !");
                        return 
true;
                    }
                    if(
PlayerCuffed[giveplayerid] > 0)
                    {
                        
SendClientMessage(playeridCOLOR_GREY"   O Jogador jб esta algemado !");
                        return 
true;
                    }
                    if (
ProxDetectorS(8.0playeridgiveplayerid))
                    {
                        if(
giveplayerid == playerid)
                        {
                            
SendClientMessage(playeridCOLOR_GREY"Vocк nao pode se algemar!");
                            return 
true;
                        }
                            
GetPlayerName(giveplayeridgiveplayersizeof(giveplayer));
                            
GetPlayerName(playeridsendernamesizeof(sendername));
                            
format(stringsizeof(string), "* Vocк foi algemado pelo: %s."PlayerName(playerid));
                            
SendClientMessage(giveplayeridCOLOR_LIGHTBLUEstring);
                            
format(stringsizeof(string), "* Vocк algemou %s."giveplayer);
                            
SendClientMessage(playeridCOLOR_LIGHTBLUEstring);
                            
format(stringsizeof(string), "* %s Algemou %s, para nao fugir."sendername ,giveplayer);
                            
ProxDetector(30.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                            
GameTextForPlayer(giveplayerid"~r~Algemado"25003);
                            
SetPlayerAttachedObject(giveplayerid4194186, -0.0319990.024000, -0.024000, -7.900000, -32.000011, -72.2999871.1159981.3220001.406000);
                            
SetPlayerSpecialAction(giveplayeridSPECIAL_ACTION_CUFFED);
                            
PlayerCuffed[giveplayerid] = 2;
                    }
                    else
                    {
                        
SendClientMessage(playeridCOLOR_GREY"   O Jogador estб longe de Vocк !");
                        return 
true;
                    }
                }
            }
            else
            {
                
SendClientMessage(playeridCOLOR_GREY"   O Jogador Estб Offline !");
                return 
true;
            }
        }
        return 
true;
    }
    if(
strcmp(cmd"/desalgemar"true) == 0)
    {
        if(
IsPlayerConnected(playerid))
        {
            if(
gTeam[playerid] == || IsACop(playerid) || IsAGOV(playerid))
            {
                
tmp strtok(cmdtextidx);
                if(!
strlen(tmp))
                {
                    
SendClientMessage(playeridCOLOR_WHITE"Use: /desalgemar [id]");
                    return 
true;
                }
                
giveplayerid ReturnUser(tmp);
                if(
IsPlayerConnected(giveplayerid))
                {
                    if(
giveplayerid != INVALID_PLAYER_ID)
                    {
                        if (
ProxDetectorS(8.0playeridgiveplayerid))
                        {
                            if(
giveplayerid == playerid)
                            {
                                
SendClientMessage(playeridCOLOR_GREY"Vocк nгo pode se desalgemar!");
                                return 
true;
                            }
                            if(
PlayerCuffed[giveplayerid])
                            {
                                
GetPlayerName(giveplayeridgiveplayersizeof(giveplayer));
                                
GetPlayerName(playeridsendernamesizeof(sendername));
                                
format(stringsizeof(string), "* Vocк foi desalgemado pelo: %s."PlayerName(playerid));
                                
SendClientMessage(giveplayeridCOLOR_LIGHTBLUEstring);
                                
format(stringsizeof(string), "* Vocк desalgemou %s."giveplayer);
                                
SendClientMessage(playeridCOLOR_LIGHTBLUEstring);
                                
GameTextForPlayer(giveplayerid"~g~Desalgemado"25003);
                                
Controle(giveplayerid1);
                                
RemovePlayerAttachedObject(giveplayerid4);
                                
SetPlayerSpecialAction(giveplayeridSPECIAL_ACTION_NONE);
                                
PlayerCuffed[giveplayerid] = 0;
                                
PlayerInfo[giveplayerid][pMuted] = 0;
                            }
                            else
                            {
                                
SendClientMessage(playeridCOLOR_GREY"   Este jogador nгo estб algemado !");
                                return 
true;
                            }
                        }
                        else
                        {
                            
SendClientMessage(playeridCOLOR_GREY"   O Jogador estб longe de vocк !");
                            return 
true;
                        }
                    }
                }
                else
                {
                    
SendClientMessage(playeridCOLOR_GREY"   O Jogador Estб Offline !");
                    return 
true;
                }
            }
            else
            {
                
SendClientMessage(playeridCOLOR_GREY"   Vocк nгo e PM/PR/PC/Exercito !");
            }
        }
//not connected
        
return true;
    } 
Reply
#3

Vou ir testar aqui obrigado desde jб
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)