警告
此回调是在SA-MP 0.3a中添加的,在早期版本中不起作用!描述
当玩家进入或退出模组商店时会调用此回调。姓名 | 描述 |
---|---|
playerid | 进入或退出modshop的玩家ID |
enterexit | 如果玩家进入则为 1,如果退出则为 0 |
interiorid | 玩家正在进入的 modshop 的内部 ID(如果退出则为 0) |
退货
它总是在过滤器脚本中首先被调用。例子
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;
}