can only choose your saved skin
#8

PHP код:
new PlayerInfo[playerid][pSkin]; //make new global var to store player skin
public OnPlayerRequestClass(playeridclassid)
{
    if(
IsLogged[playerid] == 1)
    {
      
SetPlayerSkin(playeridPlayerInfo[playerid][pSkin]);
    }
    return 
1;
}
//make a command to save a skin to account
public OnPlayerCommandText(playeridcmdtext[])
{
    if (
strcmp("/saveskin"cmdtexttrue10) == 0)
    {
                if(
IsLogged[playerid]==1)
                {
             
PlayerInfo[playerid][pSkin]=GetPlayerSkin(playerid);
                     
SendClientMessage(playerid,-1,"Skin Saved");
                }
                else
                {
                      
SendClientMessage(playerid,-1,"You must be logged to save a skin");//print if the player isnt logged
                
}
        return 
1;
    }
    return 
0;

Reply


Messages In This Thread
can only choose your saved skin - by AmirRFCNR - 27.09.2014, 17:41
Re: can only choose your saved skin - by amirab - 27.09.2014, 18:42
Re: can only choose your saved skin - by ranme15 - 27.09.2014, 19:05
Re: can only choose your saved skin - by AmirRFCNR - 28.09.2014, 18:52
Re : can only choose your saved skin - by AmirRFCNR - 01.10.2014, 18:36
Re : can only choose your saved skin - by AmirRFCNR - 02.10.2014, 20:51
Re : can only choose your saved skin - by AmirRFCNR - 03.10.2014, 14:27
Re: can only choose your saved skin - by Quickie - 04.10.2014, 06:44
Re: can only choose your saved skin - by weedxd - 04.10.2014, 07:49
Re : can only choose your saved skin - by AmirRFCNR - 04.10.2014, 11:19

Forum Jump:


Users browsing this thread: 1 Guest(s)