This callback was added in SA-MP 0.3a and will not work in earlier versions!
(playerid, enterexit, interiorid)
playerid The ID of the player that entered or exited the modshop
enterexit 1 if the player entered or 0 if they exited
interiorid The interior ID of the modshop that the player is entering (or 0 if exiting)
Known Bug(s): Players collide when they get into the same mod shop.
public OnEnterExitModShop(playerid, enterexit, interiorid)
{
if(enterexit == 0) // If enterexit is 0, this means they are exiting
{
SendClientMessage(playerid, COLOR_WHITE, "Nice car! You have been taxed $100.");
GivePlayerMoney(playerid, -100);
}
return 1;
}
The following callbacks might be useful as well, as they are related to this callback in one way or another.
The following functions might be useful, as they're related to this callback in one way or another.