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: FerariF150@msn.com
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 (#1)
thank you so much you've been a rally big help
In response to Loa Ash (#2)
you really should post this in classified ads
In response to Enigmaster2002 (#1)
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 (#4)
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 :)