Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include <zcmd>
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Animations Script by kiwimaster2001");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- public OnPlayerRequestClass(playerid, classid)
- {
- SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
- SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
- SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/mycommand", cmdtext, true, 10) == 0)
- {
- return 1;
- }
- return 0;
- }
- CMD:anims(playerid, params[])
- {
- ShowPlayerDialog(playerid, DIALOG_WELCOME, DIALOG_STYLE_LIST, "Animations", "/pee\n/handsup\n/wank\n/lay\n/crack\n/injured\n/smoke\n/dance1-4\n/rap\n/aim\n/aim2\nRemember to stop Animation type /stopanims!", "Okay", "Close");
- return 1;
- }
- CMD:handsup(playerid, params[])
- {
- SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP);
- return 1;
- }
- CMD:pee(playerid, params[])
- {
- SetPlayerSpecialAction(playerid, 68);
- return 1;
- }
- CMD:wank(playerid, params[])
- {
- ApplyAnimation(playerid,"PAULNMAC","wank_loop",4.0,1,1,1,1,0);
- return 1;
- }
- CMD:lay(playerid, params[])
- {
- ApplyAnimation(playerid,"BEACH", "bather", 4.0, 1, 0, 0, 0, 0);
- return 1;
- }
- CMD:crack(playerid, params[])
- {
- ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
- return 1;
- }
- CMD:injured(playerid, params[])
- {
- ApplyAnimation(playerid,"SWEET","Sweet_injuredloop", 4.0, 1, 0, 0, 0, 0);
- return 1;
- }
- CMD:smoke(playerid, params[])
- {
- ApplyAnimation(playerid,"SMOKING", "M_smklean_loop", 4.0, 1, 0, 0, 0, 0);
- return 1;
- }
- CMD:dance(playerid, params[])
- {
- SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE1);
- return 1;
- }
- CMD:dance2(playerid, params[])
- {
- SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE2);
- return 1;
- }
- CMD:dance3(playerid, params[])
- {
- SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE3);
- return 1;
- }
- CMD:dance4(playerid, params[])
- {
- SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE4);
- return 1;
- }
- CMD:rap(playerid, params[])
- {
- ApplyAnimation(playerid,"RAPPING","RAP_A_Loop",4.0,1,1,1,1,0);
- return 1;
- }
- CMD:aim(playerid, params[])
- {
- ApplyAnimation(playerid,"PED","gang_gunstand", 4.0, 1, 0, 0, 0, 0);
- return 1;
- }
- CMD:aim2(playerid, params[])
- {
- ApplyAnimation(playerid, "SHOP", "SHP_Gun_Aim", 4.0, 0, 1, 1, 1, -1);
- return 1;
- }
- CMD:stopanims(playerid, params[])
- {
- ClearAnimations(playerid);
- return 1;
- }
- #endif
Advertisement
Add Comment
Please, Sign In to add comment