Выбор скина при помощи AddPlayerClassEx и OnPlayerRequestClass.
#2

Нашел оптимальный вариант.
PHP Code:
// OnGameModeInit
        // Selection
        //male
    
AddPlayerClass(2300,0,0,00,0,0,0,0,0);
    
AddPlayerClass(2120,0,0,00,0,0,0,0,0);
    
AddPlayerClass(2000,0,0,00,0,0,0,0,0);
        
//female
    
AddPlayerClass(390,0,0,00,0,0,0,0,0);
    
AddPlayerClass(540,0,0,00,0,0,0,0,0);
    
AddPlayerClass(770,0,0,00,0,0,0,0,0); 
PHP Code:
// Диалог
if(!response) return SetPVarInt(playerid"Gender"2), TogglePlayerSpectating(playerid0); //female
    
SetPVarInt(playerid"Gender"1); // male
    
TogglePlayerSpectating(playerid0); 
PHP Code:
// OnPlayerRequestClass
if(GetPVarInt(playerid"Gender") == 1){
            switch(
classid){
                case 
0SetPlayerSkin(playerid230);
                case 
1SetPlayerSkin(playerid212);
                case 
2SetPlayerSkin(playerid200);
                case 
3SetPlayerSkin(playerid230);
                case 
4SetPlayerSkin(playerid212);
                case 
5SetPlayerSkin(playerid200);
            }
        } else if(
GetPVarInt(playerid"Gender") == 2){
            switch(
classid){
                case 
0SetPlayerSkin(playerid39);
                case 
1SetPlayerSkin(playerid54);
                case 
2SetPlayerSkin(playerid77);
                case 
3SetPlayerSkin(playerid39);
                case 
4SetPlayerSkin(playerid54);
                case 
5SetPlayerSkin(playerid77);
            }
        } 
Reply


Messages In This Thread
Выбор скина при помощи AddPlayerClassEx и OnPlayerRequestClass. - by Johhnyllll - 12.07.2018, 18:33
Re: Выбор скина при помощи AddPlayerClassEx и OnPlayerRequestClass. - by Johhnyllll - 13.07.2018, 19:59
Re: Выбор скина при помощи AddPlayerClassEx и OnPlayerRequestClass. - by Eims - 14.07.2018, 10:11
Re: Выбор скина при помощи AddPlayerClassEx и OnPlayerRequestClass. - by Johhnyllll - 14.07.2018, 19:48

Forum Jump:


Users browsing this thread: 1 Guest(s)