SA-MP Forums Archive
[AJUDA]Veiculos Com Interior - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [AJUDA]Veiculos Com Interior (/showthread.php?tid=264603)



[AJUDA]Veiculos Com Interior - Vageto[STK] - 26.06.2011

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


Re: [AJUDA]Veiculos Com Interior - Sr.Pekeno - 26.06.2011

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


Re: [AJUDA]Veiculos Com Interior - Shadoww5 - 26.06.2011

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;
}