13.12.2015, 16:36
Hello, I have problem with creating dynamic object
On top of script
OnGameModeInit:
OnPlayerConnect:
Here is code for moving object:
On top of script
Код:
new grass;
Код:
grass = CreateDynamicObject(702, -30.87103, 2166.84399, 20.48755, 0.00000, 0.00000, 0.00000);
Код:
SetTimerEx("registerProcess1", 300, false, "i", playerid);
Код:
public registerProcess1(playerid) { setLoginCamera(playerid); MoveDynamicObject(grass, -33.18955, 2169.11890, 21.39942, 3.0); SetTimerEx("registerProcess2", 3000, false, "i", playerid); return 1; } public registerProcess2(playerid) { MoveDynamicObject(grass, -36.98371, 2172.54614, 21.27884, 3.0); SetTimerEx("registerProcess3", 3000, false, "i", playerid); return 1; } public registerProcess3(playerid) { MoveDynamicObject(grass, -40.13485, 2175.59448, 22.30098, 3.0); SetTimerEx("registerProcess4", 3000, false, "i", playerid); return 1; } public registerProcess4(playerid) { MoveDynamicObject(grass, -44.45544, 2179.66577, 22.30098, 3.0); SetTimerEx("registerProcess5", 100, false, "i", playerid); return 1; } public registerProcess5(playerid) { DestroyDynamicObject(grass); if(fexist(UserPath(playerid))) { // code } else { // code } return 1; }