GTA-SAMP
Каталог статей

Меню сайта

Категории раздела

Мини-чат

Статистика


Онлайн всего: 1
Гостей: 1
Пользователей: 0

DestroyVehicle.
Parameters:
(vehicleid)vehicleid The vehicleid of the vehicle which shall be destroyed.

This function does not return a specific value, it's best to simply ignore it.

public OnPlayerCommandText(playerid, cmdtext[])
{
//First the script gets the vehicle id of the current car and then destroys it when typing /destroyveh
if(strcmp(cmdtext, "/destroyveh", true) == 0)
{
new currentveh;
currentveh = GetPlayerVehicleID(playerid);
DestroyVehicle(currentveh);
return 1;
}

return 0;
}

Категория: Мои статьи | Добавил: LEXA (23.04.2009)
Просмотров: 573
Всего комментариев: 0
Имя *:
Email *:
Код *:

Вход на сайт

Поиск