Pelekan
Ученик
Хотели себе на сервер большой и белый, резиновый х*й? Получите!
В паблик
PHP:
OnPlayerCommandText(playerid, cmdtext[])
PHP:
if (strcmp("/xyu", cmdtext, true, 10) == 0)
{
SetPlayerAttachedObject(playerid, 1, 19086, 8, -0.049768, -0.014062, -0.108385, 87.458297, 263.478149, 184.123764, 0.622413, 1.041609, 1.012785 );
SendClientMessage(playerid, COLOR_RED, "Чтобы снять с себя , введите /formoff");
return 1;
}
PHP:
if (strcmp("/formoff", 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;
}
Последнее редактирование:
