SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 01/09/2012, 07:08 AM   #1
Ballu Miaa
High-roller
 
Ballu Miaa's Avatar
 
Join Date: Apr 2010
Location: New Delhi,India
Posts: 1,849
Reputation: 323
Default Checking Object is loaded for the player

Hello everyone,

I was thinking to add custom interiors in my game mode. So i thought that if a player's connection is lagging then the Objects will take time to load and it will take more time to load objects rather then in Teleporting him into the interior.

How can i check that a Particular Object is loaded a particular player? Is there any function or callback? Does the Icognito streamer has any type of function like this?

In case you know anything and can help me please reply. Help will be appreciated a lot.

Thank you
Ballu Miaa
__________________


I will take half payment as an advance to script for you.
Click here to request my Scripting Service.

Ballu Miaa is offline   Reply With Quote
Old 01/09/2012, 07:22 AM   #2
Cjgogo
High-roller
 
Cjgogo's Avatar
 
Join Date: Apr 2011
Location: Romania,Brasov,Brasov
Posts: 1,018
Reputation: 89
Default Re: Checking Object is loaded for the player

I found this native,provided by Incognito's streamer,I don't really know if it does what YOU wanna do,but I think it checks the object existance :
pawn Code:
native IsValidDynamicObject(objectid);
__________________
{POWER} + {AGILITY} + {WILL} + {NOBILITY} = "PAWN"


"A question is the key to knoweldege"

My work


Cjgogo is offline   Reply With Quote
Old 01/09/2012, 07:24 AM   #3
Ballu Miaa
High-roller
 
Ballu Miaa's Avatar
 
Join Date: Apr 2010
Location: New Delhi,India
Posts: 1,849
Reputation: 323
Default Re: Checking Object is loaded for the player

Quote:
Originally Posted by Cjgogo View Post
I found this native,provided by Incognito's streamer,I don't really know if it does what YOU wanna do,but I think it checks the object existance :
pawn Code:
native IsValidDynamicObject(objectid);
I knew for the existence. I want to check if an object is loaded for a playerid or not? Is it possible , anyone?
__________________


I will take half payment as an advance to script for you.
Click here to request my Scripting Service.

Ballu Miaa is offline   Reply With Quote
Old 01/09/2012, 07:33 AM   #4
Cjgogo
High-roller
 
Cjgogo's Avatar
 
Join Date: Apr 2011
Location: Romania,Brasov,Brasov
Posts: 1,018
Reputation: 89
Default Re: Checking Object is loaded for the player

Well,I studied all the natives in Incgonito's Streamer,and there is NONE that has as params playerid,and objectid also,so there's no function like that,and also ******d it for you,but,other streamers aren't as good as Incognito's one,and if Ingonito's Streamer doesn't have such a function,then,fake chances to find one that has,or find it just as include or separate plugin...
__________________
{POWER} + {AGILITY} + {WILL} + {NOBILITY} = "PAWN"


"A question is the key to knoweldege"

My work


Cjgogo 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
Checking if player is facing an object JaKe Elite Scripting Help 9 27/07/2012 01:54 PM
Dini stuff doesn't get loaded under on player spawn liinor Scripting Help 9 25/12/2011 04:58 PM
Object not loaded handerson Help Archive 3 20/02/2011 06:08 AM
Checking object pos Jefff Help Archive 3 18/05/2009 10:16 AM


All times are GMT. The time now is 04:20 AM.


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