A way to prevent players from fixing vehicle in pay n' sprays??
#1

Is there a way to make impossible to fix the vehicle in pay n' sprays (Because it isn't RPing).
I don't want an object to block the entrance.
Thanks,
Reply
#2

pawn Код:
If(IsPlayerInRangeOfPont(playerid, range, PayAndSprayX, PayAndSprayY, PayAndSprayZ)) SetPlayerPos(playerid, yourX, yourY, yourZ);
I think they will get sprayed anyway if you do this code.

No, it's impossible unless you add an object infront of it.
Reply
#3

In my RP server is dollars not used. I made custom money, and i have a command called /mymoney where the player can see how many money he has. This makes players unable to use garage. And when he enteres mod garage, the script will automatically give him $99999999, and when he exits mod garage, his money are reset to 0. Hope this could help you.
Reply
#4

Block all of your paynsprays.

And map your own paynspray, Then when they are in there, make a command like /spray. And they have to choose a colour for their vehicle
Reply
#5

The method I'm using is a pickup in front of the garage (With my own vehicle repairation system), but when you've picked it up it disappears, and if you come with another car you can still use it!

I'm not using my PC so I can't show my code.
My repair method does:

Код:
Kind of code
On player picks up the pickup with the vehicle:
{
  set vehicle virtual world to 1.
  set timer "a" to 10 minutes.
  send the messages..
}

Timer "a":
{
  changes the veh virtual world to 0.
  if(money > THE_MONEY)
  {
    take the money;
    Fix the car;
    Send  message
  }
 else
 {
    send error message;
 }
}
This was a kind of code, becaus eI don't have it on this PC

But the problem is:

If player picks the pickup: it's all OK
BUT THE PICKUP DISAPPEARS FOR HIM!
So, he can use another vehicle and enter pay n' spray XD
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)