SA-MP Forums Archive
AddPlayerClass with a var skin - 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: AddPlayerClass with a var skin (/showthread.php?tid=572171)



AddPlayerClass with a var skin - MrAlexisX2 - 25.04.2015

Hi,

I want to create a class with AddPlayerClass depending upon of the variable player:
PHP код:
ClanInfoPlayerInfo[playerid][pTeam] ][cSkin]; 
How to process ?


Re: AddPlayerClass with a var skin - ChromeAmazing - 25.04.2015

PHP код:
GetPlayerSkin(playeridClanInfo[PlayerInfo[playerid][pTeam]][cSkin]); 



Re : AddPlayerClass with a var skin - MrAlexisX2 - 25.04.2015

No. AddPlayerClass is OnGamemodeInit, is not possible to use "playerid"


AW: AddPlayerClass with a var skin - Nero_3D - 26.04.2015

Use SetSpawnInfo, its like AddPlayerClass just for one playerid but that will overwritte the spawn positions and weapons from AddPlayerClass, if you only want to change the skin use SetPlayerSkin


Re : AddPlayerClass with a var skin - MrAlexisX2 - 26.04.2015

It's just for change skin in sйlect class. SetSpawnInfo modify in a select class?


Re: AddPlayerClass with a var skin - Mencent - 26.04.2015

Hello!

AddPlayerClass overwrite the skin for all players, not only for you!
If you want to change your skin in a class you have to work with SetSpawnInfo or SetPlayerSkin.


Re: AddPlayerClass with a var skin - Threshold - 26.04.2015

SetPlayerSkin in OnPlayerRequestClass. That's the best you'll get.