AddPlayerClass with a var skin
#1

Hi,

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

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

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

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
Reply
#5

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

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.
Reply
#7

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


Forum Jump:


Users browsing this thread: