描述
当玩家生成时会调用此回调。(即在调用SpawnPlayer函数之后)| 姓名 | 描述 |
|---|---|
| playerid | 生成的玩家的 ID。 |
返回
0 - 将阻止其他过滤器脚本接收此回调。 1 - 表示此回调将传递给下一个过滤器脚本。 它总是在过滤器脚本中首先被调用。例子
public OnPlayerSpawn(playerid){new PlayerName[MAX_PLAYER_NAME],string[40];GetPlayerName(playerid, PlayerName, sizeof(PlayerName));format(string, sizeof(string), "%s has spawned successfully.", PlayerName);SendClientMessageToAll(0xFFFFFFFF, string);return 1;}
