random overweight
#1

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 .
Reply
#2

You mean, if there's truck driving in Normal side, the driver will ticketed?
IsPlayerInArea I guess (If your bridge isn't diagonal).
Reply
#3

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
Reply
#4

he means if the truck is in the right lane and is overloaded the driver gets fined kinda like in Convoy trucking i guess
Reply
#5

i wouldnt know about convoy trucking i will get pictures now
Reply
#6

pawn Код:
switch(random(2))
{
   case 0:
   {
             //Overweight
   }
   case 1:
   {
            //Not overweight
   }
}
Reply
#7

pictures here
WAY TO IT


END OF IT

Reply
#8

As I said, use switch and IsPlayerInArea (Can be found in uf.inc)
Do timer to check IsPlayerInArea .
Reply
#9

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
Reply
#10

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 ?
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)