Is it possible to do something like this:
Kinda of zoom when players aim with a weapon...
https://www.youtube.com/watch?v=DR88uVEiRa8
Only by using SAMP functions (server side)
I saw some people doing first person on SAMP (server side)
Like this: https://forum.sa-mp.com/showthread.php?t=596916
with https://wiki.sa-mp.com/wiki/AttachCameraToObject
I would love play a server where everybody got this aim camera
Someone know if its possible?
Kinda of zoom when players aim with a weapon...
https://www.youtube.com/watch?v=DR88uVEiRa8
Only by using SAMP functions (server side)
I saw some people doing first person on SAMP (server side)
Like this: https://forum.sa-mp.com/showthread.php?t=596916
with https://wiki.sa-mp.com/wiki/AttachCameraToObject
I would love play a server where everybody got this aim camera
Someone know if its possible?
pawn Code:
#define PRESSING(%0,%1) \
(%0 & (%1))
// RELEASED(keys)
#define RELEASED(%0) \
(((newkeys & (%0)) != (%0)) && ((oldkeys & (%0)) == (%0)))
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
{
new wid = GetPlayerWeapon(playerid);
if(wid == 24 || wid == 25 || wid == 27 || wid == 29 || wid == 30 || wid == 31 || wid == 33)
{
if(PRESSING(newkeys, KEY_AIM )) SetGTAVAIM(playerid);
else if(RELEASED(KEY_AIM)) RemoveGTAVAIM(playerid);
}
}
}
public SetGTAVAIM(playerid) {
???
}
public RemoveGTAVAIM(playerid) {
???
}