搜索
查看: 324|回复: 1
收起左侧

[教程] 反兔兔跳

[复制链接]
admin 发表于 2022-6-29 10:52:07 | 显示全部楼层 |阅读模式
 Citizen.CreateThread(function()
    while true do
        Citizen.Wait(100)
        local ped = PlayerPedId()
        if IsPedOnFoot(ped) and not IsPedSwimming(ped) and (IsPedRunning(ped) or IsPedSprinting(ped)) and not IsPedClimbing(ped) and   
IsPedJumping(ped) and not IsPedRagdoll(ped) then
            local chance_result = math.random()
            if chance_result < 0.50 then
                Citizen.Wait(600)    
                SetPedToRagdoll(ped, 5000, 1, 2)
            else
                Citizen.Wait(2000)
            end
        end
    end
end) 


回复 论坛版权

使用道具 举报

升级进度: 2%

Yunkman 发表于 2022-11-6 11:35:29 | 显示全部楼层
请问加在哪里
我要说一句 收起回复
回复

使用道具 举报

ahome_bigavatar:guest
ahome_bigavatar:welcomelogin
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|首页 ( 冀ICP备2021005225号-1 ) |网站地图

GMT+8, 2024-5-14 22:14 , Processed in 0.164330 second(s), 28 queries .

Powered by Discuz! X3.4

© 2001-2013 ELITE论坛【技术无价-分享快乐】

快速回复 返回顶部 返回列表