note Help Needed
This wiki is the result of an ongoing community effort — thank you all for helping!
If you want to provide changes to this page then please click here.
OnActorStreamIn
warning
这个回调是在SA-MP 0.3.7中添加的,在以前的版本中不起作用!
描述
当演员被玩家的客户端流入时,就会调用这个回调。
参数名 | 描述 |
---|---|
actorid | 已为玩家流入的演员的 ID。 |
forplayerid | 让演员流入的玩家的 ID。 |
返回值
它在过滤脚本中总是先被调用。
案例
public OnActorStreamIn(actorid, forplayerid)
{
new string[40];
format(string, sizeof(string), "演员 %d 现在正为你流入。", actorid);
SendClientMessage(forplayerid, 0xFFFFFFFF, string);
return 1;
}
相关回调
tip
这个回调也可以由NPC调用。