/ignoreteam, /ignoreenemy

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6857 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Bukz
2012-08-23 04:48:28 +00:00
parent 7d61ac85f5
commit 4d3a6b2850
+22 -1
View File
@@ -8,7 +8,28 @@ const autoteam [ callvote 4 $arg1 ]
const forceteam [ callvote 5 $arg1 ]
const forceme [ forceteam (player1 cn) ]
const ignoreall [ if $connected [ ingall = 1; loop ia 21 [ ignore $ia ]; echo (blue)NOTE: (white)All clients currently on the server were ignored. ] ]
const unignoreall [ if $connected [ ingall = 0; clearignored ]; echo (blue)NOTE: (white)All clients currently on the server were unignored. ]
const unignoreall [ if $connected [ ingall = 0; clearignored; echo (blue)NOTE: (white)All clients currently on the server were unignored. ] ]
const ignoreteam [
if (curmodeattr team) [
_arg1 = (toupper $arg1)
if (|| (strcmp $_arg1 CLA) (strcmp $_arg1 RVSF)) [
loop itl 21 [
if (isclient $itl) [
if (= (player $itl team) (at "0 1" (strcmp $_arg1 RVSF))) [ ignore $itl ]
]
]
] [
if (checkrange $_arg1 0 1) [
loop itl 21 [
if (isclient $itl) [
if (= (player $itl team) $_arg1) [ ignore $itl ]
]
]
]
]
] [ echo (red)Error: (white)Not in a team mode. ]
]
const ignoreenemy [ ignoreteam (at "0 1" (! (player1 team))) ]
const giveadmin [ callvote 6 $arg1 ]
const map [ callvote 7 $arg1 $arg2 ]
const recorddemo [ callvote 8 1 ]