SA-MP Forums Archive
Sweeper sidejob - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Sweeper sidejob (/showthread.php?tid=228488)



Sweeper sidejob - Madsen - 19.02.2011

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


Re: Sweeper sidejob - Madsen - 21.02.2011

hmm nobody knows how :P, quess its impossible


Re: Sweeper sidejob - captainjohn - 21.02.2011

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.


Re: Sweeper sidejob - Madsen - 21.02.2011

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)


Re: Sweeper sidejob - Marricio - 21.02.2011

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


Re: Sweeper sidejob - Stigg - 21.02.2011

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...


Re: Sweeper sidejob - Cameltoe - 21.02.2011

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.


Re: Sweeper sidejob - maramizo - 21.02.2011

Or checkpoints...


Re: Sweeper sidejob - Marricio - 21.02.2011

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.


Re: Sweeper sidejob - Madsen - 22.02.2011

thx for the help guys