[AJUDA]Veiculos Com Interior
#1

Eu Queria Saber Como eu fasso pra um busao(431)Ficar Com Interior Quando Der G e Ir Para o Int Shamal
Reply
#2

Eu tambem queria saber isso, tipo saber como tutorial etc.. aonde coloca, vou ficar de olho no tуpico, haha...
Reply
#3

PHP код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(
newstate == 3)
    {
        if(
GetVehicleModel(GetPlayerVehicleID(playerid)) == 431)
        {
            
SetPVarInt(playerid,"Veiculo", GetPlayerVehicleID(playerid));
            
SetPlayerPos(playerid, 1.7163,23.8062,1199.5938);
            
SetPlayerFacingAngle(playeid, 359.5455);
            
SetCameraBehindPlayer(playerid);
            
SetPlayerInterior(playerid, 1);
        }
    }
    return 
1;
}
public 
OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(
newkeys == 16)
    {
        if(
IsPlayerInRangeOfPoint(playerid, 1.81, 33.02, 1199.59))
        {
            new 
Float:Pos[3];
            
GetVehiclePos(GetPVarInt(playerid, "Veiculo"), Pos[0], Pos[1], Pos[2]);
            
SetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
            
SetPlayerInterior(playerid, 0);
            
DeletePVarInt(playerid, "Veiculo");
        }
    }
    return 
1;
} 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)