CreateCP
#1

hi guys i want save Skin From Skinlist (OnPlayerModelSelection)
Help me Please i Want is Saving

PHP код:
enum
    Skin
,
LoadPlayerAccount
    INI_Int
("Skin"PlayerInfo[playerid][Skin]);
OnPlayerConnect
    PlayerInfo
[playerid][Skin] = 0;
OnPlayerSpawn
    SetPlayerSkin
playeridPlayerInfo[playerid][Skin] );
OnPlayerModelSelection
    
if(listid == skinlist)
    {
        if(
response)
        {
           if(
PlayerInfo[playerid][Skin] == 1)
           {
           new 
skinid;
           
SetPlayerSkin(PlayerInfo[playerid][Skin], modelid);
           new 
INI:File INI_Open(UserPath(playerid));
           
INI_SetTag(File,"Player's Data");
           
INI_WriteInt(File"Skin",skinid);
           
INI_Close(File);
           
SendClientMessage(playerid0xFF0000FF" skin Changed");
           }
        }
        else 
SendClientMessage(playerid0xFF0000FF"Canceled skin selection");
        return 
1;
    }
OnPlayerDisconnect
        INI_WriteInt
(File"Skin"PlayerInfo[playerid][Skin]); 
Reply


Messages In This Thread
Skin Save Problйm - by anassmaroc - 29.09.2015, 09:34
Re: CreateCP - by garotin - 29.09.2015, 12:29
Re: CreateCP - by PrO.GameR - 29.09.2015, 12:52

Forum Jump:


Users browsing this thread: 1 Guest(s)