[Ajuda] /autoestacionar
#4

Suck, vocк tem skype?
Se sim, manda.

@edit
Tenta isto:

pawn Код:
if(strcmp(cmd, "/autoestacionar", true) == 0)
    {
        if(PlayerInfo[playerid][pCarro] == 255)
        {
           SendClientMessage(playerid, COLOR_GREY,"Vocк nгo possui um veiculo.");
           return 1;
        }
        if(!IsPlayerInAnyVehicle(playerid))
        {
            SendClientMessage(playerid,COLOR_GREY,"Vocк precisa estar no seu veiculo.");
            return 1;
        }
        new Float:x,Float:y,Float:z;
        new Float:a;
        new carid;
        new getcarid;
        if(IsPlayerInVehicle(playerid,carid) && CarInfo[carid][cOwned] == 1)
        {
            getcarid = GetPlayerVehicleID(playerid);
            GetPlayerName(playerid, playername, sizeof(playername));
            GetVehiclePos(carid, x, y, z);
            GetVehicleZAngle(carid, a);
            if(getcarid == carid)
            {
                CarInfo[carid][cLocationx] = x;
                CarInfo[carid][cLocationy] = y;
                CarInfo[carid][cLocationz] = z;
                CarInfo[carid][cAngle] = a;
                GameTextForPlayer(playerid, "Seu veiculo, dara respawn aqui.", 10000, 3);
                OnPropUpdate();
                OnPlayerUpdate(playerid);
                DestroyVehicle(carid);
                CreateVehicle(CarInfo[carid][cModel],CarInfo[carid][cLocationx],CarInfo[carid][cLocationy],CarInfo[carid][cLocationz],CarInfo[carid][cAngle],CarInfo[carid][cColorOne],CarInfo[carid][cColorTwo],60000);
                SaveCars();
                return true;
            }
            return true;
        }
        return true;
    }
Reply


Messages In This Thread
/autoestacionar - by SukMathcuck - 06.09.2014, 20:28
Re: /autoestacionar - by Bruno13 - 07.09.2014, 01:15
Re: /autoestacionar - by DeadNudock - 19.09.2014, 12:19
Re: /autoestacionar - by ipsLuan - 19.09.2014, 12:43
Re: /autoestacionar - by DeadNudock - 19.09.2014, 15:22
Re: /autoestacionar - by ipsLuan - 19.09.2014, 15:39
Re: /autoestacionar - by MultiKill - 19.09.2014, 16:40
Re: /autoestacionar - by Rodrigues2015 - 20.09.2014, 03:16
Re: /autoestacionar - by DeadNudock - 20.09.2014, 03:54
Re: /autoestacionar - by Rodrigues2015 - 20.09.2014, 04:28

Forum Jump:


Users browsing this thread: 3 Guest(s)