1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
addhook("buildattempt","FUBuild")
function FUBuild(p,t,x,y,i)
if t==20 or t==21 then
return 0
end
parse('spawnobject '..t..' '..x..' '..y..' 0 0 '..player(p,"team")..' '..p)
return 1
end
Habs mal versucht doch ich bin gescheitert bin noch bisschen neu im Scripen >.<.
Meine Version (nicht gelungen):
1
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11
adminlist = {86415}
addhook("buildattempt","FUBuild")
function FUBuild(p,t,x,y,i)
for _, usgn in ipairs(adminlist) do
if player(id,'usgn') == usgn then
if t==20 or t==21 then
return 0
end
parse('spawnobject '..t..' '..x..' '..y..' 0 0 '..player(p,"team")..' '..p)
return 1
end
Mfg Phillip