[Ajuda] /desbugar
#5

EU USO ESTI Й BOM MAS NAO DESBUGA NINGUEM DE INTERIOR SE QUISER USALO

PHP код:
    if(strcmp(cmd"/desbugar"true) == 0)
    {
        if(
IsPlayerConnected(playerid))
        {
            
tmp strtok(cmdtextidx);
            if(!
strlen(tmp))
            {
                
SendClientMessage(playeridCOLOR_GRAD2"USO: /desbugar [id]");
                return 
1;
            }
            new 
para1;
            
para1 strval(tmp);
            
tmp strtok(cmdtextidx);
            if (
PlayerInfo[playerid][pAdmin] >= 1)
            {
            new 
Float:slx 0.000000Float:sly 0.000000Float:slz 0.000000Float:Pa 0.000000;
            
GetPlayerPos(para1slxslyslz);//PEGA POS
            
GetPlayerFacingAngle(para1Pa);//PEGA ANGULO
            
RemovePlayerFromVehicle(para1);//REMOVE VEICULO SE ESTIVE
            
SetPlayerPos(para1slxslyslz+3);//JOGA PLAYER AO ALTO PARA DESBUGAR (NAO MATA)
            
TogglePlayerControllable(para1,1);//SE TIVE CONGELADO DESONGLEA
            
SetPlayerInterior(playerid0);//SETA INTERIOR PRA ZERO
            
SetPlayerHealth(playerid,100);//SETA VIDA 100
            
PlayerInfo[playerid][pMuted] = 0;//SE TIVER MUTADO EL TIRA
            
{
            
SendClientMessage(playeridCOLOR_GRAD1"   Desbugado Com sucesso!");
            }
            
ABroadcast(COLOR_LIGHTRED,string,1);
            }
            else
            {
                
SendClientMessage(playeridCOLOR_GRAD1"   Voce nao tem permissao para usar esse comando!");
            }
        }
        return 
1;
    } 
Reply


Messages In This Thread
/desbugar - by Netiinho - 26.04.2014, 15:14
Re: /desbugar - by AndreOliveira - 26.04.2014, 15:16
Re: /desbugar - by DownGrade - 26.04.2014, 15:49
Re: /desbugar - by Caio_Freeze - 26.04.2014, 16:28
Re: /desbugar - by rogerioexper - 26.04.2014, 16:57

Forum Jump:


Users browsing this thread: 1 Guest(s)