Choosing skin - Problem - 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: Choosing skin - Problem (
/showthread.php?tid=403956)
Choosing skin - Problem -
FL3GM4 - 01.01.2013
i put that players choose skin before login, but it always spawn me with CJ's skin (ID: 0)
enum:
OnPlayerRequestClass
Код:
PlayerInfo[playerid][Skin] = GetPlayerSkin(playerid);
OnPlayerSpawn
Код:
SetPlayerSkin(playerid, PlayerInfo[playerid][Skin]);
loaduserdata
Код:
INI_Int("Skin", PlayerInfo[playerid][Skin]);
onplayeregister
Код:
INI_WriteInt(playerFile, "Skin", GetPlayerSkin(playerid));
Код:
PlayerInfo[playerid][Skin] = GetPlayerSkin(playerid);
OnPlayerLogout
Код:
INI_WriteInt(playerFile, "Skin", PlayerInfo[playerid][Skin]);
and how to make that it saves your skin, and on the next login automatically spawn you with that skin youchoose
Re: Choosing skin - Problem -
Diorturato - 01.01.2013
SetSpawnInfo
Re: Choosing skin - Problem -
FL3GM4 - 01.01.2013
Quote:
Originally Posted by Diorturato
|
but i wont 1 skin for all players...
i want that players choose which skin want to take
Re: Choosing skin - Problem -
Diorturato - 01.01.2013
pawn Код:
SetSpawnInfo(playerid, /* Team */ team, PlayerInfo[playerid][Skin], /* Spawn-coordinates */ 0, 0, 0, 0, /* Weapons */ 0, 0, 0, 0, 0, 0);
Re: Choosing skin - Problem -
FL3GM4 - 01.01.2013
i put this:
Код:
SetSpawnInfo(playerid, 0, PlayerInfo[playerid][Skin], RandomSpawns[Random][0], RandomSpawns[Random][1], RandomSpawns[Random][2], 0, 24, 50, 32, 150, 0, 0);
but i doesnt help me ...
EDIT: Resolved!!!