[Include] svAddons - Useful Scripting Addons
#7

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.
Reply


Messages In This Thread
svAddons - Useful Scripting Addons - by SuperViper - 03.06.2012, 23:14
Re: svAddons - Useful Scripting Addons - by Shadow_ - 03.06.2012, 23:18
Respuesta: svAddons - Useful Scripting Addons - by Dx2 - 03.06.2012, 23:23
Re: svAddons - Useful Scripting Addons - by Cacoby - 03.06.2012, 23:59
Re: svAddons - Useful Scripting Addons - by Basssiiie - 04.06.2012, 00:28
Re: svAddons - Useful Scripting Addons - by ikey07 - 04.06.2012, 01:01
Re: svAddons - Useful Scripting Addons - by SuperViper - 04.06.2012, 01:27
Re: svAddons - Useful Scripting Addons - by MP2 - 04.06.2012, 01:29
AW: svAddons - Useful Scripting Addons - by Invizion - 04.06.2012, 10:41
Re: svAddons - Useful Scripting Addons - by Firo - 04.06.2012, 11:13
Re: svAddons - Useful Scripting Addons - by TheArcher - 04.06.2012, 11:40
Re: svAddons - Useful Scripting Addons - by Jochemd - 04.06.2012, 12:44
Re: svAddons - Useful Scripting Addons - by Littlehelper - 04.06.2012, 15:38
Re: svAddons - Useful Scripting Addons - by TheArcher - 04.06.2012, 17:07
Re: svAddons - Useful Scripting Addons - by Roperr - 04.06.2012, 17:14
Re: svAddons - Useful Scripting Addons - by SuperViper - 04.06.2012, 17:20
Re: svAddons - Useful Scripting Addons - by FireCat - 04.06.2012, 17:27
Re: svAddons - Useful Scripting Addons - by StreetGT - 04.06.2012, 18:20
Re: svAddons - Useful Scripting Addons - by Jochemd - 04.06.2012, 19:53
Re: svAddons - Useful Scripting Addons - by SuperViper - 04.06.2012, 20:53
Re: svAddons - Useful Scripting Addons - by Y_Less - 04.06.2012, 21:48
Re: svAddons - Useful Scripting Addons - by MP2 - 04.06.2012, 21:55
Re: svAddons - Useful Scripting Addons - by Y_Less - 04.06.2012, 23:25
Re: svAddons - Useful Scripting Addons - by DonWade - 04.06.2012, 23:56
Re: svAddons - Useful Scripting Addons - by pasha97 - 05.06.2012, 05:06
Re: svAddons - Useful Scripting Addons - by SuperViper - 19.06.2012, 22:11
Re: svAddons - Useful Scripting Addons - by rickysmum - 20.06.2012, 16:52
Re: svAddons - Useful Scripting Addons - by SuperViper - 25.06.2012, 03:26
Re: svAddons - Useful Scripting Addons - by SuperViper - 14.07.2012, 20:31
Re: svAddons - Useful Scripting Addons - by Gleam - 02.09.2018, 22:44

Forum Jump:


Users browsing this thread: 1 Guest(s)