$2500
3 score
can't get off that spot
invulnerable in that spot
X=8 Y=74
When you're a terrorist then you use in a specific tile you will receive something ONCE:
$5000
3 score
X=279 Y=5
1× editiert, zuletzt 19.11.11 10:23:50
spot = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0} addhook('movetile','_mt') function _mt(i,x,y) 	if x == 8 and y == 74 then 		msg2(i,'$2500, 3 score') 		spot[i] == 1 		parse('speedmod '..i..' 0') 	elseif x == 279 and y == 5 then 		msg2(i,'$5000, 3 score') 		spot[i] == 1 		parse('speedmod '..i..' 0') 	end end addhook('hit','_h') function _h(i) 	if spot[i] == 1 then 		return 1 	end end
addhook("movetile","check_score_tiles") function check_score_tiles(id,x,y) 	if( ( x == 8 and y == 74 ) or ( x == 279 and y == 5 ) ) then 		parse("setscore "..id.." "..(player(id,"score")+3)) 	end end
int0 = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0} int1 = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0} addhook('join','onJoin') function onJoin(i) 	int0[i] = 0 	int1[i] = 0 end addhook('movetile','onMoveTile') function onMoveTile(i, x, y) 	if player(i, 'team') == 1 then 		if x == 8 and y == 74 then 			int1[i] = 1 			if int0[i] == 0 then 				int0[i] = 1 				parse('setscore '.. i ..' '.. (player(i, 'score') + 3)) 				parse('setmoney '.. i ..' '.. (player(i, 'money') + 2500)) 			end 		elseif x == 279 and y == 5 then 			if int0[i] == 0 then 				int0[i] = 1 				parse('setscore '.. i ..' '.. (player(i, 'score') + 3)) 				parse('setmoney '.. i ..' '.. (player(i, 'money') + 5000)) 			end 		else 			int1[i] = 0 		end 	end end addhook('hit','onHit') function onHit(i) 	if int1[i] == 1 then 		return 1 	end end