20.02.2014, 20:59
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:
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.");
}
}