[Ajuda] Comando /desamarrar bugado
#1

Tipo q , quando eu uso /desamarrar , apareceu normal q o player foi libertado e tal ...
mas quando eu tento sair do veiculo meio q ele sai e dps volta ... auguem sabe pq ta assim ?
o Codigo do desamarrar

PHP код:
if(strcmp(cmd"/desamarrarF"true) == 0)
        {
        if(
IsPlayerConnected(playerid))
        {
            if(
PlayerInfo[playerid][pFamilia] == || PlayerInfo[playerid][pLFamilia] == 1)
            {
                if(
PlayerInfo[playerid][pFamilia] < 1)
                {
                    
SendClientMessage(playeridCOLOR_GREY"   Vocк precisa ser de Familia para usar esse Comando !");
                    return 
1;
                }
                if(
Sequestrado[playerid] == 1)
                {
                    
SendClientMessage(playeridCOLOR_GREY"Voce esta sendo sequestrado e nao pode usar este Comando!");
                    return 
1;
                }
                
tmp strtok(cmdtextidx);
                if(!
strlen(tmp))
                {
                    
SendClientMessage(playeridCOLOR_WHITE"USE: /desamarrar [id]");
                    return 
1;
                }
                
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 desamarrar а sн mesmo!"); return 1; }
                            if(
PlayerTied[giveplayerid])
                            {
                                
GetPlayerName(giveplayeridgiveplayersizeof(giveplayer));
                                
GetPlayerName(playeridsendernamesizeof(sendername));
                                
format(stringsizeof(string), "* Vocк foi libertado por %s."sendername);
                                
SendClientMessage(giveplayeridCOLOR_LIGHTBLUEstring);
                                
format(stringsizeof(string), "* Vocк libertou %s."giveplayer);
                                
SendClientMessage(playeridCOLOR_LIGHTBLUEstring);
                                
GameTextForPlayer(giveplayerid"~g~Libertado"25003);
                                
TogglePlayerControllable(giveplayerid1);
                                
PlayerTied[giveplayerid] = 0;
                                
PlayerInfo[giveplayerid][pMuted] = 0;
                            }
                            else
                            {
                                
SendClientMessage(playeridCOLOR_GREY"   O Jogador nгo estб sequestrado !");
                                return 
1;
                            }
                        }
                        else
                        {
                            
SendClientMessage(playeridCOLOR_GREY"   O Jogador estб longe de Vocк !");
                            return 
1;
                        }
                    }
                }
                else
                {
                    
SendClientMessage(playeridCOLOR_GREY"   O Jogador Estб Offline !");
                    return 
1;
                }
            }
            else
            {
                
SendClientMessage(playeridCOLOR_GREY"   Vocк nгo й da Familia !");
            }
        }
        return 
1;
    } 
Reply


Messages In This Thread
Comando /desamarrar bugado - by Samuel300 - 04.09.2013, 22:12
Re: Comando /desamarrar bugado - by Russo66 - 04.09.2013, 22:21
Re: Comando /desamarrar bugado - by DannielCooper - 04.09.2013, 22:23
Re: Comando /desamarrar bugado - by Samuel300 - 04.09.2013, 22:27
Re: Comando /desamarrar bugado - by DannielCooper - 04.09.2013, 22:30
Re: Comando /desamarrar bugado - by Samuel300 - 04.09.2013, 23:18
Re: Comando /desamarrar bugado - by Russo66 - 04.09.2013, 23:22
Re: Comando /desamarrar bugado - by Samuel300 - 04.09.2013, 23:40
Re: Comando /desamarrar bugado - by Coe1 - 04.09.2013, 23:41
Re: Comando /desamarrar bugado - by Samuel300 - 04.09.2013, 23:43

Forum Jump:


Users browsing this thread: 1 Guest(s)