SA-MP Forums Archive
MTA objects during class selection. (+rep) - 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: MTA objects during class selection. (+rep) (/showthread.php?tid=335635)



MTA objects during class selection. (+rep) - Crazyboobs - 19.04.2012

Hey!
i made a mta for class selection and i have done almost everything.When i go in game and that time the objects are not loading during class selection.I used new version of streamer as plugin. Why it is like that? Can anyone please help me? +rep


Re: MTA objects during class selection. (+rep) - ReneG - 19.04.2012

What do you mean a "mta" for class selection? Do you mean a map? If so, you need to set the player's position where the objects are you know.


Re: MTA objects during class selection. (+rep) - Biesmen - 19.04.2012

I think the account at the login screen is in a different virtualworld than the objects.


Re: MTA objects during class selection. (+rep) - Crazyboobs - 19.04.2012

I mean, objects are not loading during class selection.How to make it appear?


Re: MTA objects during class selection. (+rep) - MeDaKewlDude - 19.04.2012

it would help to see the code, but did you put it in the OnGameModeInit/OnFilterscriptInit callback?


Re: MTA objects during class selection. (+rep) - Crazyboobs - 19.04.2012

Quote:
Originally Posted by MeDaKewlDude
Посмотреть сообщение
it would help to see the code, but did you put it in the OnGameModeInit/OnFilterscriptInit callback?
Yes i already did and i made class selection stuffs.But when i go in game and at that time objects are not loading and when i spawn the objects are loading.How can i fix this? how to make it appear during class selection?


Re: MTA objects during class selection. (+rep) - MeDaKewlDude - 19.04.2012

hmm, like i said before, it would help to see the code. are you sure you got the positions and the model id correct? another thing you can do is look in the server console to see if it came up with any errors.


so, are you trying to create the objects while in class selection, use the callback OnPlayerRequestClass then OnPlayerSpawn or OnPlayerRequestSpawn


Re: MTA objects during class selection. (+rep) - Crazyboobs - 19.04.2012

Quote:
Originally Posted by MeDaKewlDude
Посмотреть сообщение
hmm, like i said before, it would help to see the code. are you sure you got the positions and the model id correct? another thing you can do is look in the server console to see if it came up with any errors.


so, are you trying to create the objects while in class selection, use the callback OnPlayerRequestClass then OnPlayerSpawn or OnPlayerRequestSpawn
I put the code in OnGamemodeinit like usual and all the objects loaded when i spawn and the objects are not appearing or loading during class selection.This is the 3rd time i am asking in this forum about this.And still i didnt get a correct answer.

ANYONE PLEASE HELP ME...


Re: MTA objects during class selection. (+rep) - Jay_ - 19.04.2012

If you are using the streamer plugin, you can call Streamer_Update() in OnPlayerRequestClass


Re: MTA objects during class selection. (+rep) - Crazyboobs - 19.04.2012

Quote:
Originally Posted by Jay_
Посмотреть сообщение
If you are using the streamer plugin, you can call Streamer_Update() in OnPlayerRequestClass
Yes i am using the streamer plugin but i dont know how to use Streamer_Update() in OnPlayerRequestClass.Can you please tell me how?