Добро пожаловать на наш форум!Здесь вы найдете множество уроков и скриптов , просим вас быть активными на форуме.....
Страница 1 из 11
Модератор форума: SekToR 
Форум » Pawno » Wiki Pawno » Просто скрипт
Просто скрипт
R][deNДата: Воскресенье, 28.06.2009, 21:00 | Сообщение # 1
Рядовой
Группа: Главный администратор
Сообщений: 14
Репутация: -1
Статус: Offline
Можно делать не сложные скрипты,просто для эстетики.
Расскажу на примере моего старого скрипта.

Открываем Pawno.

//в начале оставляем неизменным.

#include <a_samp>

#define FILTERSCRIPT

#if defined FILTERSCRIPT

//Прописываем объекты(можно делать в МТА)

public OnFilterScriptInit()
{
CreateObject(13831,835.203,-2177.243,15.392,0.0,0.0,-180.000);
CreateObject(8491,833.608,-2176.061,28.875,0.0,0.0,45.000);
CreateObject(1226,873.002,-2172.533,21.686,0.0,0.0,-56.250);
CreateObject(1226,863.445,-2173.009,23.052,0.0,0.0,-56.250);
CreateObject(1226,852.749,-2172.560,21.877,0.0,0.0,-90.000);
CreateObject(1226,845.686,-2172.411,22.000,0.0,0.0,-90.000);
CreateObject(1226,818.199,-2172.281,22.858,0.0,0.0,-90.000);
CreateObject(1226,808.116,-2172.309,23.100,0.0,0.0,-90.000);
CreateObject(1226,802.701,-2172.262,21.809,0.0,0.0,-90.000);
CreateObject(1231,833.129,-2173.734,15.867,-16.329,0.0,0.0);
CreateObject(3463,834.370,-2173.656,19.086,0.0,0.0,0.0);
CreateObject(3586,839.519,-2050.112,15.269,0.0,0.0,0.0);
CreateObject(3586,839.522,-2061.005,21.719,0.0,0.0,0.0);
CreateObject(3586,839.523,-2071.992,28.234,0.0,0.0,0.0);
CreateObject(18368,840.069,-2079.355,27.161,0.0,0.0,-90.000);
CreateObject(7315,819.936,-2171.063,24.125,0.0,0.0,-90.000);
CreateObject(7315,847.669,-2171.714,22.297,0.0,0.0,-270.000);
CreateObject(8492,832.093,-2166.854,3.546,0.0,0.0,-213.750);
CreateObject(3877,840.216,-2169.429,8.673,0.0,0.0,0.0);
CreateObject(3877,830.904,-2170.303,8.673,0.0,0.0,0.0);
CreateObject(3877,810.351,-2169.087,10.414,0.0,0.0,0.0);
CreateObject(3877,857.043,-2168.989,9.621,0.0,0.0,0.0);
CreateObject(3528,833.376,-2167.644,28.916,0.0,0.0,90.000);

return 1;
}

public OnFilterScriptExit()
{
return 1;
}

#else

main()
{
print("\n----------------------------------");
print(" Blank Gamemode by Kesha");
print("----------------------------------\n");
}

#endif

//и соответственно тп к объекту.

public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/vinewood", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid, 836.274,-2031.837,12.528);
SetPlayerFacingAngle(playerid, 106.0);
return 1;
}
return 0;
}

вот и всё.

 
Форум » Pawno » Wiki Pawno » Просто скрипт
Страница 1 из 11
Поиск:



| Riped by RazoR56 [] |