Hey. Ich will, das wenn man sich registriert, Skin ID 101 bekommt. Ich bekomme jedoch immer den CJ Skin.
Stock Register:
stock Register(playerid,key[])
{
new Account[64];
format(Account,sizeof(Account),"/Accounts/%s.ini", SpielerName(playerid));
dini_Create(Account);
dini_Set(Account,"Passwort",key);
dini_IntSet(Account,"Level",0);
dini_IntSet(Account,"Adminlevel",0);
dini_IntSet(Account,"Geld",100);
dini_IntSet(Account,"Skin",101);
dini_IntSet(Account,"Muted",0);
dini_IntSet(Account,"Kills",0);
dini_IntSet(Account,"KampfStyle",0);
dini_IntSet(Account,"Premiumrank",0);
SetPVarInt(playerid,"Muted",0);
GetPVarInt(playerid,"Level");
GetPVarInt(playerid,"Adminlevel");
GetPVarInt(playerid,"Premiumrank");
GetPVarInt(playerid,"Skin");
GetPVarInt(playerid,"Wantedlevel");
GetPVarInt(playerid,"Kills");
GetPVarInt(playerid,"KampfStyle");
GivePlayerMoney(playerid,0);
SendClientMessage(playerid,WEIß,"Du hast dich erfolgreich registriert.");
SendClientMessage(playerid,WEIß,"Herzlich Willkommen auf Deathmatch-Reloaded!");
SetSpawnInfo(playerid,101,101,-50.1974,-288.3651,5.4297,178.9876,0,0,0,0,0,0);
SpawnPlayer(playerid);
TogglePlayerControllable(playerid,1);
SetPlayerScore(playerid,1);
GivePlayerMoney(playerid,100);
SetPlayerWantedLevel(playerid,0);
SetPlayerSkin(playerid,101);
SaveAccount(playerid);
return 1;
}
Wenn ich mir den Skin per Befehl ingame änder und ich relogge, kriege ich den geänderten Skin, wird also gespeichert..