bandana
#4

Quote:
Originally Posted by Michael B
Посмотреть сообщение
This is not only your problem. It happens to everybody. Objects placed on your head, will show up on your telescope when aiming. There is an include called AOX which could help you fixing this issue. Its topic is here.

Hello, thank you, I'm doing it right? so will make the mistake of sniper?

PHP код:
public OnPlayerConnect(playerid)
{
    
ToggleRemoveNormAOWeaponZoom(playerid1);
    
ToggleRemoveAOWeaponZoom(playerid0);
    return 
1;
}
//My bandana created:
SetPlayerTempAttachedObject(playerid, -171916320.0770000.029000, -0.002000, -73.79988090.999992, -105.7999871.0159990.9990001.02000100); 
@edit

Quote:
Originally Posted by Corekt
Посмотреть сообщение
AOX
This include introduces Temporary Attached Objects, which are attached objects designed to be automatically removed after a certain time. An example usage of this would be attaching particle objects that disappear after a few seconds.

Usage

PHP код:
SetPlayerTempAttachedObject(playeridtimemodelidboneidFloat:fOffsetXFloat:fOffsetYFloat:fOffsetZFloat:fRotXFloat:fRotYFloat:fRotZFloat:fScaleXFloat:fScaleYFloat:fScaleZmaterialcolor1materialcolor2); 
Weapon Zoom Fix

If you've played on a server with attached objects, you may have noticed how when aiming with a Sniper, the objects sometimes obstruct your view. With this include, aiming with a Sniper, Rocket Launcher, Heat Seeker, or Camera will now remove temporary attached objects and restore them after you stop aiming. It will be noticeable by all players when your attached objects are removed. This feature is optional, and if you want you can disable it entirely with this function:

PHP код:
// Toggles the Weapon Zoom Fix on or off (1 or 0)
ToggleRemoveAOWeaponZoom(playeridtoggle);
// Example Usage
public OnPlayerConnect(playerid)
{
    
// Disable upon player connect
    
ToggleRemoveAOWeaponZoom(playerid0);
    return 
1;

Note that by default normal attached objects aren't removed when aiming with the aforementioned weapons. To enable the Weapon Zoom Fix for normal attached objects use this function:

PHP код:
// Toggles the Weapon Zoom Fix for normal attached objects on or off (1 or 0)
ToggleRemoveNormAOWeaponZoom(playeridtoggle);
// Example Usage
public OnPlayerConnect(playerid)
{
    
ToggleRemoveNormAOWeaponZoom(playerid1);
    return 
1;

Please help me, is very important to my Roleplay server, everybody's complaining much of hitmen.
Reply


Messages In This Thread
bandana - by JoshNudock - 27.08.2015, 15:27
Re: bandana - by SpikY_ - 27.08.2015, 15:46
Re: bandana - by Michael B - 27.08.2015, 15:49
Respuesta: bandana - by JoshNudock - 27.08.2015, 16:24
Respuesta: bandana - by JoshNudock - 27.08.2015, 17:13
Re: bandana - by nezo2001 - 27.08.2015, 17:24
Re: bandana - by SpikY_ - 27.08.2015, 17:31
Re: bandana - by MarvinPWN - 27.08.2015, 17:35
Respuesta: Re: bandana - by JoshNudock - 27.08.2015, 18:02
Re: bandana - by MarvinPWN - 27.08.2015, 19:32

Forum Jump:


Users browsing this thread: 1 Guest(s)