Bob_Marley

[PAWNO] wanking v1.0 (ENG)

Oct 14th, 2012
255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.35 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.             wanking{playerid} = true;
  14.         }
  15.         else SendClientMessage(playerid,-1,"You've already handed sperm. We no longer need.");        
  16.     }
  17.     return 1;    
  18. }
  19.  
  20. forward wankings(playerid);
  21. public wankings(playerid)
  22. {  
  23.     ClearAnimations(playerid);
  24.     new rand=random(2);  
  25.     switch (rand)  
  26.     {  
  27.         case 0:
  28.         {  
  29.             wanking{playerid} = false;
  30.             RemovePlayerAttachedObject(playerid, 0);
  31.             GameTextForPlayer(playerid, "~y~ You do not pass the sperm!", 5000, 1);
  32.         }                      
  33.         case 1:
  34.         {
  35.             GameTextForPlayer(playerid, "~y~ You took the sperm. You earn +$10!", 5000, 1);
  36.             GivePlayerMoney(playerid, 10);         
  37.         }                      
  38.     }
  39.     return 1;
  40. }
Advertisement
Add Comment
Please, Sign In to add comment