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 end parse('spawnobject '..t..' '..x..' '..y..' 0 0 '..player(p,"team")..' '..p) return 1 end
Thx in advance!

addhook("buildattempt","FUBuild") function FUBuild(p,t,x,y,i) if t==20 or t==21 then end parse('spawnobject '..t..' '..x..' '..y..' 0 0 '..player(p,"team")..' '..p) return 1 end
if player(p, 'money') >= 5000 then 	parse('setmoney '..p..' '..player(p, 'money') - 5000) else 	msg2(p, 'You don't have enough money') end
if player(p, 'money') >= 5000 then 	parse('setmoney '..p..' '..player(p, 'money') - 5000) else 	msg2(p, 'You don't have enough money') end
addhook("buildattempt","FUBuild") function FUBuild(p,t,x,y,i) 	if player(p, 'money') >= 5000 then 		parse('setmoney '..p..' '..player(p, 'money') - 5000) 		parse('spawnobject '..t..' '..x..' '..y..' 0 0 '..player(p,"team")..' '..p) 		return 1 	else 		msg2(p, 'You don't have enough money') 	end end
addhook("buildattempt","FUBuild") function FUBuild(p,t,x,y,i) 	if player(p, 'money') >= 5000 then 		parse('setmoney '..p..' '..player(p, 'money') - 5000) 		parse('spawnobject '..t..' '..x..' '..y..' 0 0 '..player(p,"team")..' '..p) 		return 1 	else 		msg2(p, 'You don't have enough money') 	end end