SA-MP Forums Archive
A question :\ - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Other (https://sampforum.blast.hk/forumdisplay.php?fid=7)
+--- Forum: Everything and Nothing (https://sampforum.blast.hk/forumdisplay.php?fid=23)
+--- Thread: A question :\ (/showthread.php?tid=311385)



A question :\ - Littlehelper - 16.01.2012

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


Re: A question :\ - Sinner - 16.01.2012

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


Re: A question :\ - Littlehelper - 16.01.2012

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)



Re: A question :\ - Konstantinos - 16.01.2012

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.


Re: A question :\ - Littlehelper - 16.01.2012

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?


Re: A question :\ - Konstantinos - 16.01.2012

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.


Re: A question :\ - Littlehelper - 16.01.2012

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


Re: A question :\ - Potassium - 16.01.2012

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.