Choosing skin - Problem
#1

i put that players choose skin before login, but it always spawn me with CJ's skin (ID: 0)

enum:
Код:
Skin,
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
Reply
#2

SetSpawnInfo
Reply
#3

Quote:
Originally Posted by Diorturato
Посмотреть сообщение
but i wont 1 skin for all players...

i want that players choose which skin want to take
Reply
#4

pawn Код:
SetSpawnInfo(playerid, /* Team */ team, PlayerInfo[playerid][Skin], /* Spawn-coordinates */ 0, 0, 0, 0, /* Weapons */ 0, 0, 0, 0, 0, 0);
Reply
#5

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!!!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)