[Ajuda] Motocross interior
#1

Bem, estou com problema em criar veнculo aqui. O veнculo fica invisнvel '-'

Код:
            SetPlayerInterior(playerid,14);
            GameTextForPlayer(playerid,"~r~Bem-vindo ao MotoCross", 3000, 5);
            SetPlayerPos(playerid,-1465.268676,1557.868286,1052.531250);
            CreateVehicle(468,-1473.3514,1561.9587,1052.7500, 0, 1, 1, 10000) //problema aqui
            CreateVehicle(468,-1478.5458,1564.2191,1052.5313, 0, 1, 1, 10000) //e aqui '-'
            GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
            SendClientMessage(playerid, COR_DELETE, "[SERVER] Use '/kill' para sair daqui");
            format(stringa, sizeof(stringa), "[SERVER] %s Foi Para o MotoCross ( /stunts )", pname);
            SendClientMessageToAll(COR_AZUL, stringa);
Reply
#2

use essa funзгo. https://sampwiki.blast.hk/wiki/LinkVehicleToInterior
Reply
#3

pawn Код:
SetPlayerInterior(playerid,14);
            GameTextForPlayer(playerid,"~r~Bem-vindo ao MotoCross", 3000, 5);
            SetPlayerPos(playerid,-1465.268676,1557.868286,1052.531250);
            CreateVehicle(468,-1473.3514,1561.9587,1052.7500, 0, 1, 1, 10000)
            LinkVehicleToInterior(vehicle1, id);//id do int
            GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
            SendClientMessage(playerid, COR_DELETE, "[SERVER] Use '/kill' para sair daqui");
            format(stringa, sizeof(stringa), "[SERVER] %s Foi Para o MotoCross ( /stunts )", pname);
            SendClientMessageToAll(COR_AZUL, stringa);
Reply
#4

Quote:
Originally Posted by Ericky:
Посмотреть сообщение
Funcionou, valeu.

Код:
{
	    new cross1;
	    new cross2;
            SetPlayerInterior(playerid,14);
            GameTextForPlayer(playerid,"~r~Bem-vindo ao MotoCross", 3000, 5);
            SetPlayerPos(playerid,-1465.268676,1557.868286,1052.531250);
            cross1 = AddStaticVehicle(468,-1473.3514,1561.9587,1052.7500, 1, 1, 10000);
            cross2 = AddStaticVehicle(468,-1478.5458,1564.2191,1052.5313, 1, 1, 10000);
            LinkVehicleToInterior(cross1, 14);
            LinkVehicleToInterior(cross2, 14);
            GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
            SendClientMessage(playerid, COR_DELETE, "[SERVER] Use '/kill' para sair daqui");
            format(stringa, sizeof(stringa), "[SERVER] %s Foi Para o MotoCross ( /stunts )", pname);
            return SendClientMessageToAll(COR_DELETE, stringa);
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)