AddPlayerClass bug - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP DL Edition (
https://sampforum.blast.hk/forumdisplay.php?fid=92)
+--- Forum: SA-MP 0.3.DL (
https://sampforum.blast.hk/forumdisplay.php?fid=90)
+--- Thread: AddPlayerClass bug (
/showthread.php?tid=644245)
AddPlayerClass bug -
Admireal - 05.11.2017
I am adding new skin models the AddPlayerClass but see the CJ skin in OnPlayerRequestClass
Re: AddPlayerClass bug -
Kalcor - 05.11.2017
Custom skins can only be used with SetPlayerSkin().
Re: AddPlayerClass bug -
Admireal - 05.11.2017
Can I use the custom skins for NPC?
Re: AddPlayerClass bug -
J0sh... - 05.11.2017
You probably can yes.
Re: AddPlayerClass bug -
Admigo - 05.11.2017
Quote:
Originally Posted by Kalcor
Custom skins can only be used with SetPlayerSkin().
|
Will AddPlayerClass support custom skins later on?
Re: AddPlayerClass bug -
Admireal - 05.11.2017
Quote:
Originally Posted by Kalcor
Custom skins can only be used with SetPlayerSkin().
|
Can we add the new custom models to preview textdraw?
Re: AddPlayerClass bug -
Kalcor - 05.11.2017
Quote:
Originally Posted by Admigo
Will AddPlayerClass support custom skins later on?
|
Maybe. I think most serious servers are using SetSpawnInfo/SetPlayerSkin. AddPlayerClass is a leftover from SA-MP 0.1.
Quote:
Originally Posted by Admireal
Can we add the new custom models to preview textdraw?
|
Yeah, that works.
Re: AddPlayerClass bug -
J0sh... - 05.11.2017
Quote:
Originally Posted by Kalcor
Maybe. I think most serious servers are using SetSpawnInfo/SetPlayerSkin. AddPlayerClass is a leftover from SA-MP 0.1.
Yeah, that works.
|
Do you know why in class selection if you use SetPlayerSkin with a custom model, it goes to a default off duty cop from 0.3.7 (I'm assuming it shows the base model index)?
(yes 25003 is valid)
Re: AddPlayerClass bug -
Kalcor - 05.11.2017
I don't think custom skins are going to play well with the old class selection system. I might fix it before release. A more modern way to do skin selection is through model previews:
Re: AddPlayerClass bug -
J0sh... - 05.11.2017
Quote:
Originally Posted by Kalcor
I don't think custom skins are going to play well with the old class selection system. I might fix it before release. A more modern way to do skin selection is through model previews:
|
The weird thing is though, I can normally use a /skin command in selection and it'd work perfectly, but for some reason it does not like SetPlayerSkin w custom in OnPlayerRequestClass
using /skin
EDIT:
I fixed this by using a 50ms timer to set the player skin.
Re: AddPlayerClass bug -
Admigo - 05.11.2017
Quote:
Originally Posted by Kalcor
Maybe. I think most serious servers are using SetSpawnInfo/SetPlayerSkin. AddPlayerClass is a leftover from SA-MP 0.1.
Yeah, that works.
|
If AddPlayerClass is a leftover from 0.1 on my opinion there should be a function to disable the class system and if someone joins the server they should spawn directly if this function is enabled.
Re: AddPlayerClass bug -
Gammix - 05.11.2017
Quote:
Originally Posted by Freshncool
The weird thing is though, I can normally use a /skin command in selection and it'd work perfectly, but for some reason it does not like SetPlayerSkin w custom in OnPlayerRequestClass
using /skin
EDIT:
I fixed this by using a 50ms timer to set the player skin.
|
Or you can use switch on "classid" under "OnPlayerRequestClass" and SetPlayerSkin accordingly in callback. No need for timer.
Re: AddPlayerClass bug -
ISmokezU - 03.12.2017
Quote:
Originally Posted by Kalcor
I don't think custom skins are going to play well with the old class selection system. I might fix it before release. A more modern way to do skin selection is through model previews:
|
You need to.
Quote:
Originally Posted by Gammix
Or you can use switch on "classid" under "OnPlayerRequestClass" and SetPlayerSkin accordingly in callback. No need for timer.
|
This came close but it doesn't work. Instead, it gives the old cop from 3.7 like mention earlier.
Re: AddPlayerClass bug -
beckzy - 03.12.2017
Quote:
Originally Posted by Admigo
If AddPlayerClass is a leftover from 0.1 on my opinion there should be a function to disable the class system and if someone joins the server they should spawn directly if this function is enabled.
|
You can enable spectate mode in OnPlayerRequestClass to "disable" it.