View Issue Details

IDProjectCategoryView StatusLast Update
0005937Multi Theft Auto : San AndreasClientpublic2012-02-02 02:23
ReportertmaAssigned Toccw 
PrioritynormalSeverityfeatureReproducibilityN/A
Status resolvedResolutionfixed 
PlatformN/AOSN/AOS VersionN/A
Product Version 
Target Version1.3Fixed in Version1.3 
Summary0005937: Request for a screen shot event
Description

Just a request for an event when the play takes a screen shot by any method e.g.

addEventHandler("onClientScreenshot",getRootElement(),
function ()
-- Whatever ...
end
)

TagsNo tags attached.

Activities

Talidan

2011-02-20 15:05

administrator   ~~0012968

What kind of practical purpose would this serve?

MX_Master

2011-02-20 15:30

viewer   ~~0012970

addEvent('onClientScreenshot')

bindKey( 'F12', 'down', -- or 'up'
function()
triggerEvent( 'onClientScreenshot', getLocalPlayer() )
end
)

i think any other outside methods are not controlled by MTASA

Gamesnert

2011-02-21 11:14

developer   ~~0012974

According to the wiki, addCommandHandler should work for detecting MTA hardcoded commands:

http://wiki.multitheftauto.com/wiki/Control_names#MTA_hard-coded_commands

However, for some reason, it doesn't work that way at all. (#5402) That should simply be fixed, there shouldn't be an entirely new event for this.

tma

2011-02-21 12:10

viewer   ~~0012975

Well it it was mainly to detect people spamming screen shots to alter lag/collision in-game. If the addCommandHandler() method could be fix then that would work instead.

Mike_Traceur

2011-03-15 13:37

viewer   ~~0013089

Last edited: 2011-03-15 13:38

clientside:
bindKey('screenshot','up',doAnything)
not testet but i think it should work, even if key isn't binded on F12

Jockie

2011-04-30 19:44

viewer   ~~0013281

addEvent("onClientScreenshot", true)
bindKey("screenshot", "down",
function()
triggerEvent("onClientScreenshot",getLocalPlayer())
end
)

Not realy that hard?

Issue History

Date Modified Username Field Change