A question :\
#1

Hello,
I've always been thinkin' for what code
pawn Код:
OnEnterExitModShop
Is used :\
Reply
#2

It's a callback that is executed when a player enters or exits a car mod shop (transfender, locolow, arch angels, ...).
Reply
#3

Ok but like a example i seen at wiki
pawn Код:
public OnEnterExitModShop(playerid, enterexit, interiorid)
{
    if(enterexit == 0)
    {
        SendClientMessage(playerid, COLOR_WHITE, "Nice car! You have been taxed $100.");
        GivePlayerMoney(playerid, -100);
    }
    return 1;
}
so this exactly means that player's cash will be deducted if they enters mod shop? and what if i enter
pawn Код:
if(enterexit == 1)
Reply
#4

OnEnterExitModShop
- This callback is called when a player enters or exits a mod shop.

if you change it to 1 (entering) , it can take the money on entering, else if it's 0 on exiting.
Reply
#5

Quote:
Originally Posted by Dwane
Посмотреть сообщение
OnEnterExitModShop
- This callback is called when a player enters or exits a mod shop.

This callback can be used for shops. For example you can disable to enter on the Ammunations and make with checkpoints new Ammu with new weapons.
This can be done with pickups?
Reply
#6

Quote:
Originally Posted by Littlehelper[MDZ]
Посмотреть сообщение
This can be done with pickups?
Write 'mistake' on this. My last sentence was wrong. I confused it with
pawn Код:
DisableInteriorEnterExits();
However, I don't recomment pickups. With checkpoints it's nicer.
Reply
#7

Ohk \:, but it still dosent clears me up ):
Reply
#8

Quote:
Originally Posted by Littlehelper[MDZ]
Посмотреть сообщение
Ohk \:, but it still dosent clears me up ):
What isn't clear? I don't even know pawn and I can tell that it takes $100 from the player when they exit a mod shop. It isn't hard.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)