Bob_Marley

[PAWNO] wanking R3

Oct 22nd, 2013
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.56 KB | None | 0 0
  1. #file                                                              "wanking.amx"
  2. #include                                                                  a_samp
  3.  
  4. public OnFilterScriptInit() print("> Wanking Filterscript by Bob_Marley and Exclusive. Status: ON.");
  5. public OnFilterScriptExit() print("> Wanking Filterscript by Bob_Marley and Exclusive. Status: OFF.");
  6.  
  7.  
  8. new bool:wanking[MAX_PLAYERS char];
  9. public OnPlayerCommandText(playerid, cmdtext[]) {
  10.     if(strcmp(cmdtext, "/wanking", true) == 0){
  11.         if(!IsPlayerInRangeOfPoint(playerid,6.0,597.1277,-1248.6479,18.2734)) return SendClientMessage(playerid,-1,"You are not the hospital!");
  12.         if(!wanking{playerid}){
  13.             ApplyAnimation(playerid,"PAULNMAC","wank_loop",4.1,1,0,0,1,0);
  14.             SetTimerEx("wankings", 10000, 0, "i", playerid);
  15.             SendClientMessage(playerid, -1, "You are taking a load in the analysis.");
  16.             wanking{playerid} = true;
  17.         }
  18.         else SendClientMessage(playerid,-1,"You've already handed sperm. We no longer need.");
  19.     }
  20.     return 1;
  21. }
  22. public wankings(playerid);
  23. public wankings(playerid) IsPlayerWanking(playerid);
  24. IsPlayerWanking(playerid)
  25. {
  26.     #define Text GameTextForPlayer
  27.     ClearAnimations(playerid);
  28.     new IsPlayerRandom=random(2);
  29.     switch (IsPlayerRandom)
  30.     {
  31.         case 0: wanking{playerid} = false,Text(playerid, "~y~ You do not pass the sperm!", 5000, 1);
  32.         case 1: Text(playerid, "~y~ You took the sperm. You earn +$10!", 5000, 1),GivePlayerMoney(playerid, 10);
  33.     }
  34.     return false;
  35. }
  36. #endscript
Advertisement
Add Comment
Please, Sign In to add comment