Last active
December 18, 2015 15:19
-
-
Save SDraw/5803230 to your computer and use it in GitHub Desktop.
Fun with Desert Eagle :3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define FILTERSCRIPT | |
#include <a_samp> | |
forward Fly(playerid,Float:f); | |
public OnPlayerKeyStateChange(playerid,newkeys,oldkeys) | |
{ | |
if(newkeys&KEY_FIRE || newkeys&KEY_FIRE && newkeys&KEY_HANDBRAKE) | |
{ | |
if(GetPlayerWeapon(playerid) == 24) | |
{ | |
switch(GetPlayerAnimationIndex(playerid)) | |
{ | |
case 1167,1331: | |
{ | |
new Float:p; | |
GetPlayerFacingAngle(playerid,p); | |
switch(GetPlayerCameraMode(playerid)) | |
{ | |
case 53: SetTimerEx("Fly",100,false,"df",playerid,p); | |
default: SetTimerEx("Fly",200,false,"df",playerid,p); | |
} | |
} | |
} | |
return 1; | |
} | |
} | |
return 1; | |
} | |
public Fly(playerid,Float:f) | |
{ | |
SetPlayerVelocity(playerid,0.5*floatsin(f,degrees),0.5*-floatcos(f,degrees),0.25); | |
return 1; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment