1
2
3
4
5
2
3
4
5
function usebutton(id,x,y)
if (x==17) and (y==19) then
mapchange("de_dust2")
end
end
Of course i want to change map from button, the position of button is OK, mapname - also. Zero errors.
edited 1×, last 02.01.11 03:46:11 am
function usebutton(id,x,y)
if (x==17) and (y==19) then
mapchange("de_dust2")
end
end
function usebutton(id,x,y)
if((x/32==17) and (y/32==19)) then
mapchange("de_dust2")
end
end
parse('changemap "de_dust2"')
LIST OF AVAILABLE HOOKS: [...] mapchange(newmap) on map change -newmap: name of new map
addhook("mapchange", "whatsnewmap")
function whatsnewmap(newmap)
msg("New map is: "..newmap)
end
function mapchange(map)
parse("changemap "..map)
end
mapchange("de_dust2")
function usebutton(id,x,y)
if (x==17) and (y==19) then
parse("changemap "..de_dust2")
end
end