Szerző Téma: Objtek filterscripteknél  (Megtekintve 607 alkalommal)

Objtek filterscripteknél
« Dátum: 2013. február 05. - 18:13:07 »
0 Show voters
Nos, egy olyan script érdekelne, amely annyit tesz, hogy az objekt munkálataimat oda pakolhatom. Amiket átkonvertátaltam, próbáltam
public OnFilterScriptInit()

-ént de nem nagyon ment a dolog.
Szóval kb így.
 
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT
#include <a_samp>
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
print(\"\\n--------------------------------------\");
print(\" Antwon Mitchell - Objektek\");
print(\"--------------------------------------\\n\");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#else
main()
{
print(\"\\n----------------------------------\");
print(\" Antwon Mitchell - Objektek\");
print(\"----------------------------------\\n\");
}
#endif
public OnFilterScriptInit()
{
{
// Don\'t use these lines if it\'s a filterscript
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
return 1;
CreateObject(3851, 1486.19995, -1560.40002, 68.2, 0, 0, 359.989);
CreateObject(3851, 1486.19922, -1560.39941, 68.2, 0, 0, 179.989);
CreateObject(3851, 1486.19995, -1571.69995, 68.2, 0, 0, 179.984);
CreateObject(3851, 1486.30005, -1571.69995, 68.2, 0, 0, 359.984);
CreateObject(3851, 1486.30005, -1574.09998, 68.2, 0, 0, 359.978);
CreateObject(3851, 1486.2998, -1574.09961, 68.2, 0, 0, 179.978);
CreateObject(3851, 1491.90002, -1579.69995, 68.2, 0, 0, 89.972);
CreateObject(3851, 1491.89941, -1579.69922, 68.2, 0, 0, 269.967);
CreateObject(3851, 1502.40002, -1579.59998, 68.2, 0, 0, 269.962);
CreateObject(3851, 1502.40002, -1579.5, 68.2, 0, 0, 89.962);
CreateObject(3851, 1503.90002, -1579.5, 68.2, 0, 0, 89.956);
CreateObject(3851, 1503.89941, -1579.7998, 68.2, 0, 0, 269.956);
CreateObject(3851, 1503.90002, -1554.80005, 68.2, 0, 0, 269.951);
CreateObject(3851, 1492.69995, -1554.69995, 68.2, 0, 0, 269.951);
CreateObject(3851, 1491.69995, -1554.69995, 68.2, 0, 0, 269.951);
CreateObject(3851, 1491.69995, -1554.80005, 68.2, 0, 0, 89.951);
CreateObject(3851, 1503.90002, -1554.80005, 68.2, 0, 0, 89.945);
CreateObject(3851, 1503.89941, -1554.7998, 68.2, 0, 0, 269.945);
CreateObject(3851, 1500.09998, -1554.80005, 68.2, 0, 0, 269.94);
CreateObject(3851, 1500.09961, -1554.7998, 68.2, 0, 0, 89.94);
CreateObject(3851, 1491.89941, -1579.69922, 68.2, 0, 0, 269.967);
CreateObject(3851, 1509.59998, -1560.40002, 68.2, 0, 0, 179.945);
CreateObject(3851, 1509.59998, -1571.69995, 68.2, 0, 0, 179.945);
CreateObject(3851, 1509.59998, -1574.19995, 68.2, 0, 0, 179.945);
CreateObject(10671, 1507.80005, -1560.80005, 70.1, 0, 272, 0);
CreateObject(10671, 1507.80005, -1573.69995, 70.1, 0, 271.999, 0);
CreateObject(10671, 1507.80005, -1568, 70.1, 0, 271.999, 0);
CreateObject(10671, 1504.09998, -1560.80005, 70.1, 0, 271.999, 0);
CreateObject(10671, 1500.40002, -1560.80005, 70.1, 0, 271.999, 0);
CreateObject(10671, 1496.69995, -1560.80005, 70.1, 0, 271.999, 0);
CreateObject(10671, 1493, -1560.80005, 70.1, 0, 271.999, 0);
CreateObject(10671, 1489.30005, -1560.80005, 70.1, 0, 271.999, 0);
CreateObject(10671, 1488.19995, -1560.90002, 70.1, 0, 271.999, 0);
CreateObject(10671, 1504.19995, -1573.80005, 70.1, 0, 270, 0);
CreateObject(10671, 1500.59998, -1573.80005, 70.1, 0, 270, 0);
CreateObject(10671, 1497, -1573.80005, 70.1, 0, 270, 0);
CreateObject(10671, 1493.30005, -1573.80005, 70.1, 0, 270, 0);
CreateObject(10671, 1489.59998, -1573.80005, 70.1, 0, 270, 0);
CreateObject(10671, 1488.19995, -1573.80005, 70.1, 0, 272, 0);
CreateObject(10671, 1500.09998, -1567.5, 70.4, 0, 271.999, 90);
CreateObject(10671, 1492.40002, -1567.5, 70.3, 0, 271.994, 90);
CreateObject(14582, 1498.5, -1567.5, 69.8, 0, 0, 0);
CreateObject(1713, 1486.80005, -1555.30005, 66.2, 0, 0, 0);
CreateObject(1713, 1489.5, -1555.30005, 66.2, 0, 0, 0);
CreateObject(1713, 1507.5, -1555.19995, 66.2, 0, 0, 0);
CreateObject(1713, 1504.80005, -1555.19995, 66.2, 0, 0, 0);
}

 
Elõre is köszönöm

Objtek filterscripteknél
« Válasz #1 Dátum: 2013. február 05. - 19:45:21 »
0 Show voters
Igy:
 
#include <a_samp>
#define COLOR_YELLOW 0xFFFF00AA
public OnFilterScriptInit(  )
{

 

CreateObject(3080, 2505.30005, -1668.90002, 13.7, 0, 0, 154);
CreateObject(2898, 2479.30005, -1680.40002, 12.4, 0, 0, 0);

 
és:
 
   return 1;
}

 

#define COLOR_YELLOW 0xFFFF00AA

 Nem muszály csak nekem kell.
Egészben:
 
#include <a_samp>
#define COLOR_YELLOW 0xFFFF00AA
public OnFilterScriptInit(  )
{
CreateObject(3080, 2505.30005, -1668.90002, 13.7, 0, 0, 154);
CreateObject(2898, 2479.30005, -1680.40002, 12.4, 0, 0, 0);
return 1;
}

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal