10-04-2009, 08:14 AM
(10-03-2009, 10:30 AM)SAFC link Wrote:Hey, I saw your complaint. The reason you get effected by weapons when leaving an interior is that OnPlayerChangeInterior gets called as soon as you walk into the yellow marker.
The interior damage prevention uses teams, in samp if two are on the same team, using SetPlayerTeam they can't damage eachother.
When you walk to the yellow marker, your team is instantly changed which means you're able to take damage, it also allows naders to effect you because they hit the yellow marker causing their team to change.
A simple way to stop it is adding a one second timer on the interior change function. Using SetTimerEx for each player as they leave interiors.
It's just to delay the team change, making it impossible for lamers to damage you on your way out, and making nades ineffective also.
With lvp getting ~100 players, lag can cause the teams to unsync, especially with teleports, since the game wasn't designed to accomadate instant teleports to interiors.
The way to solve that is a regular global timer keeping the player teams in sync, if they're in an interior and not in a minigame then their team should be set to the interior team.
It's an easy thing to do to fix a big issue, since lamers obsessed with ratio nade indoors all the time.
Catch ya later
This is what SAFC Pmed me. Basically what Jay is saying about the team id's, he suggests a timer to keep team sync up-to-date.
(10-03-2009, 11:10 AM)Matthias link Wrote: [quote author=TeEjAy link=topic=22030.msg261383#msg261383 date=1254559557]
And yes, even when someone shoots me indoors, with a deagle/sawns or whatever, it affects me.
(10-02-2009, 11:08 PM)Jay link Wrote: No, it doesn't.[/quote]
*facepalm* Yes it does, ffs. I have experienced this.
![[Image: Untitled-32.jpg]](http://i210.photobucket.com/albums/bb317/TJD100/Untitled-32.jpg)