SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Русский/Russian

Reply
 
Thread Tools Display Modes
Old 29/03/2015, 11:31 AM   #1
Darge
Little Clucker
 
Join Date: Feb 2015
Location: Russia
Posts: 16
Reputation: 0
Default Выбор скина

Как мне сделать выбор скина стандартными стрелочками?
__________________
ПАШНО
Darge is offline   Reply With Quote
Old 29/03/2015, 11:35 AM   #2
OKStyle
High-roller
 
OKStyle's Avatar
 
Join Date: May 2008
Location: Russia, Orenburg Money: GTA$ 999,999,999
Posts: 3,064
Reputation: 117
Default Re: Выбор скина

AddPlayerClass + настройка OnPlayerClassSelection
__________________
O.K.Style™ Laboratory
Kalcor: "... it's makes the game look like it's not GTA. This mod is called San Andreas Multiplayer. It's not a custom game engine which you can script..."
OKStyle is offline   Reply With Quote
Old 29/03/2015, 11:36 AM   #3
Darge
Little Clucker
 
Join Date: Feb 2015
Location: Russia
Posts: 16
Reputation: 0
Default Re: Выбор скина

А перебор скинов делать через циклы?
__________________
ПАШНО
Darge is offline   Reply With Quote
Old 29/03/2015, 11:54 AM   #4
Darge
Little Clucker
 
Join Date: Feb 2015
Location: Russia
Posts: 16
Reputation: 0
Default

PHP Code:
public OnPlayerRequestClassplayeridclassid )
{
    
//Что то типа цикла :D
    
for (new i300)
    {
        
AddPlayerClass(i0.0,0.0,0.0,0.025,100,31,1000,24,200);
    }
    return 
true;

Вроде бы так?
__________________
ПАШНО
Darge is offline   Reply With Quote
Old 29/03/2015, 12:02 PM   #5
Darge
Little Clucker
 
Join Date: Feb 2015
Location: Russia
Posts: 16
Reputation: 0
Default Re: Выбор скина

А можно ли сделать так:
PHP Code:
public OnPlayerRequestClassplayeridclassid 
{
    return 
false
}

public 
SetPlayerSpawn(...)
{
    if(
pInfo[playerid][pSkin] !=0)
    {
        for (new 
i300
        { 
            
AddPlayerClass(i0.0,0.0,0.0,0.025,100,31,1000,24,200); 
        }
        
pInfo[playerid][pSkin] = GetPlayerSkin(playerid);
    }
    else
    {
        
SetPlayerSkin(playeridpInfo[playerid][pSkin]);
    }
    return 
true;

Только я не уверен в работоспособности моего когда, я сразу тут код пишу .
__________________
ПАШНО
Darge is offline   Reply With Quote
Old 29/03/2015, 01:28 PM   #6
White_116
High-roller
 
Join Date: Sep 2010
Location: Russia/116
Posts: 1,480
Reputation: 69
Default Re: Выбор скина

Quote:
Originally Posted by Darge View Post
А можно ли сделать так:
PHP Code:
public OnPlayerRequestClassplayeridclassid 
{
    return 
false
}

public 
SetPlayerSpawn(...)
{
    if(
pInfo[playerid][pSkin] !=0)
    {
        for (new 
i300
        { 
            
AddPlayerClass(i0.0,0.0,0.0,0.025,100,31,1000,24,200); 
        }
        
pInfo[playerid][pSkin] = GetPlayerSkin(playerid);
    }
    else
    {
        
SetPlayerSkin(playeridpInfo[playerid][pSkin]);
    }
    return 
true;

Только я не уверен в работоспособности моего когда, я сразу тут код пишу .
http://wiki.sa-mp.com/wiki/AddPlayerClass
__________________
White_116 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Выбор скина. Johhnyllll Русский/Russian 18 07/10/2014 02:45 PM
Нет скина девушки (0.3z) Xrenoma Русский/Russian 18 20/01/2014 03:36 PM
Как сделать выбор скина после регистрации durelom Русский/Russian 21 13/10/2010 06:21 PM
Имя команды при выборе скина Nikid Русский/Russian 2 10/09/2010 01:31 PM


All times are GMT. The time now is 06:16 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.