Sweeper sidejob
#1

Hello

I am trying to make a sweeper job for my server.
I want the script to be like this:
when i enter the sweeper it says on the screen "press 2 to start sweeper job"
and then i drive around the sweeper and for every 1 min that past i earn xx amount of money.

thanks
Reply
#2

hmm nobody knows how :P, quess its impossible
Reply
#3

It is possible but I doubt no one will post it here. You will have to kindly ask someone to take up there time to make you a FS or a tutorial.
Reply
#4

Hmm, do you know scripting ?, because i would appriciate a fs or a tutorial whatever you think is easiest thing to make.
i would appriciate if you want to help me
(i am not the best in the world at spelling xD)
Reply
#5

It's impossible(as far i know) to check people if they pressed key 2. But you can do commands like /startjob, etc.
Reply
#6

Quote:
Originally Posted by Madsen
View Post
Hello

I am trying to make a sweeper job for my server.
I want the script to be like this:
when i enter the sweeper it says on the screen "press 2 to start sweeper job"
and then i drive around the sweeper and for every 1 min that past i earn xx amount of money.

thanks
You need to look into:

https://sampwiki.blast.hk/wiki/OnPlayerEnterVehicle

Peace...
Reply
#7

Quote:
Originally Posted by Marricio
View Post
It's impossible(as far i know) to check people if they pressed key 2. But you can do commands like /startjob, etc.
You're completely wrong.

These link's should get you going:
OnPlayerKeyStateChange Check if player pushed the 2 key " submission "
GetPlayerVehicleID Get the player's vehicle id.
GetVehicleModel Check the vehicle model from the vehicle id.
SetTimerEx Check if model == Sweeper. if then start Money Timer.
GivePlayerMoney After xx amount of time and player still in vehicle give xx amount of money.
Reply
#8

Or checkpoints...
Reply
#9

Quote:
Originally Posted by Cameltoe
View Post
You're completely wrong.

These link's should get you going:
OnPlayerKeyStateChange Check if player pushed the 2 key " submission "
GetPlayerVehicleID Get the player's vehicle id.
GetVehicleModel Check the vehicle model from the vehicle id.
SetTimerEx Check if model == Sweeper. if then start Money Timer.
GivePlayerMoney After xx amount of time and player still in vehicle give xx amount of money.
Oh well, i didn't knew that, thanks.
Reply
#10

thx for the help guys
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)