Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //#define FILTERSCRIPT
- #include <a_samp>
- #if defined FILTERSCRIPT
- #define COLOR_BLUE 0x33AAFFFF
- #define COLOR_YELLOW 0xFFFF00AA
- #define SPECIAL_ACTION_PISSING (68)
- #define HOLDING(%0) \
- ((newkeys & (%0)) == (%0))
- #define RELEASED(%0) \
- (((newkeys & (%0)) != (%0)) && ((oldkeys & (%0)) == (%0)))
- #define PRESSED(%0) \
- (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
- #define PRESSED(%0) \
- (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
- #define IsPlayerNotInVehicle(%0) (!IsPlayerInAnyVehicle(%0))
- #define HOLDING(%0) \
- ((newkeys & (%0)) == (%0))
- #define RELEASED(%0) \
- (((newkeys & (%0)) != (%0)) && ((oldkeys & (%0)) == (%0)))
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print("Animations");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- #else
- main()
- {
- print("\n----------------------------------");
- print("Animations");
- print("----------------------------------\n");
- }
- #endif
- public OnGameModeInit()
- {
- return 1;
- }
- public OnGameModeExit()
- {
- return 1;
- }
- public OnPlayerRequestClass(playerid, classid)
- {
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- return 1;
- }
- public OnVehicleSpawn(vehicleid)
- {
- return 1;
- }
- public OnVehicleDeath(vehicleid, killerid)
- {
- return 1;
- }
- public OnPlayerText(playerid, text[])
- {
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp(cmdtext, "/relax", true)==0)
- {
- if (GetPlayerState(playerid)== 1)
- {
- GameTextForPlayer(playerid, "Type /sync to stop, 3000, 1);
- ApplyAnimation(playerid,"BEACH", "bather", 4.0, 1, 0, 0, 0, 0);
- }
- return 1;
- }
- if (strcmp(cmdtext, "/handsup", true)==0)
- {
- if (GetPlayerState(playerid)== 1)
- {
- GameTextForPlayer(playerid, "Type /sync to stop, 3000, 1);
- SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP);
- }
- return 1;
- }
- if (strcmp(cmdtext, "/bomb", true)==0)
- {
- if (GetPlayerState(playerid)== 1)
- {
- GameTextForPlayer(playerid, "Type /sync to stop, 3000, 1);
- ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
- }
- return 1;
- }
- if (strcmp(cmdtext, "/robman", true)==0)
- {
- if (GetPlayerState(playerid)== 1)
- {
- GameTextForPlayer(playerid, "Type /sync to stop, 3000, 1);
- ApplyAnimation(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 1, 0, 0, 0, 0);
- }
- return 1;
- }
- if (strcmp(cmdtext, "/wank", true)==0)
- {
- if (GetPlayerState(playerid)== 1)
- {
- GameTextForPlayer(playerid, "Type /sync to stop, 3000, 1);
- ApplyAnimation(playerid,"PAULNMAC", "wank_loop", 1.800001, 1, 0, 0, 1, 600);
- }
- return 1;
- }
- if (strcmp(cmdtext, "/crossarms", true)==0)
- {
- if (GetPlayerState(playerid)== 1)
- {
- GameTextForPlayer(playerid, "Type /sync to stop, 3000, 1);
- ApplyAnimation(playerid,"PAULNMAC", "wank_loop", 1.800001, 1, 0, 0, 1, 600);
- }
- return 1;
- }
- if (strcmp(cmdtext, "/taichi", true)==0)
- {
- if (GetPlayerState(playerid)== 1)
- {
- GameTextForPlayer(playerid, "Type /sync to stop, 3000, 1);
- ApplyAnimation(playerid,"PARK","Tai_Chi_Loop",4.0,1,0,0,0,0);
- }
- return 1;
- }
- if (strcmp(cmdtext, "/spank", true)==0)
- {
- if (GetPlayerState(playerid)== 1)
- {
- GameTextForPlayer(playerid, "Type /sync to stop, 3000, 1);
- ApplyAnimation(playerid, "SWEET", "sweet_ass_slap", 4.0, 0, 0, 0, 0, 0);
- }
- return 1;
- }
- if (strcmp(cmdtext, "/wave", true)==0)
- {
- if (GetPlayerState(playerid)== 1)
- {
- GameTextForPlayer(playerid, "Type /sync to stop, 3000, 1);
- ApplyAnimation(playerid, "ON_LOOKERS", "wave_loop", 4.0, 1, 0, 0, 0, 0);
- }
- return 1;
- }
- if (strcmp(cmdtext, "/sick", true)==0)
- {
- if (GetPlayerState(playerid)== 1)
- {
- GameTextForPlayer(playerid, "Type /sync to stop, 3000, 1);
- ApplyAnimation(playerid, "FOOD", "EAT_Vomit_P", 3.0, 0, 0, 0, 0, 0);
- }
- return 1;
- }
- if (strcmp(cmdtext, "/scared", true)==0)
- {
- if (GetPlayerState(playerid)== 1)
- {
- GameTextForPlayer(playerid, "Type /sync to stop, 3000, 1);
- ApplyAnimation(playerid, "ped", "cower", 3.0, 1, 0, 0, 0, 0);
- }
- return 1;
- }
- if (strcmp(cmdtext, "/talk", true)==0)
- {
- if (GetPlayerState(playerid)== 1)
- {
- GameTextForPlayer(playerid, "Type /sync to stop, 3000, 1);
- ApplyAnimation(playerid,"PED","IDLE_CHAT",1.800001, 1, 1, 1, 1, 13000);
- }
- return 1;
- }
- if (strcmp(cmdtext, "/kiss", true)==0)
- {
- if (GetPlayerState(playerid)== 1)
- {
- GameTextForPlayer(playerid, "Type /sync to stop, 3000, 1);
- ApplyAnimation(playerid,"KISSING", "Grlfrd_Kiss_02", 1.800001, 1, 0, 0, 1, 600);
- }
- return 1;
- }
- if (strcmp(cmdtext, "/sit", true)==0)
- {
- if (GetPlayerState(playerid)== 1)
- {
- GameTextForPlayer(playerid, "Type /sync to stop, 3000, 1);
- ApplyAnimation(playerid,"INT_OFFICE", "OFF_Sit_Bored_Loop", 1.800001, 1, 0, 0, 1, 600);
- }
- return 1;
- }
- if (strcmp(cmdtext, "/fucku", true)==0)
- {
- if (GetPlayerState(playerid)== 1)
- {
- GameTextForPlayer(playerid, "Type /sync to stop, 3000, 1);
- ApplyAnimation(playerid,"ped", "fucku", 4.1, 0, 1, 1, 1, 1 );
- }
- return 1;
- }
- if (strcmp(cmdtext, "/cocaine", true)==0)
- {
- if (GetPlayerState(playerid)== 1)
- {
- GameTextForPlayer(playerid, "Type /sync to stop, 3000, 1);
- ApplyAnimation(playerid,"CRACK", "crckdeth2", 1.800001, 1, 0, 0, 1, 600);
- }
- return 1;
- }
- if (strcmp(cmdtext, "/rocky", true)==0)
- {
- if (GetPlayerState(playerid)== 1)
- {
- GameTextForPlayer(playerid, "Type /sync to stop, 3000, 1);
- ApplyAnimation(playerid,"GYMNASIUM", "GYMshadowbox", 1.800001, 1, 0, 0, 1, 600);
- }
- return 1;
- }
- if (strcmp(cmdtext, "/smoke", true)==0)
- {
- if (GetPlayerState(playerid)== 1)
- {
- GameTextForPlayer(playerid, "Type /sync to stop, 3000, 1);
- ApplyAnimation(playerid,"SMOKING", "M_smklean_loop", 4.0, 1, 0, 0, 0, 0);
- }
- return 1;
- }
- if (strcmp("/beach", cmdtext, true, 10) == 0)
- {
- if (GetPlayerState(playerid)== 1)
- {
- GameTextForPlayer(playerid, "Type /sync to stop, 3000, 1);
- ApplyAnimation(playerid,"BEACH","SitnWait_loop_W",4.1,0,1,1,1,1);
- }
- return 1;
- }
- if (strcmp("/lookout", cmdtext, true, 10) == 0)
- {
- if (GetPlayerState(playerid)== 1)
- {
- GameTextForPlayer(playerid,"Type /sync to stop, 3000, 1);
- ApplyAnimation(playerid,"ON_LOOKERS","lkup_in",4.1,0,1,1,1,1);
- }
- return 1;
- }
- if (strcmp("/circle", cmdtext, true, 10) == 0)
- {
- if (GetPlayerState(playerid)== 1)
- {
- GameTextForPlayer(playerid, "Type /sync to stop, 3000, 1);
- ApplyAnimation(playerid,"CHAINSAW","CSAW_Hit_2",4.1,0,1,1,1,1);
- }
- return 1;
- }
- if (strcmp("/medic", cmdtext, true, 10) == 0)
- {
- if (GetPlayerState(playerid)== 1)
- {
- GameTextForPlayer(playerid, "Type /sync to stop, 3000, 1);
- ApplyAnimation(playerid,"MEDIC","CPR",4.1,0,1,1,1,1);
- }
- return 1;
- }
- if (strcmp("/chat", cmdtext, true, 10) == 0)
- {
- if (GetPlayerState(playerid)== 1)
- {
- GameTextForPlayer(playerid, "Type /sync to stop, 3000, 1);
- ApplyAnimation(playerid,"PED","IDLE_CHAT",4.1,0,1,1,1,1);
- }
- return 1;
- }
- if (strcmp("/die", cmdtext, true, 10) == 0)
- {
- if (GetPlayerState(playerid)== 1)
- {
- GameTextForPlayer(playerid, "Type /sync to stop, 3000, 1);
- ApplyAnimation(playerid,"PED","BIKE_fallR",4.1,0,1,1,1,1);
- }
- return 1;
- }
- if (strcmp("/slapa", cmdtext, true, 10) == 0)
- {
- if (GetPlayerState(playerid)== 1)
- {
- GameTextForPlayer(playerid, "Type /sync to stop, 3000, 1);
- ApplyAnimation(playerid,"PED","BIKE_elbowL",4.1,0,1,1,1,1);
- }
- return 1;
- }
- if (strcmp("/rofl", cmdtext, true, 10) == 0)
- {
- if (GetPlayerState(playerid)== 1)
- {
- GameTextForPlayer(playerid, "Type /sync to stop, 3000, 1);
- ApplyAnimation(playerid,"PED","Crouch_Roll_L",4.1,0,1,1,1,1);
- }
- return 1;
- }
- if (strcmp("/glitched", cmdtext, true, 10) == 0)
- {
- if (GetPlayerState(playerid)== 1)
- {
- GameTextForPlayer(playerid, "Type /sync to stop, 3000, 1);
- ApplyAnimation(playerid,"TATTOOS","TAT_Sit_Out_O",4.1,0,1,1,1,1);
- }
- return 1;
- }
- if (strcmp("/fakefire", cmdtext, true, 10) == 0)
- {
- if (GetPlayerState(playerid)== 1)
- {
- GameTextForPlayer(playerid, "Type /sync to stop, 3000, 1);
- ApplyAnimation(playerid,"SILENCED","SilenceCrouchfire",4.1,0,1,1,1,1);
- }
- return 1;
- }
- if (strcmp("/fart", cmdtext, true, 10) == 0)
- {
- if (GetPlayerState(playerid)== 1)
- {
- GameTextForPlayer(playerid, "Type /sync to stop, 3000, 1);
- PlayerPlaySound(playerid, 1147, 0.0, 0.0, 0.0);
- }
- return 1;
- }
- if (strcmp("/vomit", cmdtext, true) == 0)
- {
- if (GetPlayerState(playerid)== 1)
- {
- GameTextForPlayer(playerid, "Type /sync to stop, 3000, 1);
- ApplyAnimation(playerid, "FOOD", "EAT_Vomit_P", 3.0, 0, 0, 0, 0, 0); // Vomit BAH!
- PlayerPlaySound(playerid, 1169, 0.0, 0.0, 0.0);
- }
- return 1;
- }
- if (strcmp("/drunk", cmdtext, true, 10) == 0)
- {
- if (GetPlayerState(playerid)== 1)
- {
- GameTextForPlayer(playerid, "Type /sync to stop, 3000, 1);
- ApplyAnimation(playerid,"PED","WALK_DRUNK",4.1,0,1,1,1,1);
- ApplyAnimation(playerid,"PED","WALK_DRUNK",4.1,0,1,1,1,1);
- ApplyAnimation(playerid,"PED","WALK_DRUNK",4.1,0,1,1,1,1);
- }
- return 1;
- }
- if (strcmp("/getin", cmdtext, true) == 0)
- {
- if (GetPlayerState(playerid)== 1)
- {
- GameTextForPlayer(playerid, "Type /sync to stop, 3000, 1);
- ApplyAnimation(playerid,"NEVADA","NEVADA_getin",4.1,0,1,1,1,1);
- }
- return 1;
- }
- if (strcmp("/piss", cmdtext, true) == 0)
- {
- if (GetPlayerState(playerid)== 1)
- {
- GameTextForPlayer(playerid, "Type /sync to stop, 3000, 1);
- SetPlayerSpecialAction(playerid, 68);
- }
- return 1;
- }
- if (strcmp("/funnywalk", cmdtext, true) == 0)
- {
- if (GetPlayerState(playerid)== 1)
- {
- GameTextForPlayer(playerid, "Type /sync to stop, 3000, 1);
- ApplyAnimation(playerid,"WUZI","Wuzi_Walk",4.1,0,1,1,1,1);
- }
- return 1;
- }
- if (strcmp("/kickass", cmdtext, true) == 0)
- {
- if (GetPlayerState(playerid)== 1)
- {
- GameTextForPlayer(playerid, "Type /sync to stop, 3000, 1);
- ApplyAnimation(playerid,"FIGHT_E","Hit_fightkick",4.1,0,1,1,1,1);
- }
- return 1;
- }
- if(strcmp("/cell", cmdtext, true) == 0)
- {
- GameTextForPlayer(playerid, "Type /sync to stop, 3000, 1);
- SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USECELLPHONE);
- return 1;
- }
- if (strcmp("/laugh", cmdtext, true) == 0)
- {
- GameTextForPlayer(playerid, "Type /sync to stop, 3000, 1);
- ApplyAnimation(playerid, "RAPPING", "Laugh_01", 4.0, 0, 0, 0, 0, 0); // Laugh
- return 1;
- }
- if (strcmp("/anims", cmdtext, true) == 0)
- {
- #define DIALOG_ANIMS 1
- new string[1024];
- strcat(string, "{F3FF02}" "/relax | /scared | /sick | /wave | /spank | /taichi | /crossarms |\n", 1024);
- strcat(string, "{F3FF02}" "/wank | /kiss | /talk | /fucku | /cocaine | /rocky | /sit | /smoke |\n", 1024);
- strcat(string, "{F3FF02}" "/beach | /lookout | /circle | /medic | /chat | /die | /slapa | /rofl |\n", 1024);
- strcat(string, "{F3FF02}" "/glitched | /fakefire | /bomb | /robman | /handsup | /piss |\n", 1024);
- strcat(string, "{F3FF02}" "/getin | /skate | /cover | /fart | /vomit | /drunk |\n", 1024);
- strcat(string, "{F3FF02}" "/funnywalk | /kickass | /cell | /laugh | /eat | /injured |\n", 1024);
- strcat(string, "{F3FF02}" "/slapass | /laydown | /arrest | /laugh | /eat | /carjack ||", 1024);
- strcat(string, "{F3FF02}" "To Stop an Anim Press Aim_KEY", 1024);
- ShowPlayerDialog(playerid,DIALOG_ANIMS,DIALOG_STYLE_MSGBOX,"{FFAF00}" "Menu" "{FFAF00}" "Anims", string, "Ok", "Cancel");
- return 1;
- }
- if (strcmp("/eat", cmdtext, true) == 0)
- {
- GameTextForPlayer(playerid, "Type /sync to stop, 3000, 1);
- ApplyAnimation(playerid, "FOOD", "EAT_Burger", 3.0, 0, 0, 0, 0, 0); // Eat Burger
- return 1;
- }
- if(strcmp("/injured", cmdtext, true) == 0)
- {
- GameTextForPlayer(playerid, "Type /sync to stop, 3000, 1);
- ApplyAnimation(playerid, "SWEET", "Sweet_injuredloop", 4.0, 1, 0, 0, 0, 0);
- return 1;
- }
- if (strcmp("/slapass", cmdtext, true) == 0)
- {
- GameTextForPlayer(playerid, "Type /sync to stop, 3000, 1);
- ApplyAnimation(playerid, "SWEET", "sweet_ass_slap", 4.0, 0, 0, 0, 0, 0); // Ass Slapping
- return 1;
- }
- if (strcmp("/laydown", cmdtext, true) == 0)
- {
- GameTextForPlayer(playerid, "Type /sync to stop, 3000, 1);
- ApplyAnimation(playerid,"BEACH", "bather", 4.0, 1, 0, 0, 0, 0); // Lay down
- return 1;
- }
- if (strcmp("/arrest", cmdtext, true) == 0)
- {
- GameTextForPlayer(playerid, "Type /sync to stop, 3000, 1);
- ApplyAnimation(playerid,"ped", "ARRESTgun", 4.0, 0, 1, 1, 1, -1); // Gun Arrest
- return 1;
- }
- if(strcmp("/carjack", cmdtext, true) == 0)
- {
- GameTextForPlayer(playerid, "Type /sync to stop, 3000, 1);
- ApplyAnimation(playerid,"PED","CAR_jackedLHS",4.0,0,1,1,1,0);
- return 1;
- }
- return 0;
- }
- public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
- {
- return 1;
- }
- public OnPlayerExitVehicle(playerid, vehicleid)
- {
- return 1;
- }
- public OnPlayerStateChange(playerid, newstate, oldstate)
- {
- return 1;
- }
- public OnPlayerEnterCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerLeaveCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerEnterRaceCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerLeaveRaceCheckpoint(playerid)
- {
- return 1;
- }
- public OnRconCommand(cmd[])
- {
- return 1;
- }
- public OnPlayerRequestSpawn(playerid)
- {
- return 1;
- }
- public OnObjectMoved(objectid)
- {
- return 1;
- }
- public OnPlayerObjectMoved(playerid, objectid)
- {
- return 1;
- }
- public OnPlayerPickUpPickup(playerid, pickupid)
- {
- return 1;
- }
- public OnVehicleMod(playerid, vehicleid, componentid)
- {
- return 1;
- }
- public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
- {
- return 1;
- }
- public OnVehicleRespray(playerid, vehicleid, color1, color2)
- {
- return 1;
- }
- public OnPlayerSelectedMenuRow(playerid, row)
- {
- return 1;
- }
- public OnPlayerExitedMenu(playerid)
- {
- return 1;
- }
- public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
- {
- return 1;
- }
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
- {
- return 1;
- }
- public OnRconLoginAttempt(ip[], password[], success)
- {
- return 1;
- }
- public OnPlayerUpdate(playerid)
- {
- return 1;
- }
- public OnPlayerStreamIn(playerid, forplayerid)
- {
- return 1;
- }
- public OnPlayerStreamOut(playerid, forplayerid)
- {
- return 1;
- }
- public OnVehicleStreamIn(vehicleid, forplayerid)
- {
- return 1;
- }
- public OnVehicleStreamOut(vehicleid, forplayerid)
- {
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- return 1;
- }
- public OnPlayerClickPlayer(playerid, clickedplayerid, source)
- {
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement