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.