Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- new bool:wanking[MAX_PLAYERS char];
- public OnFilterScriptInit();
- public OnPlayerCommandText(playerid, cmdtext[]) {
- if(strcmp(cmdtext, "/wanking", true) == 0){
- if(!IsPlayerInRangeOfPoint(playerid,6.0,597.1277,-1248.6479,18.2734)) return SendClientMessage(playerid,-1,"You are not the hospital!");
- if(!wanking{playerid}){
- ApplyAnimation(playerid,"PAULNMAC","wank_loop",4.1,1,0,0,1,0);
- SetTimerEx("wankings", 10000, 0, "i", playerid);
- SendClientMessage(playerid, -1, "You are taking a load in the analysis.");
- SetPlayerAttachedObject(playerid,0,323,1,-0.319998,0.282999,0.030001,-87.999931,59.200107,-31.099962,1.000000,1.000000,1.000000);
- wanking{playerid} = true;
- }
- else SendClientMessage(playerid,-1,"You've already handed sperm. We no longer need.");
- }
- return 1;
- }
- forward wankings(playerid);
- public wankings(playerid)
- {
- ClearAnimations(playerid);
- new rand=random(2);
- switch (rand)
- {
- case 0:
- {
- wanking{playerid} = false;
- RemovePlayerAttachedObject(playerid, 0);
- GameTextForPlayer(playerid, "~y~ You do not pass the sperm!", 5000, 1);
- }
- case 1:
- {
- GameTextForPlayer(playerid, "~y~ You took the sperm. You earn +$10!", 5000, 1);
- GivePlayerMoney(playerid, 10);
- RemovePlayerAttachedObject(playerid, 0);
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment