Bob_Marley

[PAWNO] wanking v2.0 (ENG)

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