Function who knows which map it is.

Sup !

I need somethink like that :

If map == wz_sniper then

pl:Give( “weapon_sniper” )

else

pl:give( “weapon_m4” )

end

[lua]local theMap = game.GetMap()
print( theMap ) – outputs gm_flatgrass or whatever your map is called[/lua]

but how i make a if question

[editline]23rd July 2013[/editline]

with else

[lua]
if game.GetMap() == “wz_sniper” then
pl:Give( “weapon_sniper” )
else
pl:give( “weapon_m4” )
end
[/lua]

nice thanks!