SA-MP Forums

SA-MP Forums (https://forum.sa-mp.com/index.php)
-   Filterscripts (https://forum.sa-mp.com/forumdisplay.php?f=17)
-   -   [FilterScript] Simple Goverment Payout (https://forum.sa-mp.com/showthread.php?t=547819)

Jakwob 25/11/2014 01:56 PM

Simple Goverment Payout
 
here is a old code of mine i had for ages and never used it.

A simple Payout script with random payouts

Features:
  • Random Pay
  • Payout every 30 mins


LeXuZ 25/11/2014 03:19 PM

Re: Simple Goverment Payout
 
This is useful, i remember you showing me this Jakwob, nice work!

bustern 28/11/2014 04:14 AM

Re: Simple Goverment Payout
 
Quote:

Originally Posted by LeXuZ (Post 3266694)
This is useful, i remember you showing me this Jakwob, nice work!

Yea as useful as my shit.Nice 1 minute scripting or nah ?Who the hell is gonna use this bullshit...

Glossy42O 28/11/2014 04:17 AM

Re: Simple Goverment Payout
 
Quote:

Originally Posted by bustern (Post 3269217)
Yea as useful as my shit.Nice 1 minute scripting or nah ?Who the hell is gonna use this bullshit...

Wow so it's 1 minute, who da fuck cares? If it works then it's great. No need to make it "special" or 10000000 lines.

bustern 28/11/2014 04:18 AM

Re: Simple Goverment Payout
 
But tottaly useless ;)
Its like i can make a script that says hello madafacka to every player who connects to the server and will someone use it ?Nah.

Arastair 28/11/2014 04:50 AM

Re: Simple Goverment Payout
 
Could you explain a little more?

MD5 28/11/2014 04:53 AM

Re: Simple Goverment Payout
 
Functions

Quote:

This script has an randomized amount of money defined at the top of the script, but it also uses a timer. And that timer is used to give the player the (randomized amount of money) I stated in the beginning. And, then displays a game text saying "Government Payout".

Glossy42O 28/11/2014 09:28 AM

Re: Simple Goverment Payout
 
Quote:

Originally Posted by bustern (Post 3269219)
But tottaly useless ;)
Its like i can make a script that says hello madafacka to every player who connects to the server and will someone use it ?Nah.

i would use it.

Alex Magaņa 28/11/2014 09:51 AM

Re: Simple Goverment Payout
 
Simple but good for a beginner.

Schneider 28/11/2014 11:24 AM

Re: Simple Goverment Payout
 
Why don't you just use the random-function to generate a random payout-amount instead of an array?

pawn Code:
#define MinPayout 200
#define MaxPayout 2500

GivePlayerMoney(i, MinPayout+random(MaxPayout-MinPayout));


All times are GMT. The time now is 12:25 PM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.