02.01.2013, 20:53
pawn Код:
new ColiesGate;
public OnGameModeInit()
{
ColiesGate = CreateObject(971, -197.42, 1203.58, 22.29, 0.00, 0.00, 0.00);
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/hqopen"))
{
MoveObject(ColiesGate, -197.42, 1203.58, 13.06, 2.0);
return 1;
}
if(!strcmp(cmdtext, "/hqclose"))
{
MoveObject(ColiesGate, -197.42, 1203.58, 22.29, 2.0);
return 1;
}
return 0;
}