04.06.2012, 00:28
Код:
stock IsPlayerInSpray(playerid)
{
return (GetPlayerCameraMode(playerid) == 15) ? 1 : 0;
}
This is very unreliable and the Wiki is quite wrong here. I regret that I can't change it, I don't have a Wiki account. (I have asked, no response.)Yes, camera mode 15 is Pay & Spray. But Pay & Spray is not the only camera mode 15. I prefer calling camera mode 15 'scripted static camera'. It's used for a lot of different stuff, like:
- Entering and exiting interiors through the normal enex, the small cutscene of the player walking through the door is camera mode 15.
- The mod shops are camera mode 15.
- Some of the chasing sequences are camera mode 15.
- Buying food at fast food restaurants (Pizza shop, Burger Shot, Cluckin' Bell...) sets you in camera mode 15.
- SetPlayerCameraPos is camera mode 15.

