回复:  5 | 评论:  0
L07.下士 V2.勋爵
跳转到指定楼层
Glorydark 发表于 2017-08-12 17:52 | 只看该用户的回复

用到的变量:scorebl,scoregr

register_forward(FM_PlayerPreThink,"thinkkill")

public think(id)

{

if(SuicGetRoundTime() == 0)

{

if(scorebl > scoregr && SuicGetPlayerTeam(id) == 1)

{

SuicDrawCenterTif(id,"MISUCCESS",3.0)

set_task(5.0,"quit")

}

if(scorebl < scoregr && SuicGetPlayerTeam(id) == 1)

{

SuicDrawCenterTif(id,"MIFAIL",3.0)

set_task(5.0,"quit")

}

if(scorebl > scoregr && SuicGetPlayerTeam(id) == 2)

{

SuicDrawCenterTif(id,"MIFAIL",3.0)

set_task(5.0,"quit")

}

if(scorebl < scoregr && SuicGetPlayerTeam(id) == 2)

{

SuicDrawCenterTif(id,"MISUCCESS",3.0)

set_task(5.0,"quit")

}

if(scorebl == scoregr)

{

SuicDrawCenterTif(id,"BATTLEDRAW",3.0)

set_task(5.0,"quit")

}

}

}

@尘兵 


L07.下士 V2.勋爵
Glorydark 发表于 2017-08-12 17:52 | 只看该用户的回复

= =这段代码不知为何没有效果

L07.下士 V2.勋爵
Glorydark 发表于 2017-08-12 17:55 | 只看该用户的回复

Welcome to the AMX Mod X 1.8.1-300 Compiler.

Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team

Warning: Possibly unintended assignment on line 25

Warning: Possibly unintended assignment on line 31

Warning: Symbol is assigned a value that is never used: "killer" on line 86

Warning: Symbol is assigned a value that is never used: "spawnname" on line 147

Header size:            828 bytes

Code size:             4712 bytes

Data size:             1108 bytes

Stack/heap size:      16384 bytes; estimated max. usage=525 cells (2100 bytes)

Total requirements:   23032 bytes

4 Warnings.

Done.


L11.准尉 V4.子爵
潜水员
尘兵 发表于 2017-08-17 14:03 | 只看该用户的回复

thinkkill和think是什么关系


L07.下士 V2.勋爵
Glorydark 发表于 2017-08-17 14:08 | 只看该用户的回复

几天前弄好了


L11.准尉 V4.子爵
潜水员
尘兵 发表于 2017-08-18 10:39 | 只看该用户的回复

我还是想知道

thinkkill和think是什么关系


竞技之王

所属:兵联游戏

扫二维码下载兵联社区客户端

使用兵联社区APP
解锁更多操作玩法