04.02.2013, 20:18
When I'm passenger and Vehicle's driver enter and exit tuning garage, my interior stays in garage's interior.
public OnEnterExitModShop(playerid, enterexit, interiorid)
{
new vid=GetPlayerVehicleID(playerid);
for(new i; i<MAX_PLAYERS; i++)
{
if(IsPlayerInVehicle(i,vid))
{
if(GetPlayerSeat(i)==0)
{
new int=GetPlayerInterior(i);
SetPlayerInterior(playerid,int);
}
}
}
Maybe you can fix it with this:
pawn Код:
|
Maybe you can fix it with this:
pawn Код:
|
public OnEnterExitModShop(playerid, enterexit, interiorid) { new vid = GetPlayerVehicleID(playerid); for (new i; i < MAX_PLAYERS; i++) { if(IsPlayerInVehicle(i, vid) && GetPlayerVehicleSeat(i) > 0) { SetPlayerInterior(i, GetPlayerInterior(playerid)); } } return 1; }