Also With
parse("equip "..p.."..weaponid") this current code line just says the message and doesn't give a weapon.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
elseif string.sub(txt, 1, 9) == "@speedmod" then if PlayerLevel(id) >= 25 then local p = tonumber(string.match(txt, "@speedmod (%d+)")) if (p ~= nil) and (player(p,"exists")) then parse("speedmod "..p.." 100") msg2(p,"©255125000"..player(id,"name").." has used speedmod on you.") msg2(id,"©255125000You speedmod "..player(p,"name").." !") return 1 else msg2(id,"©255000000[Error] @speedmod <ID> <100>") return 1 end else msg2(id,"©255000000You are not allowed to use this command!") return 1 end
and equiping players..
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
elseif string.sub(txt, 1, 6) == "@equip" then if PlayerLevel(id) >= 25 then local p = tonumber(string.match(txt, "@equip (%d+)")) if (p ~= nil) and (player(p,"exists")) then parse("equip "..p.."..weaponid") msg2(p,"©255125000You have been equipped") msg2(id,"©255125000You equip "..player(p,"name").." !") return 1 else msg2(id,"©255000000[Error] @equip <ID> <weaponid>") return 1 end else msg2(id,"©255000000You are not allowed to use this command!") return 1 end
Help would be nice