Skin Selection
#1

So when you register you can select your own skin, but when you select skin you need press ESC to start moving.

Code
PHP код:
HandlePlayerItemSelection(playeridselecteditem)
{
        new 
biz PlayerInfo[playerid][pInBiz];
    
// In this case we change the player's skin
        
if(gSelectionItemsTag[playerid][selecteditem] >= && gSelectionItemsTag[playerid][selecteditem] < 300) {
        
SetPlayerSkin(playeridgSelectionItemsTag[playerid][selecteditem]);
        if(
gSelectionItemsTag[playerid][selecteditem] == 0) return SendClientMessageEx(playeridCOLOR_GRAD2"You can't choose CJ's skin");
        if(
GetPlayerCash(playerid) < 250) return SendClientMessageEx(playeridCOLOR_GRAD2"You can't afford these clothes!");
        
PlayerPlaySound(playerid54530.00.00.0);
        
GameTextForPlayer(playerid"~g~Skin purchased! ~n~ ~r~- $250"20001);
        
GivePlayerCash(playerid, -250);
        
DestroySelectionMenu(playerid);
        
PlayerInfo[playerid][pModel] = gSelectionItemsTag[playerid][selecteditem];
        if(
BizInfo[biz][bOwned] == 1)
        {
            
BizInfo[biz][bTill] += 500;
            
BizInfo[biz][bProducts]--;
        }
    }
    return 
1;
}
//This under public TutFinal
    
DestroySelectionMenu(playerid);
    
SetPVarInt(playerid"skinc_active"1);
        
CreateSelectionMenu(playerid);
    
SelectTextDraw(playerid0xACCBF1FF); 
Reply
#2

so what's the problem ?
Reply
#3

nvm, changed it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)