06.02.2010, 22:15
Here is a quick fix for you
pawn Код:
#include <a_samp>
new elevator;
public OnGameModeInit()
{
elevator = CreateObject( 987 , 2727.0444335938, -1150.2025146484, 68.4140625 , 0.000000 , 0.000000 , 358.000000 );
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/d2up", true) == 0)
{
MoveObject(elevator,2727.0439453125, -1150.2021484375, 73.439033508301,2.00); // Put your cords in here
return 1;
}
if(strcmp(cmdtext, "/d2down", true) == 0)
{
MoveObject(elevator,2727.0444335938, -1150.2025146484, 68.4140625,2.00); // Same deal as before
return 1;
}
return 0;
}