shape1
shape2
shape3
shape4
shape7
shape8

/musorka & /boyoff


Статус
Закрыто для дальнейших ответов.

Kostyaev

Магистр
Пользователь
19.07.2014
1 123
274
0
26
Мусорка с битой

В public OnPlayerCommandText вставляем:

Код:
//==============================================================================
if (strcmp("/musorka", cmdtext, true, 10) == 0)
        {
        SetPlayerAttachedObject(playerid, 0, 1409, 1, -0.920380, 0.088453, 0.000000, 3.824895, 87.493751, 0.000000, 1.399999, 2.000000, 1.600000 );
        SetPlayerAttachedObject(playerid, 1, 19006, 1, 0.564621, 0.292698, 0.042863, 357.594757, 88.274528, 95.327667, 7.000000, 8.000000, 7.000000 );
        SetPlayerAttachedObject(playerid, 2, 19077, 1, 0.383622, 0.210077, 0.052282, 0.000000, 0.000000, 0.000000, 9.000000, 12.000000, 10.000000 );
        SetPlayerAttachedObject(playerid, 3, 336, 6, -0.348237, -0.503257, 0.314347, 0.000000, 0.000000, 0.000000, 5.000000, 5.000000, 7.000000 );
        GivePlayerWeapon(playerid, 5, 1);
        SendClientMessage(playerid, COLOR_RED, "Что бы отключить введите /boyoff");
        return 1;
}
//==============================================================================
if (strcmp("/boyoff", cmdtext, true, 10) == 0)
{
        if( !IsPlayerAttachedObjectSlotUsed( playerid, 0  ) &&!IsPlayerAttachedObjectSlotUsed( playerid, 1  ) &&!IsPlayerAttachedObjectSlotUsed( playerid, 2  ) &&!IsPlayerAttachedObjectSlotUsed( playerid, 3  ) &&!IsPlayerAttachedObjectSlotUsed( playerid, 4  ) )
                return SendClientMessage(playerid, COLOR_RED, "Вы отключили объекты!");

        for ( new i = 0; i < 5; i ++ )
        {
                if ( IsPlayerAttachedObjectSlotUsed( playerid, i ) )
                {
                        RemovePlayerAttachedObject( playerid, i );
                }
        }
        SendClientMessage(playerid, COLOR_RED, "Все объекты убраны!");
        return 1;
}
 
Последнее редактирование модератором:

Gleen

Освоившийся
Пользователь
27.12.2014
393
30
0
28
Ммм  )) Были времена всё время играл с таким персонажем, называли Бомж - Ганг  :263A:  
Ближе к теме - Отлично!!!!  :D83DDE0D:

 
Статус
Закрыто для дальнейших ответов.