Доступ к архиву

Переход в группу "Пользователь"

300.00 ₽
Одноразовый платёж
Быстрый переход в группу "Пользователи", без надобности написания постов и ожидания.

Покупка дает возможность:
Быть полноправным участником форума
Нормальное копирование кода
Создавать темы
Скачивать файлы
Доступ к архиву Pawno-Info

"Боевая форма"

Статус
В этой теме нельзя размещать новые ответы.

kyller

Специалист


PHP:
if(strcmp(cmd, "/form", true) == 0)
    {
        {
        SetPlayerAttachedObject(playerid, 0, 369, 2, -0.183602, 0.016535, -0.039228, 1.763265, 356.138977, 355.971618, 3.034477, 3.000000, 3.000000 ); 
	SetPlayerAttachedObject(playerid, 1, 356, 6, 0.013610, -0.021393, -0.144862, 2.354303, 354.413848, 0.219168, 3.034477, 3.000000, 3.000000 ); 
	SetPlayerAttachedObject(playerid, 2, 359, 1, 0.000000, -0.232854, -0.241260, 354.348602, 29.348077, 357.846679, 2.000000, 2.000000, 2.000000 ); 
	SetPlayerAttachedObject(playerid, 3, 363, 7, 0.176143, 0.281574, -0.120761, 79.200103, 267.183990, 337.320526, 1.200000, 1.200000, 1.200000 ); 
        SetPlayerAttachedObject( playerid, 1, 18690, 2, -2.979508, 0.306475, -0.388553, 285.055511, 90.860740, 171.179550, 1.780549, 0.912008, 1.208514 );
        GivePlayerWeapon(playerid, 31, 99999);
        SendClientMessage(playerid, COLOR_RED, "Вы переоделись в спецназ-монстра! Чтобы переодеться опять, введите /formoff");
        }
    }
PHP:
if(strcmp(cmd, "/formoff", true) == 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 );
		}
	}
	return 1;
}
 
Статус
В этой теме нельзя размещать новые ответы.
Сверху Снизу