new lift;
lift = CreateDynamicObject(5154, -1773.208, 567.801, 31.255, 0.0, 0.0, -28.593);
MoveDynamicObject(lift, -1773.208, 567.801, 231.154, 2.0); // 2.0 = sebesség
Helyezd el, ahova kell, nem fogom mindenkinek kinyalni a seggét. ;)
Tessék!
Nemtudom jó,e nemtudom tesztelni sajnos.......
#include <a_samp>
#define FILTERSCRIPT
#if defined FILTERSCRIPT
new lift;
public OnFilterScriptInit()
{
lift = CreateObject(5154,-1773.208,567.801,31.255,0.0,0.0,-28.593);
return 1;
}
#else
public OnGameModeInit()
{
lift = CreateObject(5154,-1773.208,567.801,31.255,0.0,0.0,-28.593);
return 1;
}
#endif
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, \"/fel\", true) == 0)
{
MoveObject(lift, 5154,-1773.208,567.801,231.154, 2.0);
return 1;
}
if(strcmp(cmdtext, \"/le\", true) == 0)
{
MoveObject(lift, 5154,-1773.208,567.801,31.255, 2.0);
return 1;
}
return 0;
}
Ha valami gond van nyugottan szolj.,.