pawn Код:
#include <a_samp>
#pragma tabsize 0
new SlideNum[MAX_PLAYERS],Slider;forward Slide(playerid);public OnFilterScriptInit(){print("\n--------------------------------------");print(" SWAT Heli ");print(" RRP SWAT Slide ");print(" By: Michael_Sandrino[Tanner] ");print("--------------------------------------\n");return 1;}public OnPlayerConnect(playerid){SlideNum[playerid]=0;return 1;}public OnPlayerExitVehicle(playerid,vehicleid){
ApplyAnimation(playerid,"SWAT", "swt_wllpk_R_back",4.0,0,1,1,1,0);SlideNum[playerid]=1;Slider=SetTimerEx("Slide",100,0,"i",playerid);return 1;}public Slide(playerid){new Float:x,Float:y,Float:z;GetPlayerPos(playerid,x,y,z);switch(SlideNum[playerid]){case 1..39:{SetPlayerPos(playerid,x,y,z-0.25);SlideNum[playerid]++;}case 40:{SetPlayerPos(playerid,x,y,z-0.25);KillTimer(Slider);ClearAnimations(playerid);SlideNum[playerid]=0;}}return 1;}