See if a player is using our CUSTOM.IMG?
#1

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.
Reply
#2

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.
Reply
#3

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.
Reply
#4

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 ^^
Reply
#5

ROFL.

We found out a better solution: CAPTCHA.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)