Unable targeting aim
#1

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.");
    }
}
Reply


Messages In This Thread
Unable targeting aim - by Noliax8 - 20.02.2014, 20:59
Re : Unable targeting aim - by Wallegi - 20.02.2014, 21:06
Re: Unable targeting aim - by KingHual - 20.02.2014, 21:06
Re : Unable targeting aim - by Noliax8 - 20.02.2014, 21:41
Re : Unable targeting aim - by Noliax8 - 21.02.2014, 15:15
Re : Unable targeting aim - by Noliax8 - 22.02.2014, 06:33
Re : Unable targeting aim - by Noliax8 - 24.02.2014, 16:36

Forum Jump:


Users browsing this thread: 1 Guest(s)