26.06.2011, 20:45
Eu Queria Saber Como eu fasso pra um busao(431)Ficar Com Interior Quando Der G e Ir Para o Int Shamal
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;
}