Bob_Marley

[PAWNO] wanking (3.0)

Sep 12th, 2013
375
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.37 KB | None | 0 0
  1. #include <a_samp>
  2. //by Bob_Marley
  3. //Update Exclusive
  4.  
  5. new bool:wp[MAX_PLAYERS char];
  6. public OnFilterScriptInit();
  7.  
  8. public OnPlayerCommandText(playerid, cmdtext[])
  9. {
  10.     if(strcmp(cmdtext, "/wanking", true) == 0)
  11.     {
  12.         if(!IsPlayerInRangeOfPoint(playerid,6.0,597.1277,-1248.6479,18.2734)) return SendClientMessage(playerid,-1,"You are not the hospital!");
  13.         if(!wp{playerid})
  14.         {
  15.             ApplyAnimation(playerid,"PAULNMAC","wank_loop",4.1,1,0,0,1,0);
  16.             SetTimerEx("wanking", 0x3a98, 0, "i", playerid);
  17.             SendClientMessage(playerid, -1, "You are taking a load in the analysis.");
  18.             SetPlayerAttachedObject(playerid,0,323,1,-0.319998,0.282999,0.030001,-87.999931,59.200107,-31.099962,1.000000,1.000000,1.000000);
  19.             wp{playerid} = true;
  20.         }
  21.         else SendClientMessage(playerid,-1,"You've already handed sperm. We no longer need.");        
  22.     }
  23.     return 1;    
  24. }
  25.  
  26. public wanking(playerid);
  27. public wanking(playerid)
  28. {  
  29.     ClearAnimations(playerid);
  30.     #define TEXT(%1) GameTextForPlayer(%1, "~y~ You have passed!", 5000, 1)
  31.     switch (random(2))  
  32.     {  
  33.         case 0: wp{playerid} = false;                      
  34.         case 1: TEXT(playerid),GivePlayerMoney(playerid, random(8*8+10/2+300));
  35.     }
  36.     RemovePlayerAttachedObject(playerid, 0);
  37.     return 1,printf("wanking( %d )", playerid);
  38. }
Advertisement
Add Comment
Please, Sign In to add comment