bandana -
JoshNudock - 27.08.2015
I have a question, have the sniper and the mask (bandana), my mask is in trouble when I aim with my sniper, the object "bandana", stands in front hindering the vision of the sniper rifle, I was wondering how to fix this.. oide someone help me? please..
Re: bandana -
SpikY_ - 27.08.2015
I think you can't. It will interrupt in sniping. In my opinion.
Re: bandana -
Michael B - 27.08.2015
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.
Respuesta: bandana -
JoshNudock - 27.08.2015
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(playerid, 1);
ToggleRemoveAOWeaponZoom(playerid, 0);
return 1;
}
//My bandana created:
SetPlayerTempAttachedObject(playerid, -1, 7, 19163, 2, 0.077000, 0.029000, -0.002000, -73.799880, 90.999992, -105.799987, 1.015999, 0.999000, 1.020001, 0, 0);
@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(playerid, time, modelid, boneid, Float:fOffsetX, Float:fOffsetY, Float:fOffsetZ, Float:fRotX, Float:fRotY, Float:fRotZ, Float:fScaleX, Float:fScaleY, Float:fScaleZ, materialcolor1, materialcolor2);
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(playerid, toggle);
// Example Usage
public OnPlayerConnect(playerid)
{
// Disable upon player connect
ToggleRemoveAOWeaponZoom(playerid, 0);
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(playerid, toggle);
// Example Usage
public OnPlayerConnect(playerid)
{
ToggleRemoveNormAOWeaponZoom(playerid, 1);
return 1;
}
|
Please help me, is very important to my Roleplay server, everybody's complaining much of hitmen.
Respuesta: bandana -
JoshNudock - 27.08.2015
Up!
Re: bandana -
nezo2001 - 27.08.2015
Try to remove the mask on aim with sniper and set it back
Re: bandana -
SpikY_ - 27.08.2015
Simply tell them that its not your Server issue. It happens while snipering.
Re: bandana -
MarvinPWN - 27.08.2015
PHP код:
#define HOLDING(%0) \
((newkeys & (%0)) == (%0))
if(HOLDING(KEY_HANDBRAKE))
{
//Remove the bandana
}
else
{
//create the bandana again
}
You can remove the bandana if you holding the right mouse button and create it again if you don't press it.
I don't know if you have to use HOLDING or PRESSED.
Respuesta: Re: bandana -
JoshNudock - 27.08.2015
Quote:
Originally Posted by MarvinPWN
PHP код:
#define HOLDING(%0) \
((newkeys & (%0)) == (%0))
if(HOLDING(KEY_HANDBRAKE))
{
//Remove the bandana
}
else
{
//create the bandana again
}
You can remove the bandana if you holding the right mouse button and create it again if you don't press it.
I don't know if you have to use HOLDING or PRESSED.
|
Thank you! but you are in trouble, help me?
Код:
C:\Users\2\Desktop\gamemode\gamemodes\w.pwn(11750) : error 017: undefined symbol "newkeys"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Errors.
PHP код:
public OnPlayerUpdate(playerid)
{
if (HOLDING(KEY_HANDBRAKE)) RemovePlayerAttachedObject(playerid, 7); //error 017
else
{
SetPlayerAttachedObject(playerid, 7, ......
}
}
Re: bandana -
MarvinPWN - 27.08.2015
You have to put this define into OnPlayerKeyStateChange.