PDA

View Full Version : How can I save Skin (After Selection)


GtasaPoliceModz
04/04/2012, 02:58 AM
public OnPlayerRequestClass(playerid, classid)
{
if(PlayerInfo[playerid][pFirst] == 1)
{
new file[256], PlayerSkin;
SetPlayerPos(playerid, -152.0021,235.2606,9.9725);
SetPlayerCameraPos(playerid, -143.8928,233.0721,8.9490);
SetPlayerCameraLookAt(playerid, -152.0021,235.2606,9.9725);
AddPlayerClass(12,-87.2374,1220.9498,19.7422,179.2150,0,0,0,0,0,0);
AddPlayerClass(10,-87.2374,1220.9498,19.7422,179.2150,0,0,0,0,0,0);
AddPlayerClass(17,-87.2374,1220.9498,19.7422,179.2150,0,0,0,0,0,0);
AddPlayerClass(20,-87.2374,1220.9498,19.7422,179.2150,0,0,0,0,0,0);
AddPlayerClass(49,-87.2374,1220.9498,19.7422,179.2150,0,0,0,0,0,0);
AddPlayerClass(14,-87.2374,1220.9498,19.7422,179.2150,0,0,0,0,0,0);
PlayerSkin = GetPlayerSkin(playerid);
dini_IntSet(file, "Skin", PlayerSkin);
}
return 1;
}

Spawns with CJ skin HELP

Lynn
04/04/2012, 03:05 AM
AddPlayerClass goes Under OnGameModeInit
Saving skins should go under OnPlayerDisconnect.