- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
#include <a_samp>
new objects[MAX_OBJECTS];
public OnFilterScriptInit()
{
objects[0] = CreateObject(980, -2491.1276855469, -129.08126831055, 27.397054672241, 0, 0, 90.675659179688);
objects[1] = CreateObject(980,-2459.8862304688,-152.13926696777,27.652730941772,0,356,0);
objects[2] = CreateObject(980,-2446.0773925781,-82.466796875,35.984577178955,0,356,0);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/garage", cmdtext, true, 10) == 0)
{
MoveObject(objects[0], -2491.1276855469, -129.08126831055, 20, 2);
SetTimer("VTimer", 10000, 0);
return 1;
}
return 0;
}
forward VTimer();
public VTimer()
{
MoveObject(objects[0], -2491.1276855469, -129.08126831055, 27.397054672241, 2);
return 1;
}