Flare!
17 replies



12.07.14 09:33:53 am
hi everyone!!
I make flare with item, then if you buy the flare, drop in to the floor then if you claim and press inventory then The name of flare has been change like this HP [250] and [Turbo Speed] then when equip HP [250] then set health then if equip [Turbo Speed] then set speed 200...
I have error of this script! when i open my console nothing errors appears, but no Hooks on console...
I hope you help me
Thank you
I make flare with item, then if you buy the flare, drop in to the floor then if you claim and press inventory then The name of flare has been change like this HP [250] and [Turbo Speed] then when equip HP [250] then set health then if equip [Turbo Speed] then set speed 200...
I have error of this script! when i open my console nothing errors appears, but no Hooks on console...
Code:
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
ITEMs = {
[1] = {equip="54",speed="250"},
}
ITEMs[1].func = function(id,speed)
parse("equip '..id..' '..equip..'")
parse("speedmod '..id..' '..speed..'")
end
addhook("spawn","staff_spawn")
function staff_spawn(id,item)
parse('spawnitem '..equip..' '..player(id,'tilex')..' '..player(id,'tiley'))
end
[1] = {equip="54",speed="250"},
}
ITEMs[1].func = function(id,speed)
parse("equip '..id..' '..equip..'")
parse("speedmod '..id..' '..speed..'")
end
addhook("spawn","staff_spawn")
function staff_spawn(id,item)
parse('spawnitem '..equip..' '..player(id,'tilex')..' '..player(id,'tiley'))
end
I hope you help me

Thank you
Like this file --»
File does not exist (14802)
AWP2D MOD 4.0 [English Version] (4)
zm_Tower Defense v.1.3 (0) «--





You might want to change the title of your thread. "Flare!" does not say that you're trying to make a script which utilizes flare weapon.
I have no idea what you were trying to say. Anyways, I changed few parts, maybe it'll help you make whatever you're making.
Please note that Max speed value is 100
@
AlcatrazZ: If you don't understand then don't reply as it serves no purpose (and may be considered spam)
I have no idea what you were trying to say. Anyways, I changed few parts, maybe it'll help you make whatever you're making.
Please note that Max speed value is 100
Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
2
3
4
5
6
7
8
9
10
11
12
13
14
ITEMs = {
[1] = {equip=54,speed=25}
}
ITEMs[1].func = function(id)
parse("equip "..id.." "..ITEMs[1].equip)
parse("speedmod "..id.." "..ITEMs[1].speed)
end
addhook("spawn","staff_spawn")
function staff_spawn(id)
parse('spawnitem '..ITEMs[1].equip..' '..player(id,'tilex')..' '..player(id,'tiley'))
end
[1] = {equip=54,speed=25}
}
ITEMs[1].func = function(id)
parse("equip "..id.." "..ITEMs[1].equip)
parse("speedmod "..id.." "..ITEMs[1].speed)
end
addhook("spawn","staff_spawn")
function staff_spawn(id)
parse('spawnitem '..ITEMs[1].equip..' '..player(id,'tilex')..' '..player(id,'tiley'))
end
@

not work! when i buy speed no drop flare!
Like this file --»
File does not exist (14802)
AWP2D MOD 4.0 [English Version] (4)
zm_Tower Defense v.1.3 (0) «--





i don't understand your language.. F**k!
EDIT: No work! if i spawn then drop flare then when i press F2 no Inventory menu!!
EDIT: No work! if i spawn then drop flare then when i press F2 no Inventory menu!!
Like this file --»
File does not exist (14802)
AWP2D MOD 4.0 [English Version] (4)
zm_Tower Defense v.1.3 (0) «--





@
M0BSTAZ: why you want to custom inventory using menu if you already have a default inventory installed into cs2d.
-.- you have a flare in hand and in inventory, and when you drop this, item from custom inventory will removed. OMG why you need this sh*t?!

-.- you have a flare in hand and in inventory, and when you drop this, item from custom inventory will removed. OMG why you need this sh*t?!
Ban Reason: Multiple Accounts
I have a project!

Like this file --»
File does not exist (14802)
AWP2D MOD 4.0 [English Version] (4)
zm_Tower Defense v.1.3 (0) «--





Maybe this work.
Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
2
3
4
5
6
7
8
9
10
11
12
13
14
ITEMs = {
[1] = {equip=54,speed=25}
}
ITEMs[1].func = function(id)
parse("equip "..id.." "..ITEMs[1].equip)
parse("speedmod "..id.." "..ITEMs[1].speed)
end
addhook("spawn","staff_spawn")
function staff_spawn(id)
parse('spawnitem '..ITEMs[1].equip..' '..player(id,'tilex')..' '..player(id,'tiley'))
end
[1] = {equip=54,speed=25}
}
ITEMs[1].func = function(id)
parse("equip "..id.." "..ITEMs[1].equip)
parse("speedmod "..id.." "..ITEMs[1].speed)
end
addhook("spawn","staff_spawn")
function staff_spawn(id)
parse('spawnitem '..ITEMs[1].equip..' '..player(id,'tilex')..' '..player(id,'tiley'))
end
Admin/mod comment:
Copying
dude you copy raining mamoths says!! not work
Like this file --»
File does not exist (14802)
AWP2D MOD 4.0 [English Version] (4)
zm_Tower Defense v.1.3 (0) «--





Seriously, we cannot help you properly if you don't give us more information. What in God's name do you want? When a flare is dropped and picked up again, you want the player to get a choice whether to get speed or health? You need to explain this coherently and clearly.
I code, therefore I exist. | Visit my blog for Lua tips and other interesting info
I know what he need exacly.He wants to make Amstria lua.
he only need 1 exemple flare.
He need a good Inventory and he wants flares
Flare Type 1:Turbo Flare
Flare Type 2:HP flare
Flare Type 3:....
thats all
he only need 1 exemple flare.
He need a good Inventory and he wants flares
Flare Type 1:Turbo Flare
Flare Type 2:HP flare
Flare Type 3:....
thats all
edited 1×, last 17.07.14 10:55:12 am
Lel
yes!! you have a exactly what i mean :D!!
Like this file --»
File does not exist (14802)
AWP2D MOD 4.0 [English Version] (4)
zm_Tower Defense v.1.3 (0) «--





Ehm.
M0BSTAZ has written:
Wait, what the hell, that's impossible, there must be atleast errors or hooks in the console. Not enough info or you just don't know how to run the script.

I have error of this script! when i open my console nothing errors appears, but no Hooks on console...
Wait, what the hell, that's impossible, there must be atleast errors or hooks in the console. Not enough info or you just don't know how to run the script.
Worst player ever



