Hi all i'm trying to stop the players of my multiplayer map picking up a weapon they already have. I have tried adding my own script in to the weapon.lua file but it wont top the player from picking up weapons they already have the promptduration message is correct though.
if g_PlayerGunID > 0 then
Prompt ("You already have this gun. Press T to replace your current weapon with this one.")
::Skipall::
else
Prompt ("Press E To pick up the " .. weapon_name[e] )
end
if g_KeyPressE == 1 then
PromptDuration("Collected the " .. weapon_name[e],3000)
PlaySound(e,0)
AddPlayerWeapon(e)
Destroy(e)
ActivateIfUsed(e)
weapon_therecanbeonlyone = -1
else
end
::Skipall::
Thank you all (I have next to no knowledge of LUA I mostly program in Visual Basic)
IS-S