0.3x Interior Problem
#8

Quote:
Originally Posted by Amora187
Посмотреть сообщение
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))
{
if(GetPlayerSeat(i)==0)
{
new int=GetPlayerInterior(i);
SetPlayerInterior(playerid,int);
}
}
}
That code would set the driver's interior to his own interior, I don't see how that would help. You're looping through the players and if the person's driver seat is 0 (driver seat), you...get his interior and set the driver (playerid) to that interior.

Is something like this what you're looking for, Amora?

Код:
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;
}
Either way, this bug should be easily fixable with server-side scripts.
Reply


Messages In This Thread
0.3x Interior Problem - by Evoturk - 04.02.2013, 20:18
Re: 0.3x Interior Problem - by Amora187 - 04.02.2013, 20:47
Re: 0.3x Interior Problem - by OKStyle - 05.02.2013, 00:46
Re: 0.3x Interior Problem - by GreenHammy - 05.02.2013, 12:40
Re: 0.3x Interior Problem - by Evoturk - 05.02.2013, 19:59
Re: 0.3x Interior Problem - by T0pAz - 05.02.2013, 21:51
Re: 0.3x Interior Problem - by Evoturk - 06.02.2013, 13:08
Re: 0.3x Interior Problem - by Alternative112 - 06.02.2013, 19:49

Forum Jump:


Users browsing this thread: 4 Guest(s)