ID:268245
 
need somone to make a no building zone code for game so people cant build stuff in areas no alowed

IM me at: kalimindo69
E-mail me at: [email protected]
turf/var/cantbuild = 0

obj
Floor
icon = 'floor.dmi'
turf
Grass
icon = 'grass.dmi'
cantbuild = 1
mob
verb
Build()
for(var/turf/T in src.loc)
if(T.cantbuild)
src << "Get off Mr T's bus f00."
return
new /obj/Floor(src.loc)
In this example, if a player were to use the verb Build() on the grass turf, it would output the message "Get off Mr T's bus f00." and won't allow them to place anything there.
In response to Enigmaster2002
thank you so much you've been a rally big help
In response to Loa Ash
you really should post this in classified ads
In response to Enigmaster2002
First, that's wrong. Second, don't hand code out on a silver platter. It doesn't help anyone, and it's likely Loa will just come back asking "How do I make it so you can't buil on water?"
In response to Garthor
you are right man lmao kuzz that code didnt work but it nwas very close i had somone els do it but enigmaster is a good guy so dont blame him :)