Advertisement
OtaconEvil

[FS] Excitation in SA-MP 'TROLL' By OTACON

Jul 27th, 2013
529
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 5.18 KB | None | 0 0
  1. /*
  2.              Prohibido TOTALMENTE el Robo de Créditos o la
  3.              Publicación de este FILTERSCRIPT sin Mi Permiso.
  4.  
  5.                      FULLY spaces Theft Credit or
  6.           Publication of this FILTERSCRIPT without my permission.
  7.  
  8.     SIMPLE FILTERSCRIPT --> Excitation in SA-MP 'TROLL'
  9.     INFORMATION: is a command that active and deactivate a timer that checks players with skins of women and anger grow in size the object attached to the player that simulates the excitement of playing, when the opposite is true will decrease.
  10.     CREDITOS: OTACON ;)
  11.     NOTA: Menos Creditos para los que me los critican.. JO'PUTAS! :D xD ;)
  12. */
  13. #include <a_samp>
  14. #include <zcmd>
  15. #include <a_StatePlayer>
  16.  
  17. #define FUNCTION:%0(%1) forward%0(%1); public%0(%1)
  18. #define SLOT_ATTAC (1)
  19. enum sex {
  20.     PlayerExcited,
  21.     bool:ExcitationEnabled,
  22.     KillingExcitation,
  23. };
  24. new ExcitationPlayer[MAX_PLAYERS][sex];
  25.  
  26. FUNCTION: OnFilterScriptInit() {
  27.     print("\n**************************************");
  28.     print("       Excitation in SA-MP 'TROLL'      ");
  29.     print("           Date: 27/07/2013             ");
  30.     print("            Author: OTACON              ");
  31.     print("     --* Loaded with Success!!. *--     ");
  32.     print("***************************************\n");
  33.     return true;
  34. }
  35. FUNCTION: OnFilterScriptExit() {
  36.     print("\n**************************************");
  37.     print("       Excitation in SA-MP 'TROLL'      ");
  38.     print("           Date: 27/07/2013             ");
  39.     print("            Author: OTACON              ");
  40.     print("   --* Downloaded with Success!!. *--   ");
  41.     print("***************************************\n");
  42.     return true;
  43. }
  44. COMMAND:excitation(playerid, params[]) {
  45.     if(!GetPlayerSex(playerid)) return SendClientMessage(playerid, -1, "  [ ! ] You are woman, You not excited in this way..!.");
  46.     switch(ExcitationPlayer[playerid][ExcitationEnabled]) {
  47.         case false: {
  48.             ExcitationPlayer[playerid][ExcitationEnabled]=true;
  49.             SendClientMessage(playerid, -1, "  [ ! ] You have activated the excitement of the player.!.");
  50.             KillTimer(ExcitationPlayer[playerid][KillingExcitation]);
  51.             ExcitationPlayer[playerid][KillingExcitation]=SetTimerEx("FunctionExcitation", 1000, true, "d", playerid);
  52.         }
  53.         case true: {
  54.             ExcitationPlayer[playerid][ExcitationEnabled]=false;
  55.             SendClientMessage(playerid, -1, "  [ ! ] You have disabled the excitement of the player.!.");
  56.             KillTimer(ExcitationPlayer[playerid][KillingExcitation]);
  57.             RemovePlayerAttachedObject(playerid,SLOT_ATTAC);
  58.             ExcitationPlayer[playerid][PlayerExcited]=0;
  59.         }
  60.     } return true;
  61. }
  62. FUNCTION: FunctionExcitation(playerid) {
  63.     RemovePlayerAttachedObject(playerid,SLOT_ATTAC);
  64.     if(IsPlayerInRangeOfWoman(playerid, 5.0)) ExcitationPlayer[playerid][PlayerExcited]++;  if(ExcitationPlayer[playerid][PlayerExcited]>=5) ExcitationPlayer[playerid][PlayerExcited]=5;
  65.     else ExcitationPlayer[playerid][PlayerExcited]--; if(ExcitationPlayer[playerid][PlayerExcited]<=0) ExcitationPlayer[playerid][PlayerExcited]=0;
  66.     switch(ExcitationPlayer[playerid][PlayerExcited]) {
  67.         case 0:SetPlayerAttachedObject(playerid,SLOT_ATTAC,322,1,-0.371000,0.139000,-0.014999,-92.800003,-2.600008,3.000001,1.000000,1.000000,1.000000);
  68.         case 1:SetPlayerAttachedObject(playerid,SLOT_ATTAC,322,1,-0.371000,0.139000,-0.014999,-92.800003,-2.600008,3.000001,1.000000,1.000000,1.182000);
  69.         case 2:SetPlayerAttachedObject(playerid,SLOT_ATTAC,322,1,-0.371000,0.139000,-0.014999,-92.800003,-2.600008,3.000001,1.000000,1.000000,1.331001);
  70.         case 3:SetPlayerAttachedObject(playerid,SLOT_ATTAC,322,1,-0.371000,0.139000,-0.014999,-92.800003,-2.600008,3.000001,1.000000,1.000000,1.590001);
  71.         case 4:SetPlayerAttachedObject(playerid,SLOT_ATTAC,322,1,-0.371000,0.139000,-0.014999,-92.800003,-2.600008,3.000001,1.000000,1.000000,1.806000);
  72.         case 5:SetPlayerAttachedObject(playerid,SLOT_ATTAC,322,1,-0.371000,0.139000,-0.014999,-92.800003,-2.600008,3.000001,1.000000,1.000000,2.192001);
  73.     }
  74. }
  75. stock IsPlayerInRangeOfWoman(playerid, Float:distance) {
  76.     new Float:posuser[4], Float:playeruser[3];
  77.     for(new user=0; user<GetMaxPlayers(); user++) {
  78.         if(!IsPlayerConnected(user)) continue;
  79.         if(GetPlayerSex(user)) continue;
  80.         GetPlayerPos(playerid, playeruser[0], playeruser[1], playeruser[2]);
  81.         GetObjectPos(user, posuser[0],posuser[1],posuser[2]);
  82.         posuser[3] = floatsqroot(floatpower(floatabs(floatsub(playeruser[0],posuser[0])),2)+ floatpower(floatabs(floatsub(playeruser[1],posuser[1])),2)+ floatpower(floatabs(floatsub(playeruser[2],posuser[2])),2));
  83.         if(posuser[3] < distance) return true;
  84.     } return false;
  85. }
  86. /*
  87.              Prohibido TOTALMENTE el Robo de Créditos o la
  88.              Publicación de este FILTERSCRIPT sin Mi Permiso.
  89.  
  90.                      FULLY spaces Theft Credit or
  91.           Publication of this FILTERSCRIPT without my permission.
  92.  
  93.     SIMPLE FILTERSCRIPT --> Excitation in SA-MP 'TROLL'
  94.     INFORMATION: is a command that active and deactivate a timer that checks players with skins of women and anger grow in size the object attached to the player that simulates the excitement of playing, when the opposite is true will decrease.
  95.     CREDITOS: OTACON ;)
  96.     NOTA: Menos Creditos para los que me los critican.. JO'PUTAS! :D xD ;)
  97. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement