Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2013
966
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.16 KB | None | 0 0
  1. /// Special Actions Piss & Shit script by Pottus shit offsets by Kanada ///
  2.  
  3. #include <a_samp>
  4. #include <zcmd>
  5.  
  6. #define PISS_DIST 2.0
  7. #define SHIT_DIST 2.0
  8. #define EXCREMENT_DELAY 3000
  9.  
  10. stock const ShitList[24][] = {
  11. { "shit all over" },
  12. { "dropped a bomb on" },
  13. { "released a lincoln log on" },
  14. { "pinched a loaf on" },
  15. { "showed the hershey highway to" },
  16. { "defecated all over the face of" },
  17. { "blasted a dookie on" },
  18. { "went boom boom on" },
  19. { "showed his steamer to" },
  20. { "dropped a duece all over" },
  21. { "gave a dirty squirty to" },
  22. { "downloaded a brownload to the face of" },
  23. { "gave birth to an African on" },
  24. { "let Mr. Hanky have a little chat with" },
  25. { "lost some weight on" },
  26. { "released the hostages all over" },
  27. { "let Cosby kids meet" },
  28. { "birthed a brown bear all over" },
  29. { "made a deposit on the chest of" },
  30. { "ferilized the corpse of" },
  31. { "turdzilla had a fight with" },
  32. { "squeezed some cheese on" },
  33. { "showed their diarrhea to" },
  34. { "gave a corn on the log to" }
  35. };
  36.  
  37. stock const PissList[9][] = {
  38. { "pissed all over" },
  39. { "gave a golden shower to" },
  40. { "urinated on the face of" },
  41. { "took a leak on the body of" },
  42. { "had a wizz on" },
  43. { "broke his seal on" },
  44. { "drained the main vein all over" },
  45. { "had to take number one on" },
  46. { "pissed like a race horse on" }
  47. };
  48.  
  49. enum POSDATA { Float:DeathPosX, Float:DeathPosY, Float:DeathPosZ }
  50.  
  51. new ExcrementTime[MAX_PLAYERS];
  52. new bool:PlayerIsDead[MAX_PLAYERS];
  53. new MyDeathLoc[MAX_PLAYERS][POSDATA];
  54.  
  55. public OnFilterScriptInit()
  56. {
  57. print("---------------------------------");
  58. print("--- DEFECATE BY POTTUS LOADED ---");
  59. print("---------------------------------");
  60. }
  61.  
  62. public OnPlayerDeath(playerid, killerid, reason)
  63. {
  64. PlayerIsDead[playerid] = true;
  65. GetPlayerPos(playerid, MyDeathLoc[playerid][DeathPosX], MyDeathLoc[playerid][DeathPosY], MyDeathLoc[playerid][DeathPosZ]);
  66. }
  67.  
  68. public OnPlayerSpawn(playerid)
  69. {
  70. PlayerIsDead[playerid] = false;
  71. ApplyAnimation(playerid,"ped","null",0.0,0,0,0,0,0);
  72. }
  73.  
  74. public OnPlayerDisconnect(playerid)
  75. {
  76. PlayerIsDead[playerid] = false;
  77. }
  78.  
  79. stock PlayAnimation(playerid,alib[32],aname[32],Float:fDelta, loop, lockx, locky, freeze, time)
  80. {
  81. ApplyAnimation(playerid,alib,aname,fDelta,loop,lockx,locky,freeze,time);
  82. ApplyAnimation(playerid,alib,aname,fDelta,loop,lockx,locky,freeze,time);
  83. ApplyAnimation(playerid,alib,aname,fDelta,loop,lockx,locky,freeze,time);
  84. ApplyAnimation(playerid,alib,aname,fDelta,loop,lockx,locky,freeze,time);
  85. return 1;
  86. }
  87.  
  88. CMD:s(playerid, arg[]) { shiton(playerid); return 1; }
  89. CMD:shit(playerid, arg[]) { shiton(playerid); return 1; }
  90. shiton(playerid)
  91. {
  92. if(GetTickCount() - ExcrementTime[playerid] > EXCREMENT_DELAY)
  93. {
  94. if(!IsPlayerInAnyVehicle(playerid))
  95. {
  96. ExcrementTime[playerid] = GetTickCount();
  97. new line[128];
  98. if(PlayerIsDead[playerid])
  99. {
  100. format(line, sizeof(line), "%s {5C3317}shit themselves", ReturnName(playerid));
  101. SendClientMessageToAll(0x33DD1100, line);
  102. }
  103. else
  104. {
  105. for(new i = 0; i < MAX_PLAYERS; i++)
  106. {
  107. if(!IsPlayerConnected(i)) continue;
  108. if(!PlayerIsDead[i]) continue;
  109. if(IsPlayerInRangeOfPoint(playerid, SHIT_DIST, MyDeathLoc[i][DeathPosX], MyDeathLoc[i][DeathPosY], MyDeathLoc[i][DeathPosZ]))
  110. {
  111. format(line, sizeof(line), "%s {5C3317}%s {33DD11}%s", ReturnName(playerid), ShitList[random(23)], ReturnName(i));
  112. SendClientMessageToAll(0x33DD1100, line);
  113. break;
  114. }
  115. }
  116. }
  117. PlayAnimation(playerid,"ped","cower",4.1, 0, 1, 1, 1, 1);
  118. SetPlayerAttachedObject(playerid, 9,
  119. 18722,
  120. 1,
  121. -1.773999,
  122. 0.234999,
  123. -0.091000,
  124. 2.300002,
  125. 88.499984,
  126. 0.0,
  127. 1.0,
  128. 1.0,
  129. 1.0);
  130. SetTimerEx("WipeAss", 2000, false, "i", playerid);
  131. }
  132. }
  133. return 1;
  134. }
  135.  
  136. forward WipeAss(playerid);
  137. public WipeAss(playerid) { RemovePlayerAttachedObject(playerid, 9); return 1; }
  138.  
  139.  
  140. CMD:p(playerid, arg[]) { pisson(playerid); return 1; }
  141. CMD:piss(playerid, arg[]) { pisson(playerid); return 1; }
  142. pisson(playerid)
  143. {
  144. if(GetTickCount() - ExcrementTime[playerid] > EXCREMENT_DELAY)
  145. {
  146. if(!IsPlayerInAnyVehicle(playerid))
  147. {
  148. ExcrementTime[playerid] = GetTickCount();
  149. new line[128];
  150. if(PlayerIsDead[playerid])
  151. {
  152. format(line, sizeof(line), "%s {FFFF00}pissed their pants", ReturnName(playerid));
  153. SendClientMessageToAll(0x33DD1100, line);
  154. }
  155. else
  156. {
  157. for(new i = 0; i < MAX_PLAYERS; i++)
  158. {
  159. if(!IsPlayerConnected(i)) continue;
  160. if(!PlayerIsDead[i]) continue;
  161. if(IsPlayerInRangeOfPoint(playerid, PISS_DIST, MyDeathLoc[i][DeathPosX], MyDeathLoc[i][DeathPosY], MyDeathLoc[i][DeathPosZ]))
  162. {
  163. format(line, sizeof(line), "%s {FFFF00}%s {33DD11}%s", ReturnName(playerid), PissList[random(9)], ReturnName(i));
  164. SendClientMessageToAll(0x33DD1100, line);
  165. break;
  166. }
  167. }
  168. SetPlayerSpecialAction(playerid,68);
  169. }
  170. }
  171. }
  172. return 1;
  173. }
  174.  
  175. stock ReturnName(playerid)
  176. {
  177. new Pname[MAX_PLAYER_NAME];
  178. GetPlayerName(playerid, Pname, sizeof(Pname));
  179. return Pname;
  180. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement