Lua Hook
always
assist
attack
attack2
bombdefuse
bombexplode
bombplant
break
build
buildattempt
buy
clientdata
collect
die
dominate
drop
endround
flagcapture
flagtake
flashlight
hit
hitzone
hostagerescue
httpdata
join
key
kill
leave
log
mapchange
menu
minute
move
movetile
ms100
name
objectdamage
objectkill
objectupgrade
parse
projectile
radio
rcon
reload
say
sayteam
second
select
serveraction
shieldhit
shutdown
spawn
specswitch
spray
startround
startround_prespawn
suicide
team
trigger
triggerentity
turretscan
use
usebutton
vipescape
vote
walkover
Lua 命令
addbind
addhook
ai_aim
ai_attack
ai_build
ai_buy
ai_debug
ai_drop
ai_findtarget
ai_freeline
ai_goto
ai_iattack
ai_move
ai_radio
ai_reload
ai_respawn
ai_rotate
ai_say
ai_sayteam
ai_selectweapon
ai_spray
ai_use
checksumfile
checksumstring
closehostage
closeitems
closeobjects
entity
entitylist
freehook
freeimage
freetimer
funcs
game
hostage
image
imagealpha
imageblend
imagecolor
imageframe
imagehitzone
imagepos
imagescale
inentityzone
item
itemtype
map
menu
msg
msg2
object
objectat
objecttype
parse
player
playerammo
playerweapons
print
projectile
projectilelist
randomentity
randomhostage
reqcld
reqhttp
setentityaistate
sethookstate
stats
steamstats
tile
timer
tween_alpha
tween_animate
tween_color
tween_frame
tween_move
tween_rotate
tween_rotateconstantly
tween_scale
vars

reqhttp

分类

基础

参数

    url : 网站地址
    path : 路径
    mode : 模式

说明

reqhttp是“请求HTTP”的缩写。HTTP用于从网页/网络服务请求数据(GET请求,非POST)

“url” =域名或IP,例如“ cs2dcn.com”

“path” =您要请求的内容的相对路径,通常以反斜杠开头。例如,“ / index.php”

模式=控制您希望如何接收结果。0表示纯字符串,1表示字节数组(带数字的Lua表)。

请求的数据将被延迟接收。这是因为它是通过网络发送的。您必须使用httpdata-hook处理传入数据!

该命令将为请求返回唯一的ID。相同的ID将传递到httpdata-hook,以便您可以匹配请求和响应。

注意:许多HTTP / HTTP请求可能会对服务器的性能产生负面影响,并可能导致连接的玩家的ping峰值。小心使用!

修改词条 删除词条