SA-MP Forums Archive
See if a player is using our CUSTOM.IMG? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: See if a player is using our CUSTOM.IMG? (/showthread.php?tid=315867)



See if a player is using our CUSTOM.IMG? - TheSpaggiari - 04.02.2012

Hi there!

I searched but didn't find it, and I heard from friends it was possible to check if a player is using a CUSTOM.IMG file.
Please, anyone knows how?
Thanks.


Re: See if a player is using our CUSTOM.IMG? - Babul - 04.02.2012

if your custom.img contains an object a player can stand on, spawn one in the sky (like 40 units?), place theplayer on it, and see if he falls down. if no, image=yes. if he falls, =no.


Re: See if a player is using our CUSTOM.IMG? - Vince - 04.02.2012

I've been thinking about this too. I can't place the player in the sky on a custom object, because all of my stuff consists almost entirely of non-solid vehicle addons. Ideally, I would use a function like
pawn Code:
if(GetObjectModel(myCustomObject) == 18631)) // 18631 being the 'no model file', the question mark
Sadly, that function doesn't exists.


Re: See if a player is using our CUSTOM.IMG? - Babul - 04.02.2012

hm. the worst method would be:
spawn 400 of the largest (textures+polygons) object close to the player, and see if his FPS drops down ^^


Re : See if a player is using our CUSTOM.IMG? - TheSpaggiari - 04.02.2012

ROFL.

We found out a better solution: CAPTCHA.