SA-MP Forums Archive
Unable targeting aim - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Unable targeting aim (/showthread.php?tid=496192)



Unable targeting aim - Noliax8 - 20.02.2014

Hi,

I want unable targeting aim action with PRESSED(KEY_HANDBRAKE), but i try with freeze or teleportation but after 1 seconds, action passe...

Have you got a idea ?

Video:
http://www.youtube.com/watch?v=QhCI-...ature=*********

Pawn code:
pawn Код:
if (PRESSED(KEY_HANDBRAKE) && !IsPlayerInAnyVehicle(playerid))
{
    if(GetPlayerWeapon(playerid) != 0 && GetPlayerAmmo(playerid) < 2)
    {
        new Float:pos[4];
        GetPlayerPos(playerid, posArr{pos});
        GetPlayerFacingAngle(playerid, pos[3]);
        SetPlayerPos(playerid, pos[0]+0.02, pos[1]+0.05, pos[2]);
       
        OnPlayerFreeze(playerid);
        OnPlayerUnFreezeEx(playerid, 500);

        SendClientMessage(playerid, C_ROUGE, "Vous ne pouvez pas utiliser une arme avec 1 munitions.");
    }
}



Re : Unable targeting aim - Wallegi - 20.02.2014

I have an idea :
if you use PRESSED for freeze the player, and you use RELEASED for unfreeze, it does'nt work?

(I'm french)



Re: Unable targeting aim - KingHual - 20.02.2014

That looks like the eculogic modulator. #unsuspiciouschannel The boost is causing a backtrack reverse, causing a severe moduli failure.


Re : Unable targeting aim - Noliax8 - 20.02.2014

How can we stop this?


Re : Unable targeting aim - Noliax8 - 21.02.2014

Have you got a idea ?


Re : Unable targeting aim - Noliax8 - 22.02.2014

Help please


Re : Unable targeting aim - Noliax8 - 24.02.2014

Do you have not a idea ?