random overweight - 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)
+--- Thread: random overweight (
/showthread.php?tid=284520)
random overweight -
[LHT]Bally - 19.09.2011
hi all i have mapped a weighbridge , on one side it is for cars which is just a drive through no wieght to be taken , andother side is for trucks etc, what i would like to no is how would i make it so that its random that when a vehicle drives over the side that is for trucks that it gives overloaded and fines the player, and gives them 2 wanted stars ?
what would be best way to do this ? i was thinking isplayerinpoint ? anyone who helps me will go in credits once i have released as a filterscript this evening
.
Re: random overweight -
=WoR=Varth - 19.09.2011
You mean, if there's truck driving in Normal side, the driver will ticketed?
IsPlayerInArea I guess (If your bridge isn't diagonal).
Re: random overweight -
[LHT]Bally - 19.09.2011
no i mean like i have split one lane up and one side is big enough for cars only and that side doesnt get ticketed if overweight, but the other side is for trucks etc and that side will be random overweight so sometimes overweight sometimes not
Re: random overweight -
Zonoya - 19.09.2011
he means if the truck is in the right lane and is overloaded the driver gets fined kinda like in Convoy trucking i guess
Re: random overweight -
[LHT]Bally - 19.09.2011
i wouldnt know about convoy trucking i will get pictures now
Re: random overweight -
=WoR=Varth - 19.09.2011
pawn Код:
switch(random(2))
{
case 0:
{
//Overweight
}
case 1:
{
//Not overweight
}
}
Re: random overweight -
[LHT]Bally - 19.09.2011
pictures here
WAY TO IT
END OF IT
Re: random overweight -
=WoR=Varth - 19.09.2011
As I said, use switch and IsPlayerInArea (Can be found in uf.inc)
Do timer to check IsPlayerInArea .
Re: random overweight -
[LHT]Bally - 19.09.2011
im new to scripting so very basic stuff lol . i will look into it but i think filterscript will take a while . thankyou for help
Re: random overweight -
[LHT]Bally - 19.09.2011
so say like i wanted say 2 out of every 10 players to cross the bridge to be overloaded how i do that ? also how would i make it so the player got 2 wanted stars and a fine ?