01.08.2011, 19:48
pawn Код:
new P1, P2;
// OnGameModeInit
P1 = CreateObject(988,-2033.45776367,-102.98937988,38.94689178,0.00000000,0.00000000,359 .96704102);
P2 = CreateObject(988,-2022.41369629,-119.42974854,38.94689178,0.00000000,0.00000000,359 .96704102);
// OnPlayerCommandText
if(strcmp(cmdtext, "/abrir", true) == 0)
{
MoveObject(P1, -2033.45776367, -102.98937988,32.94689178, 4);
MoveObject(P2, -2022.41369629,-119.42974854,38.94689178, 4);
return true;
}
if(strcmp(cmdtext, "/fechar", true) == 0)
{
MoveObject(P1, -2033.45776367, -102.98937988, 38.94689178, 4);
MoveObject(P2, -2022.41369629, -119.42974854, 38.94689178, 4);
return 1;
}