SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 04/02/2012, 06:10 PM   #1
TheSpaggiari
Big Clucker
 
TheSpaggiari's Avatar
 
Join Date: Feb 2012
Location: france!!!! playing: Roleplayit.net & developping: custom models
Posts: 78
Reputation: 39
Question See if a player is using our CUSTOM.IMG?

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.
TheSpaggiari is offline   Reply With Quote
Old 04/02/2012, 06:55 PM   #2
Babul
High-roller
 
Babul's Avatar
 
Join Date: Sep 2009
Location: in a cement block
Posts: 1,783
Reputation: 251
Default Re: See if a player is using our CUSTOM.IMG?

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.
__________________
FireWorks

new sscanf2 custom specifiers available for Download, read the Release Topic
Babul is offline   Reply With Quote
Old 04/02/2012, 07:13 PM   #3
Vince
Spam Machine
 
Vince's Avatar
 
Join Date: Sep 2007
Location: Belgium
Posts: 10,090
Reputation: 2655
Default Re: See if a player is using our CUSTOM.IMG?

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.
__________________
Vince is offline   Reply With Quote
Old 04/02/2012, 07:47 PM   #4
Babul
High-roller
 
Babul's Avatar
 
Join Date: Sep 2009
Location: in a cement block
Posts: 1,783
Reputation: 251
Default Re: See if a player is using our CUSTOM.IMG?

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 ^^
Babul is offline   Reply With Quote
Old 04/02/2012, 07:53 PM   #5
TheSpaggiari
Big Clucker
 
TheSpaggiari's Avatar
 
Join Date: Feb 2012
Location: france!!!! playing: Roleplayit.net & developping: custom models
Posts: 78
Reputation: 39
Default Re : See if a player is using our CUSTOM.IMG?

ROFL.

We found out a better solution: CAPTCHA.
TheSpaggiari is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Detecting if a player has a custom define milanosie Scripting Help 3 11/01/2012 03:19 PM
How To Make Player Spawn In Custom Loc. 15outland Scripting Help 2 24/10/2011 04:34 AM
CUSTOM.img and CUSTOM.ide aren't working Kwarde Client Support 6 30/08/2011 07:32 AM
How to detect if a player has a custom object? ғαιιοцт Help Archive 12 16/01/2011 03:58 PM
banning a player crashes the server? (custom ban) The_Gangstas Help Archive 3 03/12/2010 09:13 PM


All times are GMT. The time now is 06:47 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.