|
每个角色创建 第一次进入游戏,会执行此函数 x888888_OnScenePlayerFirstLogin 我们在这个函数下面新增 - YuanBao(sceneId,selfId,selfId,1,1000) --发元宝
复制代码 给玩家道具:- TryRecieveItem( sceneId, selfId, 30000000, 1)
复制代码 30000000就是道具ID,可以改成你需要的道具的ID哦
如果在第一次进入游戏的时候检测玩家有没有卡彩色名字:
- local PlayerName = GetName(sceneId,selfId)
- local PlayerSex = GetSex(sceneId,selfId)
- --第一次登陆时 检查卡彩名 直接干死
- if strfind(PlayerName,"#") ~=nil then
- SetLevel( sceneId, selfId, 0)
- NewWorld(sceneId,selfId,77,17,56)
- BroadMsgByChatPipe( sceneId, selfId, "#cFF0000防挂系统:#Y玩家#G"..GetName(sceneId, selfId ).."#Y尝试卡游戏彩名,已被系统拦截,请玩家们尽快通知雪舞!", 4 )
- end
复制代码
|