18.03.2013, 03:27
pawn Код:
new oldmoney;
public OnEnterExitModShop(playerid, enterexit, interiorid)
{
if(enterexit == 0) // If enterexit is 0, this means they are exiting
{
ResetPlayerMoney(playerid);
GivePlayerMoney(playerid, oldmoney);
} else {
oldmoney = GetPlayerMoney(playerid);
}
return 1;
}