Quote:
Originally Posted by Basssiiie
Код:
stock IsPlayerInSpray(playerid)
{
return (GetPlayerCameraMode(playerid) == 15) ? 1 : 0;
}
Someone did not do his homework.  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.
They have all one thing in common: the location where the camera itself is located, isn't moving at all. (Like following a player, or attached to a vehicle) It's as static as it can be. The direction the camera is looking does change in some cases, for example with the chasing cameras. 
|
I don't focus on any function specifically making sure that it works just like wiki stated. I assume the wiki is correct because it's an official SA:MP wiki listed with every function. If it doesn't work, simply don't use it.