Advertisement
Guest User

FS(pee)

a guest
Jan 8th, 2011
1,310
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.99 KB | None | 0 0
  1. // Created by Makaveli
  2. #include <a_samp>
  3. #include <zcmd>
  4.  
  5. #define COLOR_GREEN 0x008000FF
  6.  
  7. public OnFilterScriptInit()
  8. {
  9.     print("Pee pee!");
  10.     return 1;
  11. }
  12.  
  13. public OnFilterScriptExit()
  14. {
  15.     return 1;
  16. }
  17.  
  18. main()
  19. {
  20.     print("Pee pee!");
  21. }
  22.  
  23. public OnPlayerSpawn(playerid)
  24. {
  25.     SetPVarInt(playerid, "pissing", 0);
  26.     PreloadAnimLib(playerid, "PAULNMAC");
  27.     SendClientMessage(playerid, COLOR_GREEN, "Type /piss");
  28.     return 1;
  29. }
  30.  
  31. CMD:piss(playerid, params[])
  32. {
  33. if(GetPVarInt(playerid, "pissing") == 0)
  34. {
  35. ApplyAnimation(playerid,"PAULNMAC","Piss_loop",3.0,1,1,0,0,0);
  36. SetPlayerAttachedObject(playerid,0,18676,1,-1.900000,0.300000,0.000000,148.199584,90.099914,-55.199981,1.000000,-9.899993,1.000000);
  37. SetPVarInt(playerid, "pissing", 1);
  38. }
  39. else
  40. {
  41. RemovePlayerAttachedObject(playerid,0);
  42. ClearAnimations(playerid);
  43. SetPVarInt(playerid, "pissing", 0);
  44. }
  45. return 1;
  46. }
  47.  
  48. stock PreloadAnimLib(playerid, animlib[])
  49. {
  50.     ApplyAnimation(playerid,animlib,"null",0.0,0,0,0,0,0);
  51.     return 1;
  52. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement