13 Mar 11, 02:59PM
(This post was last modified: 13 Mar 11, 11:24PM by BarricadeX75.)
Hi everybody,
I need help on a script, it's my own version of the saystats script, I wanted to add a message that appears if you have full ammo (3 nades, full pistolclips and full primary ammo).
The problem is that the full ammo message doesn't appear. But I don't have error messages.
Here is what I have so far :
If someone could help me, please.
By the way, I post my own scripts :
I also found a weird bug with AC's map editor.
Type /editbug while watching a demo :
EDIT : More bug ! While in "editbug mode", watch another demo... You should be able to follow other players with your own player, but you won't be able to shoot.
I need help on a script, it's my own version of the saystats script, I wanted to add a message that appears if you have full ammo (3 nades, full pistolclips and full primary ammo).
The problem is that the full ammo message doesn't appear. But I don't have error messages.
Here is what I have so far :
[SELECT ALL] Code:
AdvWepStats = [
weaponnames = ["Knife" "Pistol" "Carbine" "Shotgun" "Subgun" "Sniper Rifle" "Assault Rifle" "Grenades" "Akimbo"]
primload = (magcontent (currentprimary))
primleft = (magreserve (currentprimary))
primtot = (+ $primload $primleft)
secload = (magcontent 1)
secleft = (magreserve 1)
sectot = (+ $secload $secleft)
akiload = (magcontent 9)
akileft = (magreserve 9)
akitot = (+ $akiload $akileft)
nadesnbr = (magcontent 8)
echo (concatword "3" (at $weaponnames (currentprimary)) " 7:3 " $primload " 4rounds loaded 7|3 " $primleft " 4rounds left 7|3 " $primtot " 4rounds total");
if (= $akiload 0) [
echo (concatword "3Pistol 7:3 " $secload " 4rounds loaded 7|3 " $secleft " 4rounds left 7|3 " $sectot " 4rounds total") [] ];
if (> $akiload 0) [
echo (concatword "3Akimbo 7:3 " $akiload " 4rounds loaded 7|3 " $akileft " 4rounds left 7|3 " $akitot " 4rounds total") [] ];
if (> $nadesnbr 0) [
echo (concatword "3Grenades 7:3 " $nadesnbr " ") [] ];
if (= currentprimary 2) [
if (&& (= $nadesnbr 3) (= $sectot 80) (= $primtot 40) ) [
echo "3You're at full ammo" [] ]
[] ];
if (= currentprimary 3) [
if (&& (= $nadesnbr 3) (= $sectot 80) (= $primtot 28) ) [
echo "3You're at full ammo" [] ]
[] ];
if (= currentprimary 4) [
if (&& (= $nadesnbr 3) (= $sectot 80) (= $primtot 120) ) [
echo "3You're at full ammo" [] ]
[] ];
if (= currentprimary 5) [
if (&& (= $nadesnbr 3) (= $sectot 80) (= $primtot 20) ) [
echo "3You're at full ammo" [] ]
[] ];
if (= currentprimary 6) [
if (&& (= $nadesnbr 3) (= $sectot 80) (= $primtot 80) ) [
echo "3You're at full ammo" [] ]
[] ]
]
If someone could help me, please.
By the way, I post my own scripts :
[SELECT ALL] Code:
//Kick by nick script by BarricadeX75
knick = [
alias player_name (findcn $arg1);
kick $player_name
]
I also found a weird bug with AC's map editor.
Type /editbug while watching a demo :
[SELECT ALL] Code:
editbug = [
edittoggle;
sleep 100 stopdemo
]
EDIT : More bug ! While in "editbug mode", watch another demo... You should be able to follow other players with your own player, but you won't be able to shoot.