Forum

> > CS2D > Scripts > Disable Sprays
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Disable Sprays

10 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Re: Disable Sprays

Rainoth
Moderator Off Offline

Zitieren
Not quite sure but you might want to untick "Enable spray transfer" or whatever it's called.
In New Game

Apart from that, I don't know of other ways to do it...

alt Re: Disable Sprays

DC
Admin Off Offline

Zitieren
It's indeed impossible. Disabling cs2d cmd sv_spraytransfer as server would just disable transfer of custom spraylogo images.

You may perform an action with Lua when someone sprays a logo though (using the cs2d lua hook spray hook). For example kick that player. I guess the logo will be sprayed anyway but I think most people will only spray once that way.

alt Re: Disable Sprays

Rainoth
Moderator Off Offline

Zitieren
Is spray considered some kind of "always on top" image ? It could be possible to place an image of tile using "<tile:X>" to cover the spray...

alt Re: Disable Sprays

Avo
User Off Offline

Zitieren
@user DC: What will happen if he disables sv_spraytransfer and removes default spraylogos from the folder(if it's possible, I'm not sure)?

alt Re: Disable Sprays

DC
Admin Off Offline

Zitieren
I'm not sure... I guess that you either won't see any sprays or that the game crashes. I don't think that this would be an acceptable solution for the problem anyway.

alt Re: Disable Sprays

Accurator
User Off Offline

Zitieren
In tibia, you can place items on the ground. You can also place them over spraylogos, which will hide them. So you could probably cover it right after spraying. The only problem would be the smoke effect of spraying.

alt Re: Disable Sprays

MikuAuahDark
User Off Offline

Zitieren
@user Accurator: That souldn't be a problem

1
2
3
4
5
addhook("spray","_spray")
function _spray(id)
	local i=image("<tile:"..tile(player(id,"tilex"),player(id,"tiley"),"frame")..">",math.floor(player(id,"tilex"))*32+16,math.floor(player(id,"tiley"))*32+16,0)
	timer(120*1000,"parse","lua freeimage("..i..")")
end
Untested
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht