11.09.2015, 12:51
When somone registers on my server and picks like male gender I want to set him certain skin for that gender. But the problem is when he spawns it spawns in the cj skin I dont know how to resolve this. This is my code
Код:
public OnPlayerRequestClass(playerid, classid) { SetSpawnInfo(playerid, 0, PlayerInfo[playerid][pSkin], 1714.8339, -1912.6870, 13.5666, 269.15, 26, 36, 28, 500, 0, 0); SpawnPlayer(playerid); return 1; } if(dialogid == DIALOG_SPOL) { if(response) { if(listitem == 0) // { PlayerInfo[playerid][pSkin] = 59; PlayerInfo[playerid][pSpol] = 1; new INI:File = INI_Open(Path(playerid)); new Spol = PlayerInfo[playerid][pSpol]; new Skin = PlayerInfo[playerid][pSkin]; INI_WriteInt(File,"Spol", Spol); INI_WriteInt(File,"Skin", Skin); INI_Close(File); } if(listitem == 1) // { PlayerInfo[playerid][pSkin] = 59; PlayerInfo[playerid][pSpol] = 2; new INI:File = INI_Open(Path(playerid)); new Spol = PlayerInfo[playerid][pSpol]; new Skin = PlayerInfo[playerid][pSkin]; INI_WriteInt(File,"Spol", Spol); INI_WriteInt(File,"Skin", Skin); INI_Close(File); } } return 1; }